mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-12-01 00:49:30 +00:00
2da0edbdf1
Until now, the lint only emitted a warning, when breaking public API. Now it doesn't lint at all when the config value is not set to `false`, bringing it in line with the other lints using this config value. Also ensures that this config value is documented in the lint.
17 lines
721 B
Text
17 lines
721 B
Text
error: this argument is a mutable reference, but not used mutably
|
|
--> tests/ui/needless_pass_by_ref_mut2.rs:8:26
|
|
|
|
|
LL | async fn inner_async3(x: &mut i32, y: &mut u32) {
|
|
| ^^^^^^^^ help: consider changing to: `&i32`
|
|
|
|
|
= note: `-D clippy::needless-pass-by-ref-mut` implied by `-D warnings`
|
|
= help: to override `-D warnings` add `#[allow(clippy::needless_pass_by_ref_mut)]`
|
|
|
|
error: this argument is a mutable reference, but not used mutably
|
|
--> tests/ui/needless_pass_by_ref_mut2.rs:16:39
|
|
|
|
|
LL | async fn inner_async4(u: &mut i32, v: &mut u32) {
|
|
| ^^^^^^^^ help: consider changing to: `&u32`
|
|
|
|
error: aborting due to 2 previous errors
|
|
|