Skip to content

Commit c6a4bea

Browse files
committedFeb 7, 2020
1 parent b5e6d6d commit c6a4bea

17 files changed

+47
-12
lines changed
 

‎tests/ui/assertions_on_constants.stderr

+9-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ LL | assert!(true);
66
|
77
= note: `-D clippy::assertions-on-constants` implied by `-D warnings`
88
= help: remove it
9+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
910

1011
error: `assert!(false)` should probably be replaced
1112
--> $DIR/assertions_on_constants.rs:10:5
@@ -14,6 +15,7 @@ LL | assert!(false);
1415
| ^^^^^^^^^^^^^^^
1516
|
1617
= help: use `panic!()` or `unreachable!()`
18+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1719

1820
error: `assert!(true)` will be optimized out by the compiler
1921
--> $DIR/assertions_on_constants.rs:11:5
@@ -22,6 +24,7 @@ LL | assert!(true, "true message");
2224
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2325
|
2426
= help: remove it
27+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2528

2629
error: `assert!(false, "false message")` should probably be replaced
2730
--> $DIR/assertions_on_constants.rs:12:5
@@ -30,6 +33,7 @@ LL | assert!(false, "false message");
3033
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3134
|
3235
= help: use `panic!("false message")` or `unreachable!("false message")`
36+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3337

3438
error: `assert!(false, msg.to_uppercase())` should probably be replaced
3539
--> $DIR/assertions_on_constants.rs:15:5
@@ -38,6 +42,7 @@ LL | assert!(false, msg.to_uppercase());
3842
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3943
|
4044
= help: use `panic!(msg.to_uppercase())` or `unreachable!(msg.to_uppercase())`
45+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4146

4247
error: `assert!(true)` will be optimized out by the compiler
4348
--> $DIR/assertions_on_constants.rs:18:5
@@ -46,6 +51,7 @@ LL | assert!(B);
4651
| ^^^^^^^^^^^
4752
|
4853
= help: remove it
54+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4955

5056
error: `assert!(false)` should probably be replaced
5157
--> $DIR/assertions_on_constants.rs:21:5
@@ -54,6 +60,7 @@ LL | assert!(C);
5460
| ^^^^^^^^^^^
5561
|
5662
= help: use `panic!()` or `unreachable!()`
63+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5764

5865
error: `assert!(false, "C message")` should probably be replaced
5966
--> $DIR/assertions_on_constants.rs:22:5
@@ -62,6 +69,7 @@ LL | assert!(C, "C message");
6269
| ^^^^^^^^^^^^^^^^^^^^^^^^
6370
|
6471
= help: use `panic!("C message")` or `unreachable!("C message")`
72+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6573

6674
error: `debug_assert!(true)` will be optimized out by the compiler
6775
--> $DIR/assertions_on_constants.rs:24:5
@@ -70,7 +78,7 @@ LL | debug_assert!(true);
7078
| ^^^^^^^^^^^^^^^^^^^^
7179
|
7280
= help: remove it
73-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
81+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7482

7583
error: aborting due to 9 previous errors
7684

‎tests/ui/checked_unwrap/simple_conditionals.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ LL | $a.unwrap(); // unnecessary
5454
...
5555
LL | m!(x);
5656
| ------ in this macro invocation
57+
|
58+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5759

5860
error: You checked before that `unwrap()` cannot fail. Instead of checking and unwrapping, it's better to use `if let` or `match`.
5961
--> $DIR/simple_conditionals.rs:27:9

‎tests/ui/crashes/ice-2636.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ LL | test_hash!(&a, A => 0, B => 1, C => 2);
1111
| --------------------------------------- in this macro invocation
1212
|
1313
= note: `-D clippy::match-ref-pats` implied by `-D warnings`
14+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1415

1516
error: aborting due to previous error
1617

‎tests/ui/declare_interior_mutable_const.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ LL | const $name: $ty = $e;
3232
...
3333
LL | declare_const!(_ONCE: Once = Once::new()); //~ ERROR interior mutable
3434
| ------------------------------------------ in this macro invocation
35+
|
36+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3537

3638
error: a `const` item should never be interior mutable
3739
--> $DIR/declare_interior_mutable_const.rs:40:5
@@ -71,6 +73,8 @@ LL | const $name: $ty = $e;
7173
...
7274
LL | declare_const!(ANOTHER_INPUT: T = Self::INPUT); //~ ERROR interior mutable
7375
| ----------------------------------------------- in this macro invocation
76+
|
77+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7478

