diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-08-19 11:37:01 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-08-22 16:52:16 +0300 |
| commit | a47c3729b49f3e5ded7e3c05981dbb27fab96b45 (patch) | |
| tree | 2301d745b4ea5ea936a47794829d6e6e57fa9d25 /compiler/rustc_resolve/src/lib.rs | |
| parent | b82b947a5c6ed8a8bdb155b99298e9e79c93238c (diff) | |
| download | rust-a47c3729b49f3e5ded7e3c05981dbb27fab96b45.tar.gz rust-a47c3729b49f3e5ded7e3c05981dbb27fab96b45.zip | |
resolve: Remove derive fallback lint id from `ScopeSet::Late`
Diffstat (limited to 'compiler/rustc_resolve/src/lib.rs')
| -rw-r--r-- | compiler/rustc_resolve/src/lib.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_resolve/src/lib.rs b/compiler/rustc_resolve/src/lib.rs index bb99bad6908..57c0c496eb5 100644 --- a/compiler/rustc_resolve/src/lib.rs +++ b/compiler/rustc_resolve/src/lib.rs @@ -159,8 +159,7 @@ enum ScopeSet<'ra> { /// All scopes with macro namespace and the given macro kind restriction. Macro(MacroKind), /// All scopes with the given namespace, used for partially performing late resolution. - /// The node id enables lints and is used for reporting them. - Late(Namespace, Option<NodeId>), + Late(Namespace), } /// Everything you need to know about a name's location to resolve it. @@ -1888,7 +1887,8 @@ impl<'ra, 'tcx> Resolver<'ra, 'tcx> { } } - self.cm().visit_scopes(ScopeSet::All(TypeNS), parent_scope, ctxt, |this, scope, _, _| { + let scope_set = ScopeSet::All(TypeNS); + self.cm().visit_scopes(scope_set, parent_scope, ctxt, None, |this, scope, _, _| { match scope { Scope::Module(module, _) => { this.get_mut().traits_in_module(module, assoc_item, &mut found_traits); |
