2020-12-31 10:10:13 -06:00
|
|
|
error: redundant slicing of the whole range
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_slicing.rs:8:13
|
2020-12-31 10:10:13 -06:00
|
|
|
|
|
2022-01-03 14:25:00 -06:00
|
|
|
LL | let _ = &slice[..]; // Redundant slice
|
2021-03-25 21:30:14 -05:00
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `slice`
|
2020-12-31 10:10:13 -06:00
|
|
|
|
|
|
|
|
= note: `-D clippy::redundant-slicing` implied by `-D warnings`
|
|
|
|
|
2021-03-25 21:30:14 -05:00
|
|
|
error: redundant slicing of the whole range
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_slicing.rs:12:13
|
2022-01-03 14:25:00 -06:00
|
|
|
|
|
|
|
|
LL | let _ = &(&*v)[..]; // Outer borrow is redundant
|
|
|
|
| ^^^^^^^^^^ help: use the original value instead: `(&*v)`
|
|
|
|
|
|
|
|
error: redundant slicing of the whole range
|
2023-07-27 06:40:22 -05:00
|
|
|
--> $DIR/redundant_slicing.rs:29:13
|
2021-03-25 21:30:14 -05:00
|
|
|
|
|
|
|
|
LL | let _ = &m!(slice)[..];
|
|
|
|
| ^^^^^^^^^^^^^^ help: use the original value instead: `slice`
|
|
|
|
|
2022-02-13 17:43:19 -06:00
|
|
|
error: aborting due to 3 previous errors
|
2020-12-31 10:10:13 -06:00
|
|
|
|