-
Notifications
You must be signed in to change notification settings - Fork 1.7k
mutable_key_type false positives #5325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This means that the I do however think it may be because the type is likely in another crate, which may throw a wrench in the Rust compiler's Freeze trait inference (which we use to find out if a type is really immutable). Will try to reproduce in our test suite. |
I have rebuilt what you described within our test suite. And I get no warning. So there must be something else that you didn't show us (for example is there some re-export or |
we have |
I'm not sure exactly what is missing, I wasn't able to reproduce this with a shorter example as well :/ |
In that case, are you OK with closing the issue until we can find a reproducer? |
Up to you. We'll revisit when we have time, but I thought you should know about the issue now :) |
I also tried to reproduce this. I thought that it had something to do with |
I think I have a reproducer for this-- I'm not 100% positive the key type isn't actually mutable, but it would be unexpected if it is...
Code:
Clippy output:
EDIT: Ooooh, |
@rustbot claim |
Hello!
We're getting false positives with the
mutable_key_type
rule: https://circleci.com/gh/libra/libra/41319?utm_campaign=vcs-integration-link&utm_medium=referral&utm_source=github-checks-linkIt seems to be triggered by this:
where ProtocolId is defined as
which is
I wasn't able to reproduce it with a simple example, so not sure why clippy is getting triggered here.
The text was updated successfully, but these errors were encountered: