]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #93303 - compiler-errors:issue-93282, r=wesleywiser
authorMatthias Krüger <matthias.krueger@famsik.de>
Tue, 25 Jan 2022 22:06:04 +0000 (23:06 +0100)
committerGitHub <noreply@github.com>
Tue, 25 Jan 2022 22:06:04 +0000 (23:06 +0100)
Fix ICE when parsing bad turbofish with lifetime argument

Generalize conditions where we suggest adding the turbofish operator, so we don't ICE during code like

```rust
fn foo() {
  A<'a,>
}
```

but instead suggest adding a turbofish.

Fixes #93282


Trivial merge