diff options
| author | bors <bors@rust-lang.org> | 2022-04-01 21:16:41 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-04-01 21:16:41 +0000 |
| commit | eb82facb1626166188d49599a3313fc95201f556 (patch) | |
| tree | cbccff501be86be4d6106d0544369909f896e413 /compiler/rustc_ty_utils/src | |
| parent | 297a8018b525c28ef10ee6a91d61954839b508b9 (diff) | |
| parent | 15b2d1a97c9cefe41bcb61d5faef5682c112172a (diff) | |
| download | rust-eb82facb1626166188d49599a3313fc95201f556.tar.gz rust-eb82facb1626166188d49599a3313fc95201f556.zip | |
Auto merge of #94883 - cjgillot:flat-metadata, r=oli-obk
Encode even more metadata through tables instead of EntryKind This should move us closer to getting rid of `EntryKind`.
Diffstat (limited to 'compiler/rustc_ty_utils/src')
| -rw-r--r-- | compiler/rustc_ty_utils/src/ty.rs | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs index 44ef0a09a65..64145bbf189 100644 --- a/compiler/rustc_ty_utils/src/ty.rs +++ b/compiler/rustc_ty_utils/src/ty.rs @@ -77,15 +77,6 @@ fn impl_defaultness(tcx: TyCtxt<'_>, def_id: DefId) -> hir::Defaultness { } } -fn impl_constness(tcx: TyCtxt<'_>, def_id: DefId) -> hir::Constness { - let item = tcx.hir().expect_item(def_id.expect_local()); - if let hir::ItemKind::Impl(impl_) = &item.kind { - impl_.constness - } else { - bug!("`impl_constness` called on {:?}", item); - } -} - /// Calculates the `Sized` constraint. /// /// In fact, there are only a few options for the types in the constraint: @@ -498,7 +489,6 @@ pub fn provide(providers: &mut ty::query::Providers) { instance_def_size_estimate, issue33140_self_ty, impl_defaultness, - impl_constness, conservative_is_privately_uninhabited: conservative_is_privately_uninhabited_raw, ..*providers }; |
