Rollup merge of #110955 - fee1-dead-contrib:sus-operation, r=compiler-errors
uplift `clippy::clone_double_ref` as `suspicious_double_ref_op` Split from #109842. r? ``@compiler-errors``
This commit is contained in:
commit
40c4ed4994
21 changed files with 237 additions and 200 deletions
|
|
@ -1,4 +1,5 @@
|
|||
#[test]
|
||||
#[cfg_attr(not(bootstrap), allow(suspicious_double_ref_op))]
|
||||
fn test_borrowed_clone() {
|
||||
let x = 5;
|
||||
let y: &i32 = &x;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue