about summary refs log tree commit diff
path: root/tests/debuginfo/enum-thinlto.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-15 15:15:54 +0000
committerbors <bors@rust-lang.org>2023-02-15 15:15:54 +0000
commit5b6795f50b521b11393d39f823d8a3e5b262b134 (patch)
tree0583893b1a43381f82acfb6da442267075ff0e22 /tests/debuginfo/enum-thinlto.rs
parent595f783f2212a551fe513c05922d4eda0b8bda7b (diff)
parent1ee4651ca1c31b39f106079e7546a47d00a3d945 (diff)
downloadrust-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/debuginfo/enum-thinlto.rs')
0 files changed, 0 insertions, 0 deletions