diff options
| author | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-03 21:58:28 +0000 |
|---|---|---|
| committer | Jeffrey Seyfried <jeffrey.seyfried@gmail.com> | 2016-11-04 02:39:20 +0000 |
| commit | b7eed53b55d43c8d63ede9e8e45c532e9cc83cc2 (patch) | |
| tree | 54fd812f8fe95d85781fbebbd71720dbc8565f4d /src/libsyntax/ext | |
| parent | 23ad6fdb66a2159b173e3e781c51d648fa663882 (diff) | |
| download | rust-b7eed53b55d43c8d63ede9e8e45c532e9cc83cc2.tar.gz rust-b7eed53b55d43c8d63ede9e8e45c532e9cc83cc2.zip | |
Remove field `TtReader::next_tok`.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/transcribe.rs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libsyntax/ext/tt/transcribe.rs b/src/libsyntax/ext/tt/transcribe.rs index 96972f4dc88..37e329e5d3b 100644 --- a/src/libsyntax/ext/tt/transcribe.rs +++ b/src/libsyntax/ext/tt/transcribe.rs @@ -44,7 +44,6 @@ pub struct TtReader<'a> { /* cached: */ pub cur_tok: Token, pub cur_span: Span, - pub next_tok: Option<TokenAndSpan>, /// Transform doc comments. Only useful in macro invocations pub fatal_errs: Vec<DiagnosticBuilder<'a>>, } @@ -77,7 +76,6 @@ pub fn new_tt_reader(sp_diag: &Handler, /* dummy values, never read: */ cur_tok: token::Eof, cur_span: DUMMY_SP, - next_tok: None, fatal_errs: Vec::new(), }; tt_next_token(&mut r); /* get cur_tok and cur_span set up */ @@ -156,9 +154,6 @@ fn lockstep_iter_size(t: &TokenTree, r: &TtReader) -> LockstepIterSize { /// Return the next token from the TtReader. /// EFFECT: advances the reader's token field pub fn tt_next_token(r: &mut TtReader) -> TokenAndSpan { - if let Some(tok) = r.next_tok.take() { - return tok; - } // FIXME(pcwalton): Bad copy? let ret_val = TokenAndSpan { tok: r.cur_tok.clone(), |
