Use Rc<[Symbol]> instead of Vec<Symbol> to reduce # of allocs

This commit is contained in:
Oliver Scherer
2019-02-07 14:19:06 +01:00
parent 1dba7cb202
commit b681433b9d
19 changed files with 54 additions and 50 deletions

View File

@@ -20,9 +20,9 @@ fn ignored_span(sp: Span) -> Span {
call_site: DUMMY_SP,
def_site: None,
format: MacroAttribute(Symbol::intern("std_inject")),
allow_internal_unstable: vec![
allow_internal_unstable: Some(vec![
Symbol::intern("prelude_import"),
],
].into()),
allow_internal_unsafe: false,
local_inner_macros: false,
edition: hygiene::default_edition(),