Skip to content

Commit

Permalink
Fixed incorrect check_plus to token.is_like_plus.
Browse files Browse the repository at this point in the history
  • Loading branch information
Crazycolorz5 committed Jun 5, 2018
1 parent a5dc83d commit 812ace6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libsyntax/parse/parser.rs
Expand Up @@ -1546,7 +1546,7 @@ impl<'a> Parser<'a> {

if ts.len() == 1 && !last_comma {
let ty = ts.into_iter().nth(0).unwrap().into_inner();
let maybe_bounds = allow_plus && self.check_plus();
let maybe_bounds = allow_plus && self.token.is_like_plus();
match ty.node {
// `(TY_BOUND_NOPAREN) + BOUND + ...`.
TyKind::Path(None, ref path) if maybe_bounds => {
Expand Down

0 comments on commit 812ace6

Please sign in to comment.