From ead6c4b9d44f43945db6e91c92f14cef31240c64 Mon Sep 17 00:00:00 2001 From: P1start Date: Mon, 6 Oct 2014 13:36:53 +1300 Subject: Add a lint for not using field pattern shorthands Closes #17792. --- src/libsyntax/ext/tt/macro_parser.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/libsyntax/ext/tt') diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs index 78fcd729aae..f2081674fb7 100644 --- a/src/libsyntax/ext/tt/macro_parser.rs +++ b/src/libsyntax/ext/tt/macro_parser.rs @@ -250,7 +250,7 @@ pub fn parse(sess: &ParseSess, let mut next_eis = Vec::new(); // or proceed normally let mut eof_eis = Vec::new(); - let TokenAndSpan {tok: tok, sp: sp} = rdr.peek(); + let TokenAndSpan { tok, sp } = rdr.peek(); /* we append new items to this while we go */ loop { -- cgit 1.4.1-3-g733a5