Skip to content

Commit 20e6e6a

Browse files
committed
cleanup
1 parent 0bb43c6 commit 20e6e6a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_parse/src/parser/diagnostics.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,7 @@ impl<'a> Parser<'a> {
405405
let prev_span = self.prev_token.span.shrink_to_lo();
406406
let snapshot = self.create_snapshot_for_diagnostic();
407407
self.bump();
408-
let res = self.parse_ty();
409-
if res.is_ok() && self.token == token::Eq {
408+
if self.parse_ty().is_ok() && self.token == token::Eq {
410409
err.span_suggestion_verbose(
411410
prev_span,
412411
"you might have meant to introduce a new binding",

0 commit comments

Comments
 (0)