syntax: Factor out common fields from SyntaxExtension variants

This commit is contained in:
Vadim Petrochenkov
2019-06-16 18:58:39 +03:00
parent 704ab2ba10
commit 961ba8f9ef
22 changed files with 269 additions and 349 deletions

View File

@@ -66,7 +66,7 @@ pub fn expand_test_or_bench(
call_site: DUMMY_SP,
def_site: None,
format: MacroAttribute(sym::test),
allow_internal_unstable: Some(vec![sym::rustc_attrs, sym::test].into()),
allow_internal_unstable: Some([sym::rustc_attrs, sym::test][..].into()),
allow_internal_unsafe: false,
local_inner_macros: false,
edition: cx.parse_sess.edition,