fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
821 B23 linesraw
1error: redundant slicing of the whole range
2  --> $DIR/redundant_slicing.rs:8:13
3   |
4LL |     let _ = &slice[..]; // Redundant slice
5   |             ^^^^^^^^^^ help: use the original value instead: `slice`
6   |
7   = note: `-D clippy::redundant-slicing` implied by `-D warnings`
8   = help: to override `-D warnings` add `#[allow(clippy::redundant_slicing)]`
9
10error: redundant slicing of the whole range
11  --> $DIR/redundant_slicing.rs:12:13
12   |
13LL |     let _ = &(&*v)[..]; // Outer borrow is redundant
14   |             ^^^^^^^^^^ help: use the original value instead: `(&*v)`
15
16error: redundant slicing of the whole range
17  --> $DIR/redundant_slicing.rs:29:13
18   |
19LL |     let _ = &m!(slice)[..];
20   |             ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
21
22error: aborting due to 3 previous errors
23