Rollup merge of #122540 - WaffleLapkin:ununexpected, r=estebank
Do not use `?`-induced skewing of type inference in the compiler This prevents breakage from #122412 and is generally a good idea. r? `@estebank`
This commit is contained in:
commit
9fb40efa6d
11 changed files with 30 additions and 18 deletions
|
@ -660,7 +660,7 @@ impl<'a> Parser<'a> {
|
|||
// Add `>` to the list of expected tokens.
|
||||
self.check(&token::Gt);
|
||||
// Handle `,` to `;` substitution
|
||||
let mut err = self.unexpected::<()>().unwrap_err();
|
||||
let mut err = self.unexpected().unwrap_err();
|
||||
self.bump();
|
||||
err.span_suggestion_verbose(
|
||||
self.prev_token.span.until(self.token.span),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue