From 4900836ab75b877775905931eba586ea8f13935d Mon Sep 17 00:00:00 2001 From: Camelid Date: Wed, 10 Mar 2021 09:02:40 -0800 Subject: [PATCH] Fix bug It needs to be a variable! Co-authored-by: Joshua Nelson --- compiler/rustc_hir/src/lang_items.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_hir/src/lang_items.rs b/compiler/rustc_hir/src/lang_items.rs index 9301f622d6b..d62920a925b 100644 --- a/compiler/rustc_hir/src/lang_items.rs +++ b/compiler/rustc_hir/src/lang_items.rs @@ -38,7 +38,7 @@ macro_rules! expand_group { // So you probably just want to nip down to the end. macro_rules! language_item_table { ( - $( $(#[attr:meta])* $variant:ident $($group:expr)?, $name:expr, $method:ident, $target:expr; )* + $( $(#[$attr:meta])* $variant:ident $($group:expr)?, $name:expr, $method:ident, $target:expr; )* ) => { enum_from_u32! { @@ -48,7 +48,7 @@ macro_rules! language_item_table { $( #[doc = concat!("The `", stringify!($name), "` lang item.")] /// - $(#[attr])* + $(#[$attr])* $variant, )* }