diff options
| author | maxcabrajac <max@cabrajac.com> | 2024-11-08 18:51:28 -0300 | 
|---|---|---|
| committer | maxcabrajac <max@cabrajac.com> | 2024-11-15 17:00:01 -0300 | 
| commit | 6180173612e7a8de35db441cde14c3cfacc62af7 (patch) | |
| tree | af955a5727c5b619327e8f83679d327b35fe243d /compiler/rustc_resolve | |
| parent | 12366563196d02f411d6743c0f41284837dc3f4c (diff) | |
| download | rust-6180173612e7a8de35db441cde14c3cfacc62af7.tar.gz rust-6180173612e7a8de35db441cde14c3cfacc62af7.zip | |
Add WalkItemKind::Ctxt so AssocCtxt is not sent to non-Assoc ItemKinds
Diffstat (limited to 'compiler/rustc_resolve')
| -rw-r--r-- | compiler/rustc_resolve/src/build_reduced_graph.rs | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/compiler/rustc_resolve/src/build_reduced_graph.rs b/compiler/rustc_resolve/src/build_reduced_graph.rs index bdf940a04b5..3589118df7e 100644 --- a/compiler/rustc_resolve/src/build_reduced_graph.rs +++ b/compiler/rustc_resolve/src/build_reduced_graph.rs @@ -1324,7 +1324,7 @@ impl<'a, 'ra, 'tcx> Visitor<'a> for BuildReducedGraphVisitor<'a, 'ra, 'tcx> { // This way they can use `macro_rules` defined later. self.visit_vis(&item.vis); self.visit_ident(&item.ident); - item.kind.walk(item, AssocCtxt::Trait, self); + item.kind.walk(item, (), self); visit::walk_list!(self, visit_attribute, &item.attrs); } _ => visit::walk_item(self, item), | 
