update test stderr

This commit is contained in:
Matthias Krüger 2020-01-31 20:21:10 +01:00
parent 5826a0472d
commit 187983e991
26 changed files with 29 additions and 29 deletions

View file

@ -4,7 +4,7 @@ error: you seem to be trying to use `&Box<T>`. Consider using just `&T`
LL | pub fn test1(foo: &mut Box<bool>) {
| ^^^^^^^^^^^^^^ help: try: `&mut bool`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/borrow_box.rs:1:9
|
LL | #![deny(clippy::borrowed_box)]

View file

@ -4,7 +4,7 @@ error: You appear to be counting bytes the naive way
LL | let _ = x.iter().filter(|&&a| a == 0).count(); // naive byte count
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: Consider using the bytecount crate: `bytecount::count(x, 0)`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/bytecount.rs:1:8
|
LL | #[deny(clippy::naive_bytecount)]

View file

@ -6,7 +6,7 @@ LL | if x.is_ok() && y.is_err() {
LL | x.unwrap(); // unnecessary
| ^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/complex_conditionals.rs:1:35
|
LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
@ -21,7 +21,7 @@ LL | x.unwrap(); // unnecessary
LL | x.unwrap_err(); // will panic
| ^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/complex_conditionals.rs:1:9
|
LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]

View file

@ -6,7 +6,7 @@ LL | if x.is_some() {
LL | x.unwrap(); // unnecessary
| ^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/simple_conditionals.rs:1:35
|
LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]
@ -21,7 +21,7 @@ LL | if x.is_some() {
LL | x.unwrap(); // will panic
| ^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/simple_conditionals.rs:1:9
|
LL | #![deny(clippy::panicking_unwrap, clippy::unnecessary_unwrap)]

View file

@ -4,7 +4,7 @@ error: you are getting the inner pointer of a temporary `CString`
LL | CString::new("foo").unwrap().as_ptr();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/cstring.rs:1:9
|
LL | #![deny(clippy::temporary_cstring_as_ptr)]

View file

@ -9,7 +9,7 @@ LL | | report_in_external_macro: true
LL | | }
| |_^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/default_lint.rs:1:9
|
LL | #![deny(clippy::internal)]

View file

@ -8,7 +8,7 @@ LL | | }
LL | | }
| |_^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/fallible_impl_from.rs:1:9
|
LL | #![deny(clippy::fallible_impl_from)]

View file

@ -4,7 +4,7 @@ error: called `.get().unwrap()` on a slice. Using `[]` is more clear and more co
LL | let _ = boxed_slice.get(1).unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `&boxed_slice[1]`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/get_unwrap.rs:3:9
|
LL | #![deny(clippy::get_unwrap)]

View file

@ -4,7 +4,7 @@ error: identical conversion
LL | let _ = T::from(val);
| ^^^^^^^^^^^^ help: consider removing `T::from()`: `val`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/identity_conversion.rs:3:9
|
LL | #![deny(clippy::identity_conversion)]

View file

@ -4,7 +4,7 @@ error: calling `to_string` on `&&str`
LL | let _: String = rrstr.to_string();
| ^^^^^^^^^^^^^^^^^ help: try dereferencing the receiver: `(*rrstr).to_string()`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/inefficient_to_string.rs:2:9
|
LL | #![deny(clippy::inefficient_to_string)]

View file

@ -4,7 +4,7 @@ error: infinite iteration detected
LL | repeat(0_u8).collect::<Vec<_>>(); // infinite iter
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/infinite_iter.rs:8:8
|
LL | #[deny(clippy::infinite_iter)]
@ -50,7 +50,7 @@ error: possible infinite iteration detected
LL | (0..).zip((0..).take_while(square_is_lower_64)).count(); // maybe infinite iter
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/infinite_iter.rs:29:8
|
LL | #[deny(clippy::maybe_infinite_iter)]

View file

@ -17,7 +17,7 @@ LL | | "C.to_string()".to_string()
LL | | }
| |_____^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/inherent_to_string.rs:2:9
|
LL | #![deny(clippy::inherent_to_string_shadow_display)]

View file

