diff options
| author | Jason Newcomb <jsnewcomb@pm.me> | 2025-05-02 15:47:40 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-05-02 15:47:40 +0000 |
| commit | fb9508d7a0f7371ffacfb57065df9150d27c76bf (patch) | |
| tree | 82fb25504b6515dba7e0aa55f1d15dafb2f65bbc /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | a53acefef770b7df82267be62eb85a05d92a1d66 (diff) | |
| parent | 7bfb15cd11d21c0edf0d60fb8419f0736e10937f (diff) | |
| download | rust-fb9508d7a0f7371ffacfb57065df9150d27c76bf.tar.gz rust-fb9508d7a0f7371ffacfb57065df9150d27c76bf.zip | |
Fix `new_lint` clippy command (#14642)
I'm working on https://github.com/rust-lang/rust-clippy/issues/14542 and I decided to name the lint `unnecessary_map` originally. However when I ran the command, I got: ``` thread 'main' panicked at clippy_dev/src/new_lint.rs:450:5: Lint `unnecessary_map` already defined in `/home/imperio/rust/clippy/clippy_lints/src/methods/mod.rs` note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace ``` It's because there is already a `unnecessary_map_or`, which matches the `.contains()` call. This PR strengthens this check. changelog: Fix `new_lint` clippy command r? @flip1995
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
