diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs index e7a042a63489b..498000db50f43 100644 --- a/compiler/rustc_hir/src/lang_items.rs +++ b/compiler/rustc_hir/src/lang_items.rs @@ -119,7 +119,6 @@ macro_rules! language_item_table { $( #[doc = concat!("Returns the [`DefId`] of the `", stringify!($name), "` lang item if it is defined.")] - #[allow(dead_code)] pub fn $method(&self) -> Option { self.items[LangItem::$variant as usize] }