]> git.lizzy.rs Git - rust.git/commit
Add large_types_passed_by_value lint
authorCauê Baasch de Souza <cauebs@pm.me>
Thu, 8 Oct 2020 05:17:32 +0000 (02:17 -0300)
committerCauê Baasch de Souza <cauebs@pm.me>
Sat, 24 Oct 2020 17:46:56 +0000 (14:46 -0300)
commite8731a926c9a642ca1ddf5b52baf40e0a8873d53
treee44754476bfa54b2653876320268d15282f0b7c1
parentbf1c6f9871f430e284b17aa44059e0d0395e28a6
Add large_types_passed_by_value lint

Refactor trivially_copy_pass_by_ref and the new lint into pass_by_ref_or_value module

Update stderr of conf_unknown_key test

Rename lint to large_types_passed_by_value

Increase `pass_by_value_size_limit` default value to 256

Improve rules for `large_types_passed_by_value`

Improve tests for `large_types_passed_by_value`

Improve documentation for `large_types_passed_by_value`

Make minor corrections to pass_by_ref_or_value.rs suggested by clippy itself

Fix `large_types_passed_by_value` example and improve docs

pass_by_ref_or_value: Tweak check for mut annotation in params

large_types_passed_by_value: add tests for pub trait, trait impl and inline attributes
CHANGELOG.md
clippy_lints/src/lib.rs
clippy_lints/src/pass_by_ref_or_value.rs [new file with mode: 0644]
clippy_lints/src/trivially_copy_pass_by_ref.rs [deleted file]
clippy_lints/src/utils/conf.rs
src/lintlist/mod.rs
tests/ui-toml/toml_unknown_key/conf_unknown_key.stderr
tests/ui/large_types_passed_by_value.rs [new file with mode: 0644]
tests/ui/large_types_passed_by_value.stderr [new file with mode: 0644]