mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-12 01:47:38 +00:00
![]() Resolve elided lifetimes in assoc const to static if no other lifetimes are in scope Implements the change to elided lifetime resolution in *associated consts* subject to FCP here: https://github.com/rust-lang/rust/issues/125190#issue-2301532282 Specifically, walk the enclosing lifetime ribs in an associated const, and if we find no other lifetimes, then resolve to `'static`. Also make it work for traits, but don't lint -- just give a hard error in that case. |
||
---|---|---|
.. | ||
late | ||
build_reduced_graph.rs | ||
check_unused.rs | ||
def_collector.rs | ||
diagnostics.rs | ||
effective_visibilities.rs | ||
errors.rs | ||
ident.rs | ||
imports.rs | ||
late.rs | ||
lib.rs | ||
macros.rs | ||
rustdoc.rs |