diff options
| author | Mark-Simulacrum <mark.simulacrum@gmail.com> | 2016-11-07 19:17:45 -0700 |
|---|---|---|
| committer | Mark-Simulacrum <mark.simulacrum@gmail.com> | 2016-11-12 06:42:40 -0700 |
| commit | eef10d0b5b9e0788442fc6c8ecce57ae7f5a4047 (patch) | |
| tree | b5eb513c7c5a525a255085a2981015cbccea37a6 /src/libsyntax/ext | |
| parent | c9e6089d29cd3263897d91e12519b79ba8721f85 (diff) | |
| download | rust-eef10d0b5b9e0788442fc6c8ecce57ae7f5a4047.tar.gz rust-eef10d0b5b9e0788442fc6c8ecce57ae7f5a4047.zip | |
Clean up extraneous &mut.
Diffstat (limited to 'src/libsyntax/ext')
| -rw-r--r-- | src/libsyntax/ext/tt/macro_parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 5f976336ccd..9f055f33c3d 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -459,7 +459,7 @@ pub fn parse(sess: &ParseSess, rdr: TtReader, ms: &[TokenTree]) -> NamedParseRes let mut ei = bb_eis.pop().unwrap(); if let TokenTree::Token(span, MatchNt(_, ident)) = ei.top_elts.get_tt(ei.idx) { let match_cur = ei.match_cur; - (&mut ei.matches[match_cur]).push(Rc::new(MatchedNonterminal( + ei.matches[match_cur].push(Rc::new(MatchedNonterminal( Rc::new(parse_nt(&mut parser, span, &ident.name.as_str()))))); ei.idx += 1; ei.match_cur += 1; |
