ruff/crates/ruff_db/src
Andrew Gallant adeba3dca7 ruff_db: simplify lifetimes on DiagnosticDisplay
I initially split the lifetime out into three distinct lifetimes on
near-instinct because I moved the struct into the public API. But
because they are all shared borrows, and because there are no other APIs
on `DisplayDiagnostic` to access individual fields (and probably never
will be), it's probably fine to just specify one lifetime. Because of
subtyping, the one lifetime will be the shorter of the three.

There's also the point that `ruff_db` isn't _really_ a public API, since
it isn't a library that others depend on. So my instinct is probably a
bit off there.
2025-04-02 12:47:02 -04:00
..
diagnostic ruff_db: simplify lifetimes on DiagnosticDisplay 2025-04-02 12:47:02 -04:00
files [internal]: Upgrade salsa (#16794) 2025-03-17 11:05:54 +01:00
system [red-knot] Use web-time instead of FileTime::now (#16967) 2025-03-25 13:03:30 +00:00
vendored Setup tracing and document tracing usage (#12730) 2024-08-08 06:28:40 +00:00
display.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00
file_revision.rs [red-knot] Use web-time instead of FileTime::now (#16967) 2025-03-25 13:03:30 +00:00
files.rs [red-knot] Goto type definition (#16901) 2025-04-02 12:12:48 +00:00
lib.rs [red-knot] Prefix Type::call and dunder_call with try (#16261) 2025-02-20 09:05:04 +00:00
panic.rs [red-knot] Print non-string panic payloads and (sometimes) backtraces (#15363) 2025-01-08 18:12:16 -05:00
parsed.rs [internal]: Upgrade salsa (#16794) 2025-03-17 11:05:54 +01:00
source.rs [internal]: Upgrade salsa (#16794) 2025-03-17 11:05:54 +01:00
system.rs [red-knot] Use web-time instead of FileTime::now (#16967) 2025-03-25 13:03:30 +00:00
testing.rs [internal]: Upgrade salsa (#16794) 2025-03-17 11:05:54 +01:00
vendored.rs Upgrade Rust toolchain to 1.83 (#14677) 2024-11-29 12:05:05 +00:00