Auto merge of #118250 - petrochenkov:optdefkind, r=compiler-errors
rustc: Make `def_kind` mandatory for all `DefId`s Prerequisite for https://github.com/rust-lang/rust/pull/118188.
This commit is contained in:
commit
5c97719393
13 changed files with 36 additions and 56 deletions
|
@ -498,7 +498,7 @@ impl<'tcx> EmbargoVisitor<'tcx> {
|
|||
}
|
||||
|
||||
let macro_module_def_id = self.tcx.local_parent(local_def_id);
|
||||
if self.tcx.opt_def_kind(macro_module_def_id) != Some(DefKind::Mod) {
|
||||
if self.tcx.def_kind(macro_module_def_id) != DefKind::Mod {
|
||||
// The macro's parent doesn't correspond to a `mod`, return early (#63164, #65252).
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue