mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-24 13:43:17 +00:00
46 lines
1.9 KiB
Text
46 lines
1.9 KiB
Text
error: renamed function parameter of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:30:18
|
|
|
|
|
LL | fn eq(&self, rhs: &Self) -> bool {
|
|
| ^^^ help: consider using the default name: `other`
|
|
|
|
|
= note: `-D clippy::renamed-function-params` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::renamed_function_params)]`
|
|
|
|
error: renamed function parameter of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:34:18
|
|
|
|
|
LL | fn ne(&self, rhs: &Self) -> bool {
|
|
| ^^^ help: consider using the default name: `other`
|
|
|
|
error: renamed function parameter of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:48:19
|
|
|
|
|
LL | fn foo(&self, i_dont_wanna_use_your_name: u8) {} // only lint in `extend`
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using the default name: `val`
|
|
|
|
error: renamed function parameter of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:55:31
|
|
|
|
|
LL | fn hash<H: Hasher>(&self, states: &mut H) {
|
|
| ^^^^^^ help: consider using the default name: `state`
|
|
|
|
error: renamed function parameters of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:59:30
|
|
|
|
|
LL | fn hash_slice<H: Hasher>(date: &[Self], states: &mut H) {
|
|
| ^^^^ ^^^^^^
|
|
|
|
|
help: consider using the default names
|
|
|
|
|
LL | fn hash_slice<H: Hasher>(data: &[Self], state: &mut H) {
|
|
| ~~~~ ~~~~~
|
|
|
|
error: renamed function parameter of trait impl
|
|
--> tests/ui-toml/renamed_function_params/renamed_function_params.rs:80:18
|
|
|
|
|
LL | fn add(self, b: B) -> C {
|
|
| ^ help: consider using the default name: `rhs`
|
|
|
|
error: aborting due to 6 previous errors
|
|
|