Open Nilstrieb opened 1 year ago
I sadly don't have a simple reproducer, but I can clippy in rust-lang/rust 1c39afb37536e7e2ea974734aa65ff025b47f7b9
x clippy compiler -A clippy::all -D clippy::perf
I just hit this issue when testing with nightly clippy, presumably due to #12691 expanding the set of things that are counted as interior mutable. In my own case, I was able to configure ignore-interior-mutability
based on my knowledge of the types in my project, but it could have been very difficult to track down what type clippy was actually objecting to (or more precisely, what type is the most appropriate to allow).
Summary
I'm not sure whether this is a false positive, there are lots of maps involved here and clippy doesn't tell me what it's complaining about. At least I have no clues where it could be coming from.
instances
is of typeUnordMap<DefId, HashMap<&List<GenericArg>, CrateNum, BuildHasherDefault<FxHasher>>>
where
Lint Name
mutable_key_type
Reproducer
I sadly don't have a simple reproducer, but I ran clippy in rust-lang/rust 1c39afb37536e7e2ea974734aa65ff025b47f7b9
Version
Additional Labels
No response