about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorLamb <lambtowolf@protonmail.com>2018-05-30 13:06:05 +0200
committerPietro Albini <pietro@pietroalbini.org>2018-06-22 11:38:38 +0200
commit815765dadeb011180ad3ea0ce02c9cc59f8c93cc (patch)
tree3ea176013092acc109f26928d14814a18fc1fd4a /src/libsyntax/parse/parser.rs
parentfadb86f25d4053289c612cbba6b92da793976c16 (diff)
downloadrust-815765dadeb011180ad3ea0ce02c9cc59f8c93cc.tar.gz
rust-815765dadeb011180ad3ea0ce02c9cc59f8c93cc.zip
Issue #50974: Fix compilation error and test
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index d6916c1c344..456054ee251 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -776,7 +776,7 @@ impl<'a> Parser<'a> {
             err.span_label(self.span, format!("expected identifier, found {}", token_descr));
         } else {
             err.span_label(self.span, "expected identifier");
-            if self.token == token::Comma && self.look_ahead(1, |t| *t.is_ident()) {
+            if self.token == token::Comma && self.look_ahead(1, |t| t.is_ident()) {
                 err.span_suggestion(self.span, "remove this comma", "".into());
             }
         }