]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_resolve/def_collector.rs
Auto merge of #68170 - wesleywiser:stop_const_prop_ref_taking, r=oli-obk
[rust.git] / src / librustc_resolve / def_collector.rs
index f564ea644bdc1c3a3bc32be0999d3f5f4cfcfb9d..696ba0e994c7dbd095481e2c47cdd8c60befc9a1 100644 (file)
@@ -104,7 +104,7 @@ fn visit_item(&mut self, i: &'a Item) {
         // Pick the def data. This need not be unique, but the more
         // information we encapsulate into, the better
         let def_data = match &i.kind {
-            ItemKind::Impl(..) => DefPathData::Impl,
+            ItemKind::Impl { .. } => DefPathData::Impl,
             ItemKind::Mod(..) if i.ident.name == kw::Invalid => {
                 return visit::walk_item(self, i);
             }