Skip to content

Commit 812ace6

Browse files
committed
Fixed incorrect check_plus to token.is_like_plus.
1 parent a5dc83d commit 812ace6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/parser.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1546,7 +1546,7 @@ impl<'a> Parser<'a> {
15461546

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

0 commit comments

Comments
 (0)