rust/compiler/rustc_resolve/src
许杰友 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
..
late delegation: Fix hygiene for self 2024-06-15 00:45:05 +03:00
build_reduced_graph.rs Auto merge of #125105 - nnethercote:rustc_resolve-cleanups, r=estebank 2024-05-18 06:36:44 +00:00
check_unused.rs Rename buffer_lint_with_diagnostic to buffer_lint 2024-05-21 20:16:39 +00:00
def_collector.rs Revert "Create const block DefIds in typeck instead of ast lowering" 2024-06-07 08:33:58 +00:00
diagnostics.rs Tweak output of import suggestions 2024-06-13 20:22:21 +00:00
effective_visibilities.rs Auto merge of #125105 - nnethercote:rustc_resolve-cleanups, r=estebank 2024-05-18 06:36:44 +00:00
errors.rs And more general error 2024-05-24 11:20:33 -04:00
ident.rs mark binding undetermined if target name exist and not obtained 2024-06-07 21:23:56 +08:00
imports.rs Rollup merge of #125913 - fmease:early-lints-spruce-up-some-diags, r=Nadrieril 2024-06-11 09:14:34 +01:00
late.rs Rollup merge of #125258 - compiler-errors:static-if-no-lt, r=nnethercote 2024-06-17 04:53:54 +01:00
lib.rs Rollup merge of #125381 - estebank:issue-96799, r=petrochenkov 2024-05-29 03:25:08 +01:00
macros.rs Auto merge of #125326 - weiznich:move/do_not_recommend_to_diganostic_namespace, r=compiler-errors 2024-05-22 04:14:08 +00:00
rustdoc.rs Remove #[macro_use] extern crate tracing from rustc_resolve. 2024-05-10 15:34:41 +10:00