rust-clippy/tests/ui-toml
Philip Hayes 7b7e3ca511 Support free functions in disallowed-methods lint
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`.
2021-02-04 11:28:55 -08:00
..
bad_toml Update ui-toml tests 2019-08-14 09:58:00 +02:00
bad_toml_type Remove all copyright license headers 2019-01-08 21:46:39 +01:00
conf_deprecated_key Renamed: Cyclomatic Complexity -> Cognitive Complexity 2019-03-06 10:07:38 -03:00
fn_params_excessive_bools add excessive bools lints 2020-02-05 20:54:58 +03:00
functions_maxlines run the specific script suggested by the error message 2020-09-04 21:12:16 -06:00
good_toml_no_false_negatives Renamed: Cyclomatic Complexity -> Cognitive Complexity 2019-03-06 10:07:38 -03:00
invalid_min_rust_version add support for minimum supported rust version. 2020-11-25 12:22:47 +01:00
lint_decimal_readability Renamed the configuraiton to unreadable-literal-lint-fractions 2020-12-05 20:59:53 +00:00
min_rust_version add support for minimum supported rust version. 2020-11-25 12:22:47 +01:00
struct_excessive_bools add excessive bools lints 2020-02-05 20:54:58 +03:00
toml_blacklist Remove all copyright license headers 2019-01-08 21:46:39 +01:00
toml_disallowed_method Support free functions in disallowed-methods lint 2021-02-04 11:28:55 -08:00
toml_trivially_copy Downgrade trivially_copy_pass_by_ref to pedantic 2020-04-02 18:56:10 -07:00
toml_unknown_key Renamed the configuraiton to unreadable-literal-lint-fractions 2020-12-05 20:59:53 +00:00
vec_box_sized add size parameter for lint 2020-01-25 18:06:52 +03:00
zero_single_char_names Add test for zero single char names 2020-04-15 13:35:44 +02:00
update-all-references.sh Rewrite update-all-references bash scripts in Rust 2020-12-12 15:09:57 +01:00