]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_privacy/src/lib.rs
Rollup merge of #98718 - yoshuawuyts:stabilize-into-future, r=yaahc
[rust.git] / compiler / rustc_privacy / src / lib.rs
index cd91e402cac476dfbd62529097218d3849918fc4..5560d44aa0d52f5428252a3dd2f1fa2fa06b76ba 100644 (file)
@@ -467,7 +467,7 @@ fn update_reachability_from_macro(&mut self, local_def_id: LocalDefId, md: &Macr
         }
 
         let macro_module_def_id = self.tcx.local_parent(local_def_id);
-        if self.tcx.hir().opt_def_kind(macro_module_def_id) != Some(DefKind::Mod) {
+        if self.tcx.opt_def_kind(macro_module_def_id) != Some(DefKind::Mod) {
             // The macro's parent doesn't correspond to a `mod`, return early (#63164, #65252).
             return;
         }