Fixed incorrect check_plus to token.is_like_plus.

This commit is contained in:
Crazycolorz5 2018-05-25 18:27:37 -04:00
parent a5dc83d970
commit 812ace6e86

View File

@ -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 => {