diff options
| author | bors <bors@rust-lang.org> | 2025-04-01 07:21:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-04-01 07:21:28 +0000 |
| commit | ed201574c5d6117fb4a491db545c96fa4289ea9c (patch) | |
| tree | 66e24caa2e6b2c690d60445ed035aaa003da63be /compiler/rustc_resolve/src/diagnostics.rs | |
| parent | 97ea17b71aba0badfe9c8295f57a434bf79bdb72 (diff) | |
| parent | ec10833609aa63327437aabfaedfbe8a0edcc4d9 (diff) | |
| download | rust-ed201574c5d6117fb4a491db545c96fa4289ea9c.tar.gz rust-ed201574c5d6117fb4a491db545c96fa4289ea9c.zip | |
Auto merge of #138740 - nnethercote:ast-ItemKind-idents, r=fmease
Move `ast::Item::ident` into `ast::ItemKind` The follow-up to #138384, which did the same thing for `hir::ItemKind`. r? `@fmease`
Diffstat (limited to 'compiler/rustc_resolve/src/diagnostics.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/diagnostics.rs b/compiler/rustc_resolve/src/diagnostics.rs index f7343b93281..d886a81b57d 100644 --- a/compiler/rustc_resolve/src/diagnostics.rs +++ b/compiler/rustc_resolve/src/diagnostics.rs @@ -3063,7 +3063,7 @@ impl<'tcx> visit::Visitor<'tcx> for UsePlacementFinder { fn visit_item(&mut self, item: &'tcx ast::Item) { if self.target_module == item.id { - if let ItemKind::Mod(_, ModKind::Loaded(items, _inline, mod_spans, _)) = &item.kind { + if let ItemKind::Mod(_, _, ModKind::Loaded(items, _inline, mod_spans, _)) = &item.kind { let inject = mod_spans.inject_use_span; if is_span_suitable_for_use_injection(inject) { self.first_legal_span = Some(inject); |