7579
error: a `const` item should never be interior mutable
7680
--> $DIR/declare_interior_mutable_const.rs:60:5

‎tests/ui/default_lint.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: the lint level is defined here
1515
LL | #![deny(clippy::internal)]
1616
| ^^^^^^^^^^^^^^^^
1717
= note: `#[deny(clippy::default_lint)]` implied by `#[deny(clippy::internal)]`
18-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
18+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1919

2020
error: aborting due to previous error
2121

‎tests/ui/derive_hash_xor_eq.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LL | | true
1414
LL | | }
1515
LL | | }
1616
| |_^
17+
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
1718

1819
error: you are deriving `Hash` but have implemented `PartialEq` explicitly
1920
--> $DIR/derive_hash_xor_eq.rs:19:10
@@ -30,6 +31,7 @@ LL | | true
3031
LL | | }
3132
LL | | }
3233
| |_^
34+
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
3335

3436
error: you are implementing `Hash` explicitly but have derived `PartialEq`
3537
--> $DIR/derive_hash_xor_eq.rs:31:1
@@ -44,6 +46,7 @@ note: `PartialEq` implemented here
4446
|
4547
LL | #[derive(PartialEq)]
4648
| ^^^^^^^^^
49+
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
4750

4851
error: you are implementing `Hash` explicitly but have derived `PartialEq`
4952
--> $DIR/derive_hash_xor_eq.rs:49:5
@@ -58,6 +61,7 @@ note: `PartialEq` implemented here
5861
|
5962
LL | #[derive(PartialEq)]
6063
| ^^^^^^^^^
64+
= note: this error originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
6165

6266
error: aborting due to 4 previous errors
6367

‎tests/ui/doc_unsafe.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ LL | | }
4040
...
4141
LL | very_unsafe!();
4242
| --------------- in this macro invocation
43+
|
44+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4345

4446
error: aborting due to 5 previous errors
4547

‎tests/ui/fallible_impl_from.stderr

+3-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ note: potential failure(s)
3838
|
3939
LL | panic!();
4040
| ^^^^^^^^^
41-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
41+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
4242

