mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-14 17:48:10 +00:00
7b7e3ca511
In other words, support: `disallowed_methods = ["alloc::vec::Vec::new"]` (a free function) in addition to `disallowed_methods = ["alloc::vec::Vec::leak"]` (a method). Improve the documentation to clarify that users must specify the full qualified path for each disallowed function, which can be confusing for reexports. Include an example `clippy.toml`. Simplify the actual lint pass so we can reuse `utils::fn_def_id`. |
||
---|---|---|
.. | ||
bad_toml | ||
bad_toml_type | ||
conf_deprecated_key | ||
fn_params_excessive_bools | ||
functions_maxlines | ||
good_toml_no_false_negatives | ||
invalid_min_rust_version | ||
lint_decimal_readability | ||
min_rust_version | ||
struct_excessive_bools | ||
toml_blacklist | ||
toml_disallowed_method | ||
toml_trivially_copy | ||
toml_unknown_key | ||
vec_box_sized | ||
zero_single_char_names | ||
update-all-references.sh |