summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-02-03 11:18:48 +0000
committerbors <bors@rust-lang.org>2023-02-03 11:18:48 +0000
commit8a9860901f0ae9782ff23fb793838a16f733a60b (patch)
tree2ca010fb11e8bc3e71af454f906b621c094a28eb /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent006a4cc7670eebd63236a16fb6495060f83d1cbc (diff)
parentfba16e2e3a6f743cb23c7793851a4f0201b21722 (diff)
downloadrust-8a9860901f0ae9782ff23fb793838a16f733a60b.tar.gz
rust-8a9860901f0ae9782ff23fb793838a16f733a60b.zip
Auto merge of #10028 - mkrasnitski:extra_unused_type_parameters, r=flip1995
Add `extra_unused_type_parameters` lint

Closes #9240. ~~Keeping this as draft for now, because of a bug that I don't know how to fix.~~ It seems that opaque return types are not walked properly, for some unknown reason. As in, the following:

```rust
fn used_ret_opaque<A>() -> impl Iterator<Item = A> {
    std::iter::empty()
}
```
This triggers the lint even though it shouldn't. Discussion on Zulip didn't illuminate any possible reasons why, so PR-ing this now to increase visibility.

---

changelog: new lint: [`extra_unused_type_parameters`]
[#10028](https://github.com/rust-lang/rust-clippy/pull/10028)
<!-- changelog_checked -->
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions