Rollup merge of #33343 - birkenfeld:issue-32214, r=Manishearth
parser: change warning into an error on `T<A=B, C>` part of #32214 This seems to be the obvious fix, and the error message is consistent with all the other parser errors ("expected x, found y").
This commit is contained in:
@@ -4419,11 +4419,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);
|
||||
|
||||
Reference in New Issue
Block a user