Avoid using Mark and Invocation for macro defs.

This commit is contained in:
Jeffrey Seyfried 2017-03-01 23:48:16 +00:00 committed by Alex Crichton
parent e839486318
commit 8c98996934
13 changed files with 100 additions and 93 deletions

View file

@ -43,7 +43,6 @@ use {ast, attr};
use codemap::{self, CodeMap, Spanned, spanned, respan};
use syntax_pos::{self, Span, Pos, BytePos, mk_sp};
use errors::{self, DiagnosticBuilder};
use ext::hygiene::Mark;
use parse::{self, classify, token};
use parse::common::SeqSep;
use parse::lexer::TokenAndSpan;
@ -3731,7 +3730,7 @@ impl<'a> Parser<'a> {
}
let hi = self.prev_span.hi;
let kind = ItemKind::MacroDef(tts, Mark::fresh());
let kind = ItemKind::MacroDef(tts);
Ok(Some(self.mk_item(lo, hi, id, kind, Visibility::Inherited, attrs.to_owned())))
}