summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorJeffrey Seyfried <jeffrey.seyfried@gmail.com>2017-03-01 23:48:16 +0000
committerAlex Crichton <alex@alexcrichton.com>2017-03-10 08:08:32 -0800
commit8c98996934658631308e8fb4069d2db68ff44927 (patch)
tree36fe4e73db38f0582b4b508175ddbf5435624f88 /src/libsyntax/parse
parente83948631836555c61f9eb97e8657f28c74ba433 (diff)
downloadrust-8c98996934658631308e8fb4069d2db68ff44927.tar.gz
rust-8c98996934658631308e8fb4069d2db68ff44927.zip
Avoid using `Mark` and `Invocation` for macro defs.
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/parser.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d81732489dd..6446d38e5ef 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -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())))
     }