diff options
| author | Crazycolorz5 <Crazycolorz5@gmail.com> | 2018-05-25 18:27:37 -0400 |
|---|---|---|
| committer | Crazycolorz5 <Crazycolorz5@gmail.com> | 2018-06-04 22:25:01 -0400 |
| commit | 812ace6e86f9e4789136f721c4459e1e5f0a646c (patch) | |
| tree | 3c14366c33dbd18f5f3387dcadd2d494d1c7b5f5 /src/libsyntax/parse | |
| parent | a5dc83d9708d83c9bdbbeb6fd7f12ceab2d92633 (diff) | |
| download | rust-812ace6e86f9e4789136f721c4459e1e5f0a646c.tar.gz rust-812ace6e86f9e4789136f721c4459e1e5f0a646c.zip | |
Fixed incorrect check_plus to token.is_like_plus.
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index a5129998e0f..b49db70c42d 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -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 => { |
