diff --git a/tests/ui/methods.stderr b/tests/ui/methods.stderr index da4f5c3f807..425a29bb79e 100644 --- a/tests/ui/methods.stderr +++ b/tests/ui/methods.stderr @@ -950,13 +950,18 @@ help: assign the `CString` to a variable to extend its lifetime 687 | CString::new("foo").unwrap().as_ptr(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -warning: called `cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable +error: called `cloned().collect()` on a slice to create a `Vec`. Calling `to_vec()` is both faster and more readable --> $DIR/methods.rs:695:27 | 695 | let v2 : Vec = v.iter().cloned().collect(); | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ | - = note: #[warn(iter_cloned_collect)] on by default + = note: #[deny(iter_cloned_collect)] implied by #[deny(clippy)] +note: lint level defined here + --> $DIR/methods.rs:5:9 + | +5 | #![deny(clippy, clippy_pedantic)] + | ^^^^^^ -error: aborting due to 88 previous errors +error: aborting due to 89 previous errors