]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_builtin_macros/util.rs
Rollup merge of #71767 - tshepang:stack-stuff, r=jonas-schievink
[rust.git] / src / librustc_builtin_macros / util.rs
index 8ef76a8657e1eaf9404fd343ea0984141bb7d067..b486eadd1a8bee4fcfff332e61255dfb3777c6c8 100644 (file)
@@ -6,7 +6,7 @@
 
 pub fn check_builtin_macro_attribute(ecx: &ExtCtxt<'_>, meta_item: &MetaItem, name: Symbol) {
     // All the built-in macro attributes are "words" at the moment.
-    let template = AttributeTemplate::only_word();
+    let template = AttributeTemplate { word: true, ..Default::default() };
     let attr = ecx.attribute(meta_item.clone());
     validate_attr::check_builtin_attribute(ecx.parse_sess, &attr, name, template);
 }