diff options
| author | Cameron Steffen <cam.steffen94@gmail.com> | 2025-08-13 14:36:13 -0500 |
|---|---|---|
| committer | Cameron Steffen <cam.steffen94@gmail.com> | 2025-09-12 15:14:15 -0500 |
| commit | b995a55cafcbcafec51aba6c567b32161fa9c2f1 (patch) | |
| tree | 853fd2e3bc6faedf1af0f98797144eaba922dfa7 /compiler/rustc_ty_utils | |
| parent | 9615ec7d108399501d7d48f4aeac46561ef31fc8 (diff) | |
| download | rust-b995a55cafcbcafec51aba6c567b32161fa9c2f1.tar.gz rust-b995a55cafcbcafec51aba6c567b32161fa9c2f1.zip | |
Don't store defaultness for inherent impl items
Diffstat (limited to 'compiler/rustc_ty_utils')
| -rw-r--r-- | compiler/rustc_ty_utils/src/ty.rs | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/compiler/rustc_ty_utils/src/ty.rs b/compiler/rustc_ty_utils/src/ty.rs index b3f2bb6d4b5..a5987757dc3 100644 --- a/compiler/rustc_ty_utils/src/ty.rs +++ b/compiler/rustc_ty_utils/src/ty.rs @@ -93,10 +93,6 @@ fn defaultness(tcx: TyCtxt<'_>, def_id: LocalDefId) -> hir::Defaultness { .. }) | hir::Node::TraitItem(hir::TraitItem { defaultness, .. }) => *defaultness, - hir::Node::ImplItem(hir::ImplItem { - impl_kind: hir::ImplItemImplKind::Inherent { .. }, - .. - }) => hir::Defaultness::Final, node => { bug!("`defaultness` called on {:?}", node); } |