4343
error: consider implementing `TryFrom` instead
4444
--> $DIR/fallible_impl_from.rs:35:1
@@ -65,7 +65,7 @@ LL | } else if s.parse::<u32>().unwrap() != 42 {
6565
| ^^^^^^^^^^^^^^^^^^^^^^^^^
6666
LL | panic!("{:?}", s);
6767
| ^^^^^^^^^^^^^^^^^^
68-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
68+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6969

7070
error: consider implementing `TryFrom` instead
7171
--> $DIR/fallible_impl_from.rs:53:1
@@ -87,7 +87,7 @@ LL | if s.parse::<u32>().ok().unwrap() != 42 {
8787
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
8888
LL | panic!("{:?}", s);
8989
| ^^^^^^^^^^^^^^^^^^
90-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
90+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
9191

9292
error: aborting due to 4 previous errors
9393

‎tests/ui/implicit_hasher.stderr

+3
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ LL | impl<K: Hash + Eq, V> Foo<u8> for HashMap<K, V> {
105105
LL | gen!(impl);
106106
| ----------- in this macro invocation
107107
|
108+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
108109
help: consider adding a type parameter
109110
|
110111
LL | impl<K: Hash + Eq, V, S: ::std::hash::BuildHasher + Default> Foo<u8> for HashMap<K, V, S> {
@@ -123,6 +124,7 @@ LL | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>)
123124
LL | gen!(fn bar);
124125
| ------------- in this macro invocation
125126
|
127+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
126128
help: consider adding a type parameter
127129
|
128130
LL | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32, S>, _set: &mut HashSet<i32>) {}
@@ -137,6 +139,7 @@ LL | pub fn $name(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32>)
137139
LL | gen!(fn bar);
138140
| ------------- in this macro invocation
139141
|
142+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
140143
help: consider adding a type parameter
141144
|
142145
LL | pub fn $name<S: ::std::hash::BuildHasher>(_map: &mut HashMap<i32, i32>, _set: &mut HashSet<i32, S>) {}

‎tests/ui/lint_without_lint_pass.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ note: the lint level is defined here
1515
LL | #![deny(clippy::internal)]
1616
| ^^^^^^^^^^^^^^^^
1717
= note: `#[deny(clippy::lint_without_lint_pass)]` implied by `#[deny(clippy::internal)]`
18-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
18+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1919

2020
error: aborting due to previous error
2121

‎tests/ui/match_same_arms2.stderr

+2-2
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ help: consider refactoring into `(Ok(x), Some(_)) | (Ok(_), Some(x))`
121121
|
122122
LL | (Ok(x), Some(_)) => println!("ok {}", x),
123123
| ^^^^^^^^^^^^^^^^
124-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
124+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
125125

126126
error: this `match` has identical arm bodies
127127
--> $DIR/match_same_arms2.rs:117:18
@@ -139,7 +139,7 @@ help: consider refactoring into `Ok(3) | Ok(_)`
139139
|
140140
LL | Ok(3) => println!("ok"),
141141
| ^^^^^
142-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
142+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
143143

144144
error: aborting due to 7 previous errors
145145

‎tests/ui/mem_discriminant.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ LL | mem_discriminant_but_in_a_macro!(&rro);
7171
| | |
7272
| | help: try dereferencing: `*rro`
7373
| in this macro invocation
74+
|
75+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
7476

7577
error: calling `mem::discriminant` on non-enum type `&&&&&std::option::Option<i32>`
7678
--> $DIR/mem_discriminant.rs:34:5

‎tests/ui/mem_replace_macro.stderr

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ LL | take!(s);
88
| --------- in this macro invocation
99
|
1010
= note: `-D clippy::mem-replace-with-default` implied by `-D warnings`
11+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1112

1213
error: aborting due to previous error
1314

‎tests/ui/mut_mut.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ LL | &mut $p
2020
...
2121
LL | let mut z = mut_ptr!(&mut 3u32);
2222
| ------------------- in this macro invocation
23+
|
24+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
2325

2426
error: this expression mutably borrows a mutable reference. Consider reborrowing
2527
--> $DIR/mut_mut.rs:22:21

‎tests/ui/unit_cmp.stderr

+4-4
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ LL | | }
3434
LL | | );
3535
| |______^
3636
|
37-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
37+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
3838

3939
error: `debug_assert_eq` of unit values detected. This will always succeed
4040
--> $DIR/unit_cmp.rs:32:5
@@ -48,7 +48,7 @@ LL | | }
4848
LL | | );
4949
| |______^
5050
|
51-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
51+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5252

5353
error: `assert_ne` of unit values detected. This will always fail
5454
--> $DIR/unit_cmp.rs:41:5
@@ -62,7 +62,7 @@ LL | | }
6262
LL | | );
6363
| |______^
6464
|
65-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
65+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6666

6767
error: `debug_assert_ne` of unit values detected. This will always fail
6868
--> $DIR/unit_cmp.rs:49:5
@@ -76,7 +76,7 @@ LL | | }
7676
LL | | );
7777
| |______^
7878
|
79-
= note: this error originates in a macro outside of the current crate (in Nightly builds, run with -Z external-macro-backtrace for more info)
79+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
8080

8181
error: aborting due to 6 previous errors
8282

‎tests/ui/unseparated_prefix_literals.stderr

+2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ LL | 42usize
5050
...
5151
LL | let _ = lit_from_macro!();
5252
| ----------------- in this macro invocation
53+
|
54+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5355

5456
error: integer type suffix should be separated by an underscore
5557
--> $DIR/unseparated_prefix_literals.rs:40:16

‎tests/ui/use_self.stderr

+4
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ LL | fn new() -> Foo {
5656
...
5757
LL | use_self_expand!(); // Should lint in local macros
5858
| ------------------- in this macro invocation
59+
|
60+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
5961

6062
error: unnecessary structure name repetition
6163
--> $DIR/use_self.rs:113:17
@@ -65,6 +67,8 @@ LL | Foo {}
6567
...
6668
LL | use_self_expand!(); // Should lint in local macros
6769
| ------------------- in this macro invocation
70+
|
71+
= note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
6872

6973
error: unnecessary structure name repetition
7074
--> $DIR/use_self.rs:148:21

0 commit comments

Comments
 (0)