diff --git a/compiler/rustc_hir/src/weak_lang_items.rs b/compiler/rustc_hir/src/weak_lang_items.rs index f9d94bd505724..a2541089a530b 100644 --- a/compiler/rustc_hir/src/weak_lang_items.rs +++ b/compiler/rustc_hir/src/weak_lang_items.rs @@ -25,8 +25,6 @@ macro_rules! weak_lang_items { macro_rules! weak_only_lang_items { ($($item:ident,)*) => { - pub static WEAK_ONLY_LANG_ITEMS: &[LangItem] = &[$(LangItem::$item,)*]; - impl LangItem { pub fn is_weak_only(self) -> bool { matches!(self, $(LangItem::$item)|*)