| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:12:27 |
| | |
| LL | fn _one_unused(flag: u32, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:15:53 |
| | |
| LL | if flag == 0 { 0 } else { _one_unused(flag - 1, a) } |
| | ^ |
| = note: `-D clippy::only-used-in-recursion` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::only_used_in_recursion)]` |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:18:27 |
| | |
| LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:22:53 |
| | |
| LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:18:35 |
| | |
| LL | fn _two_unused(flag: u32, a: u32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_b` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:22:56 |
| | |
| LL | if flag == 0 { 0 } else { _two_unused(flag - 1, a, b) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:25:26 |
| | |
| LL | fn _with_calc(flag: u32, a: i64) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:31:32 |
| | |
| LL | _with_calc(flag - 1, (-a + 10) * 5) |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:40:33 |
| | |
| LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:47:38 |
| | |
| LL | _used_with_unused(flag - 1, -a, a + b) |
| | ^ ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:40:41 |
| | |
| LL | fn _used_with_unused(flag: u32, a: i32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_b` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:47:45 |
| | |
| LL | _used_with_unused(flag - 1, -a, a + b) |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:51:35 |
| | |
| LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:58:39 |
| | |
| LL | _codependent_unused(flag - 1, a * b, a + b) |
| | ^ ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:51:43 |
| | |
| LL | fn _codependent_unused(flag: u32, a: i32, b: i32) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_b` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:58:43 |
| | |
| LL | _codependent_unused(flag - 1, a * b, a + b) |
| | ^ ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:62:30 |
| | |
| LL | fn _not_primitive(flag: u32, b: String) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_b` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:65:56 |
| | |
| LL | if flag == 0 { 0 } else { _not_primitive(flag - 1, b) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:71:29 |
| | |
| LL | fn _method(flag: usize, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:74:59 |
| | |
| LL | if flag == 0 { 0 } else { Self::_method(flag - 1, a) } |
| | ^ |
| |
| error: `self` is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:77:22 |
| | |
| LL | fn _method_self(&self, flag: usize, a: usize) -> usize { |
| | ^^^^ |
| | |
| note: `self` used here |
| --> tests/ui/only_used_in_recursion.rs:81:35 |
| | |
| LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) } |
| | ^^^^ |
| = note: `-D clippy::self-only-used-in-recursion` implied by `-D warnings` |
| = help: to override `-D warnings` add `#[allow(clippy::self_only_used_in_recursion)]` |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:77:41 |
| | |
| LL | fn _method_self(&self, flag: usize, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:81:63 |
| | |
| LL | if flag == 0 { 0 } else { self._method_self(flag - 1, a) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:91:26 |
| | |
| LL | fn method(flag: u32, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:94:58 |
| | |
| LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:97:38 |
| | |
| LL | fn method_self(&self, flag: u32, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:100:62 |
| | |
| LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:125:26 |
| | |
| LL | fn method(flag: u32, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:128:58 |
| | |
| LL | if flag == 0 { 0 } else { Self::method(flag - 1, a) } |
| | ^ |
| |
| error: parameter is only used in recursion |
| --> tests/ui/only_used_in_recursion.rs:131:38 |
| | |
| LL | fn method_self(&self, flag: u32, a: usize) -> usize { |
| | ^ help: if this is intentional, prefix it with an underscore: `_a` |
| | |
| note: parameter used here |
| --> tests/ui/only_used_in_recursion.rs:134:62 |
| | |
| LL | if flag == 0 { 0 } else { self.method_self(flag - 1, a) } |
| | ^ |
| |
| error: aborting due to 16 previous errors |
| |