diff options
| author | Georg Brandl <georg@python.org> | 2016-05-02 15:09:36 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2016-05-02 15:10:28 +0200 |
| commit | 98d991fac531d9a437a697dc7ad29967c978a3d3 (patch) | |
| tree | d5fa7a7a374804e172aafdd6dd06efaf8bc081b1 /src/libsyntax/parse | |
| parent | 855fb6192263a5c059325bb4b4e10b55e4e8ddbb (diff) | |
| download | rust-98d991fac531d9a437a697dc7ad29967c978a3d3.tar.gz rust-98d991fac531d9a437a697dc7ad29967c978a3d3.zip | |
parser: change warning into an error on `T<A=B, C>`
Fixes: #32214
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index 671a11b57de..e5780c70608 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -4420,11 +4420,7 @@ impl<'a> Parser<'a> { p.forbid_lifetime()?; let lo = p.span.lo; let ident = p.parse_ident()?; - let found_eq = p.eat(&token::Eq); - if !found_eq { - let span = p.span; - p.span_warn(span, "whoops, no =?"); - } + p.expect(&token::Eq)?; let ty = p.parse_ty()?; let hi = ty.span.hi; let span = mk_sp(lo, hi); |