@ -4,7 +4,7 @@ error: this loop could be written as a `for` loop
LL | while let Some(e) = it.next() {
| ^^^^^^^^^ help: try: `for e in it { .. }`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/issue_2356.rs:1:9
|
LL | #![deny(clippy::while_let_on_iterator)]

View file

@ -9,7 +9,7 @@ LL | | report_in_external_macro: true
LL | | }
| |_^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/lint_without_lint_pass.rs:1:9
|
LL | #![deny(clippy::internal)]

View file

@ -6,7 +6,7 @@ LL | mem::discriminant(&&Some(2));
| |
| help: try dereferencing: `&Some(2)`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/mem_discriminant.rs:3:9
|
LL | #![deny(clippy::mem_discriminant_non_enum)]

View file

@ -4,7 +4,7 @@ error: calling `mem::discriminant` on non-enum type `&str`
LL | mem::discriminant(&"hello");
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/mem_discriminant_unfixable.rs:1:9
|
LL | #![deny(clippy::mem_discriminant_non_enum)]

View file

@ -4,7 +4,7 @@ error: using `Option.and_then(Some)`, which is a no-op
LL | let _ = x.and_then(Some);
| ^^^^^^^^^^^^^^^^ help: use the expression directly: `x`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/option_and_then_some.rs:2:9
|
LL | #![deny(clippy::option_and_then_some)]

View file

@ -4,7 +4,7 @@ error: usage of `outer_expn().expn_data()`
LL | let _ = expr.span.ctxt().outer_expn().expn_data();
| ^^^^^^^^^^^^^^^^^^^^^^^^ help: try: `outer_expn_data()`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/outer_expn_data.rs:3:9
|
LL | #![deny(clippy::internal)]

View file

@ -4,7 +4,7 @@ error: using `MIN`
LL | { let foo = std::isize::MIN; };
| ^^^^^^^^^^^^^^^ help: try this: `isize::min_value()`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/replace_consts.rs:4:9
|
LL | #![deny(clippy::replace_consts)]

View file

@ -4,7 +4,7 @@ error: returning an `Err(_)` with the `?` operator
LL | Err(err)?;
| ^^^^^^^^^ help: try this: `return Err(err)`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/try_err.rs:4:9
|
LL | #![deny(clippy::try_err)]

View file

@ -4,7 +4,7 @@ error: this type has already been used as a bound predicate
LL | T: Clone,
| ^^^^^^^^
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/type_repetition_in_bounds.rs:1:8
|
LL | #[deny(clippy::type_repetition_in_bounds)]

View file

@ -4,7 +4,7 @@ error: Creating a reference that is immediately dereferenced.
LL | let inner = (&outer).inner;
| ^^^^^^^^ help: try this: `outer`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unnecessary_ref.rs:10:8
|
LL | #[deny(clippy::ref_in_deref)]

View file

@ -4,7 +4,7 @@ error: this pattern is unneeded as the `..` pattern can match that element
LL | if let (0, .., _) = t {};
| ^^^ help: remove it
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unneeded_wildcard_pattern.rs:3:9
|
LL | #![deny(clippy::unneeded_wildcard_pattern)]

View file

@ -6,7 +6,7 @@ LL | pub fn get_unit<F: Fn() -> (), G>(&self, f: F, _g: G) ->
LL | | ()
| |__________^ help: remove the `-> ()`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/unused_unit.rs:12:9
|
LL | #![deny(clippy::unused_unit)]

View file

@ -4,7 +4,7 @@ error: this call to `as_ref` does nothing
LL | foo_rstr(rstr.as_ref());
| ^^^^^^^^^^^^^ help: try this: `rstr`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/useless_asref.rs:3:9
|
LL | #![deny(clippy::useless_asref)]

View file

@ -4,7 +4,7 @@ error: wildcard match will miss any future added variants
LL | _ => eprintln!("Not red"),
| ^ help: try this: `Color::Green | Color::Blue | Color::Rgb(..) | Color::Cyan`
|
note: lint level defined here
note: the lint level is defined here
--> $DIR/wildcard_enum_match_arm.rs:3:9
|
LL | #![deny(clippy::wildcard_enum_match_arm)]