diff options
| author | bors <bors@rust-lang.org> | 2022-05-07 01:59:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-05-07 01:59:11 +0000 |
| commit | f6e5570460b2bb925021dc667ead2a9834ea88cb (patch) | |
| tree | 9e301c7ec30b1d6e89432b3228bb5b303cdc03a6 /compiler/rustc_monomorphize | |
| parent | 4799baa70d0ff1780ee6dffb743d62c79235ace9 (diff) | |
| parent | 91ef3ba71d36c17eafd8d582d348d96b8148fbd9 (diff) | |
| download | rust-f6e5570460b2bb925021dc667ead2a9834ea88cb.tar.gz rust-f6e5570460b2bb925021dc667ead2a9834ea88cb.zip | |
Auto merge of #96531 - kckeiks:remove-item-like-visitor-from-rustc-typeck, r=cjgillot
Remove ItemLikeVisitor impls from rustc_typeck Issue #95004 cc `@cjgillot`
Diffstat (limited to 'compiler/rustc_monomorphize')
| -rw-r--r-- | compiler/rustc_monomorphize/src/collector.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_monomorphize/src/collector.rs b/compiler/rustc_monomorphize/src/collector.rs index 18f32b04fad..f03d3943f9b 100644 --- a/compiler/rustc_monomorphize/src/collector.rs +++ b/compiler/rustc_monomorphize/src/collector.rs @@ -1164,7 +1164,7 @@ struct RootCollector<'a, 'tcx> { impl<'v> RootCollector<'_, 'v> { fn process_item(&mut self, id: hir::ItemId) { - match self.tcx.hir().def_kind(id.def_id) { + match self.tcx.def_kind(id.def_id) { DefKind::Enum | DefKind::Struct | DefKind::Union => { let item = self.tcx.hir().item(id); match item.kind { @@ -1225,7 +1225,7 @@ impl<'v> RootCollector<'_, 'v> { } fn process_impl_item(&mut self, id: hir::ImplItemId) { - if matches!(self.tcx.hir().def_kind(id.def_id), DefKind::AssocFn) { + if matches!(self.tcx.def_kind(id.def_id), DefKind::AssocFn) { self.push_if_root(id.def_id); } } |
