diff options
| author | bors <bors@rust-lang.org> | 2023-02-15 15:15:54 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-02-15 15:15:54 +0000 |
| commit | 5b6795f50b521b11393d39f823d8a3e5b262b134 (patch) | |
| tree | 0583893b1a43381f82acfb6da442267075ff0e22 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff | |
| parent | 595f783f2212a551fe513c05922d4eda0b8bda7b (diff) | |
| parent | 1ee4651ca1c31b39f106079e7546a47d00a3d945 (diff) | |
| download | rust-5b6795f50b521b11393d39f823d8a3e5b262b134.tar.gz rust-5b6795f50b521b11393d39f823d8a3e5b262b134.zip | |
Auto merge of #10338 - mkrasnitski:synthetic-params, r=flip1995
Ignore synthetic type parameters for `extra_unused_type_parameters`
There was a minor bug around calculating spans when forming the help message. An example:
```rust
fn unused_opaque<A, B>(dummy: impl Default) {}
// ^^ ^
```
In this case, the entire list of generics should be highlighted, instead of each individual parameter. The culprit is the `impl Default`, which registers as a type parameter but doesn't live within the `<...>`. Because synthetic parameters can't ever be manually created, we just ignore them for this lint.
r? `@flip1995`
changelog: none
<!-- changelog_checked -->
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions
