rust/compiler/rustc_lint
许杰友 Jieyou Xu (Joe) 23b936f981
Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote
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.
2024-06-17 04:53:54 +01:00
..
src Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote 2024-06-17 04:53:54 +01:00
Cargo.toml non_local_defs: point to Self and Trait to give more context 2024-05-27 23:59:18 +02:00
messages.ftl Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote 2024-06-17 04:53:54 +01:00