Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update test stderr #5116

Merged
merged 1 commit into from
Jan 31, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tests/ui/borrow_box.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/bytecount.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/checked_unwrap/complex_conditionals.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/checked_unwrap/simple_conditionals.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand All @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/cstring.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/default_lint.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/fallible_impl_from.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/get_unwrap.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/identity_conversion.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/inefficient_to_string.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/infinite_iter.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/inherent_to_string.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/issue_2356.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/lint_without_lint_pass.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/mem_discriminant.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/mem_discriminant_unfixable.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/option_and_then_some.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/outer_expn_data.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/replace_consts.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/try_err.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/type_repetition_in_bounds.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unnecessary_ref.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unneeded_wildcard_pattern.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/unused_unit.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/useless_asref.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/wildcard_enum_match_arm.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down