rust/compiler/rustc_resolve/src
Matthias Krüger d502b1c8e4
Rollup merge of #129270 - compiler-errors:inner-generics-shadowing, r=petrochenkov
Don't consider locals to shadow inner items' generics

We don't want to consider the bindings from a `RibKind::Module` itself, because for an inner item that module will contain the local bindings from the function body or wherever else the inner item is being defined.

Fixes #129265

r? petrochenkov
2024-08-20 22:21:57 +02:00
..
late Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
build_reduced_graph.rs skip updating when external binding is existed 2024-08-20 20:34:13 +08:00
check_unused.rs rm import.used 2024-08-10 20:19:53 +08:00
def_collector.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
diagnostics.rs make import.vis is not mutable 2024-08-07 22:13:23 +08:00
effective_visibilities.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
errors.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
ident.rs make import.vis is not mutable 2024-08-07 22:13:23 +08:00
imports.rs rm import.used 2024-08-10 20:19:53 +08:00
late.rs Don't consider RibKind::Module's bindings when checking generics shadowing 2024-08-19 17:24:27 -04:00
lib.rs rm import.used 2024-08-10 20:19:53 +08:00
macros.rs Rollup merge of #128762 - fmease:use-more-slice-pats, r=compiler-errors 2024-08-11 07:51:51 +02:00
rustdoc.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00