I think it's worth moving the clippy::unnecessary_mut_passed lint into rustc because it's a very basic coding mistake: ```rust #![allow(unused_variables)] fn foo(x: &u32) {} fn bar(a: &[u32]) {} fn spam(a: &[u32; 10]) {} fn main() { foo(&mut 10); let mut a = [0_u32; 10]; bar(&mut a[..]); spam(&mut a); } ``` See also, for further improvements: https://github.com/rust-lang/rust-clippy/issues/5546
Activity
clubby789 commentedon Mar 30, 2023
@rustbot label +A-lint