Skip to content

Commit 9198184

Browse files
committed
remove unneeded lang item
1 parent b3e3008 commit 9198184

File tree

3 files changed

+0
-5
lines changed

3 files changed

+0
-5
lines changed

compiler/rustc_hir/src/lang_items.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,6 @@ language_item_table! {
447447
UnalignedFieldBase, sym::UnalignedFieldBase, unaligned_field_base, Target::AssocTy, GenericRequirement::None;
448448
UnalignedFieldType, sym::UnalignedFieldType, unaligned_field_type, Target::AssocTy, GenericRequirement::None;
449449
UnalignedFieldOFFSET, sym::UnalignedFieldOFFSET, unaligned_field_offset, Target::AssocConst, GenericRequirement::None;
450-
UnalignedFieldOffset, sym::unaligned_field_offset, unaligned_field_offset_getter, Target::Fn, GenericRequirement::Exact(1);
451450
}
452451

453452
/// The requirement imposed on the generics of a lang item

compiler/rustc_middle/src/ty/context.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3433,9 +3433,6 @@ impl<'tcx> TyCtxt<'tcx> {
34333433
pub fn intrinsic(self, def_id: impl IntoQueryParam<DefId> + Copy) -> Option<ty::IntrinsicDef> {
34343434
match self.def_kind(def_id) {
34353435
DefKind::Fn | DefKind::AssocFn => {}
3436-
DefKind::AssocConst
3437-
if self.is_lang_item(def_id.into_query_param(), LangItem::UnalignedFieldOFFSET) => {
3438-
}
34393436
_ => return None,
34403437
}
34413438
self.intrinsic_raw(def_id)

library/core/src/intrinsics/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3324,7 +3324,6 @@ pub unsafe fn va_end(ap: &mut VaListImpl<'_>);
33243324
///
33253325
/// This is a `const`-only intrinsic that doesn't have any codegen.
33263326
#[rustc_intrinsic]
3327-
#[lang = "unaligned_field_offset"]
33283327
#[unstable(feature = "field_projections", issue = "145383")]
33293328
#[rustc_const_unstable(feature = "field_projections", issue = "145383")]
33303329
pub const fn unaligned_field_offset<F: crate::field::UnalignedField>() -> usize;

0 commit comments

Comments
 (0)