2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:22:13
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn from(b: B) -> Self {
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^ help: consider using the default name: `value`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
= note: `-D clippy::renamed-function-params` implied by `-D warnings`
|
|
|
|
= help: to override `-D warnings` add `#[allow(clippy::renamed_function_params)]`
|
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:28:18
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn eq(&self, rhs: &Self) -> bool {
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^^^ help: consider using the default name: `other`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:32:18
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn ne(&self, rhs: &Self) -> bool {
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^^^ help: consider using the default name: `other`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:46:19
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn foo(&self, i_dont_wanna_use_your_name: u8) {}
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: consider using the default name: `val`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:54:31
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn hash<H: Hasher>(&self, states: &mut H) {
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^^^^^^ help: consider using the default name: `state`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
error: renamed function parameters of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:58:30
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
|
LL | fn hash_slice<H: Hasher>(date: &[Self], states: &mut H) {
|
2024-03-28 03:29:52 -05:00
|
|
|
| ^^^^ ^^^^^^
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
help: consider using the default names
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
LL | fn hash_slice<H: Hasher>(data: &[Self], state: &mut H) {
|
|
|
|
| ~~~~ ~~~~~
|
|
|
|
|
|
|
|
error: renamed function parameter of trait impl
|
|
|
|
--> tests/ui/renamed_function_params.rs:79:18
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
2024-03-28 03:29:52 -05:00
|
|
|
LL | fn add(self, b: B) -> C {
|
|
|
|
| ^ help: consider using the default name: `rhs`
|
2023-09-20 06:05:37 -05:00
|
|
|
|
|
|
|
error: aborting due to 7 previous errors
|
|
|
|
|