-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
disallowed-methods not working #8577
Comments
Edit: re-exported paths work fine. |
This is from the example: https://rust-lang.github.io/rust-clippy/master/#disallowed_methods Btw I also tried |
I tried v1.49.0, which is the first version supporting disallowed_methods. But it also didn't work.🤨 |
Just tested on |
Oh indeed. I misunderstood the clippy config file... Thank you for your hint. Now it works fine for But the method I actually wanted to disallow is |
The lint is /supposed/ to be enabled by default. I don't know what's happening there. For trait methods it might only work if you name the method on the trait itself, rather than on the type that implements it. Less than useful in this case, unfortunately. |
Just opened #8581 about disallowing methods on trait impls. |
Summary
no warning
Lint Name
disallowed-methods
Reproducer
No response
Version
The text was updated successfully, but these errors were encountered: