hygiene: Do not reset expansion info for quote!

This commit is contained in:
Vadim Petrochenkov
2018-06-23 20:09:11 +03:00
parent fffe9fbb51
commit c00f5af4d6
5 changed files with 9 additions and 8 deletions

View File

@@ -804,7 +804,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
kind.dummy(span)
}
ProcMacro(ref expandfun, edition) => {
ProcMacro(ref expandfun, allow_internal_unstable, edition) => {
if ident.name != keywords::Invalid.name() {
let msg =
format!("macro {}! expects no ident argument, given '{}'", path, ident);
@@ -821,7 +821,7 @@ impl<'a, 'b> MacroExpander<'a, 'b> {
// yet, when they do, we should use it here.
span: None,
// FIXME probably want to follow macro_rules macros here.
allow_internal_unstable: false,
allow_internal_unstable,
allow_internal_unsafe: false,
edition,
},