mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-16 18:44:56 +00:00
ea079eb8a4
New Lint: disallowed_method Fixes https://github.com/rust-lang/rust-clippy/issues/6073 I added a `disallowed_method` lint that works similar to `blacklisted_name`, e.g allows config-defined disallowed method calls. This lint allows advanced users to patch in undesired method calls for specific projects. It basically uses the DefId of method calls and matches it to parsed strings. Is there an alternative approach that could use more easily digestible configuration strings? All tests pass as expected except for a linting error on `ui/redundant_pattern_matching_option`, which I am not sure how to resolve since I don't think I changed anything affecting it. changelog: Add disallowed_method lint to warn on user-defined method calls |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
README.md |