Skip to content

Commit

Permalink
Remove unused match
Browse files Browse the repository at this point in the history
  • Loading branch information
estebank committed Feb 7, 2019
1 parent 6045942 commit 80c0b32
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions src/libsyntax/parse/parser.rs
Expand Up @@ -1170,23 +1170,7 @@ impl<'a> Parser<'a> {

Ok(())
},
None => {
match (
&self.token,
self.unmatched_angle_bracket_count,
self.max_angle_bracket_count > 1,
) {
// (token::OpenDelim(_), 1, true) | (token::Semi, 1, true) => {
// self.struct_span_err(
// self.span,
// &format!("expected `>`, found `{}`", self.this_token_to_string()),
// // ).span_suggestion_short(
// ).emit();
// Ok(())
// }
_ => self.unexpected(),
}
}
None => self.unexpected(),
}
}

Expand Down Expand Up @@ -5846,11 +5830,12 @@ impl<'a> Parser<'a> {
.span_suggestion(
span,
&format!(
"remove extra angle bracket{}",
"{}remove extra angle bracket{}",
if plural { "" } else { "maybe " }, // account for `S::<u64(3)`
if plural { "s" } else { "" }
),
String::new(),
Applicability::MachineApplicable,
Applicability::MaybeIncorrect,
)
.emit();

Expand Down

0 comments on commit 80c0b32

Please sign in to comment.