Skip to content

Commit d6083ad

Browse files
committed
Fix test breakage after rust-lang/rust#72121
See rust-lang/rust#72121. The PR fixes some hygiene issues and thus exposes that the originating expression comes from macros.
1 parent 6604643 commit d6083ad

File tree

2 files changed

+41
-14
lines changed

2 files changed

+41
-14
lines changed

tests/cases/pathologic_paths/stdout

+27-14
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
version bump: 1.0.0 -> (technically breaking) -> 1.1.0
22
warning: path changes to `a`
3-
--> pathologic_paths/new.rs:5:9
4-
|
5-
5 | pub mod a { blow!($($rest)*); }
6-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
7-
|
8-
= note: added definition (technically breaking)
3+
--> pathologic_paths/new.rs:10:1
4+
|
5+
10 | / blow!(_ _ _ _ _ _ _ _
6+
11 | | _ _ _ _ _ _ _ _
7+
12 | | _ _ _ _ _ _ _ _
8+
13 | | _ _ _ _ _ _ _ _
9+
... |
10+
16 | | _ _ _ _ _ _ _ _
11+
17 | | _ _ _ _ _ _ _ _);
12+
| |_______________________^
13+
|
14+
= note: added definition (technically breaking)
15+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
916

1017
warning: path changes to `b`
11-
--> pathologic_paths/new.rs:6:9
12-
|
13-
6 | pub mod b { pub use super::a::*; }
14-
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
15-
|
16-
= note: added definition (technically breaking)
17-
18-
warning: 2 warnings emitted
18+
--> pathologic_paths/new.rs:10:1
19+
|
20+
10 | / blow!(_ _ _ _ _ _ _ _
21+
11 | | _ _ _ _ _ _ _ _
22+
12 | | _ _ _ _ _ _ _ _
23+
13 | | _ _ _ _ _ _ _ _
24+
... |
25+
16 | | _ _ _ _ _ _ _ _
26+
17 | | _ _ _ _ _ _ _ _);
27+
| |_______________________^
28+
|
29+
= note: added definition (technically breaking)
30+
= note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)
1931

32+
warning: 2 warnings emitted

tests/full_cases/log-0.3.4-0.3.8.linux

+14
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ warning: technically breaking changes in `<new::LogLevel as std::hash::Hash>`
66
| ^^^^
77
|
88
= note: trait impl generalized or newly added (technically breaking)
9+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
910

1011
warning: technically breaking changes in `<new::LogLevelFilter as std::hash::Hash>`
1112
--> log-0.3.8/src/lib.rs:410:27
@@ -14,6 +15,7 @@ warning: technically breaking changes in `<new::LogLevelFilter as std::hash::Has
1415
| ^^^^
1516
|
1617
= note: trait impl generalized or newly added (technically breaking)
18+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
1719

1820
warning: technically breaking changes in `<new::LogRecord<'a> as std::fmt::Debug>`
1921
--> log-0.3.8/src/lib.rs:517:10
@@ -22,6 +24,7 @@ warning: technically breaking changes in `<new::LogRecord<'a> as std::fmt::Debug
2224
| ^^^^^
2325
|
2426
= note: trait impl generalized or newly added (technically breaking)
27+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
2528

2629
warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Eq>`
2730
--> log-0.3.8/src/lib.rs:552:10
@@ -30,6 +33,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Eq>
3033
| ^^
3134
|
3235
= note: trait impl generalized or newly added (technically breaking)
36+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
3337

3438
warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::PartialEq>`
3539
--> log-0.3.8/src/lib.rs:552:14
@@ -38,6 +42,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Par
3842
| ^^^^^^^^^
3943
|
4044
= note: trait impl generalized or newly added (technically breaking)
45+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
4146

4247
warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Ord>`
4348
--> log-0.3.8/src/lib.rs:552:25
@@ -46,6 +51,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Ord
4651
| ^^^
4752
|
4853
= note: trait impl generalized or newly added (technically breaking)
54+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
4955

5056
warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::PartialOrd>`
5157
--> log-0.3.8/src/lib.rs:552:30
@@ -54,6 +60,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::cmp::Par
5460
| ^^^^^^^^^^
5561
|
5662
= note: trait impl generalized or newly added (technically breaking)
63+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
5764

5865
warning: technically breaking changes in `<new::LogMetadata<'a> as std::hash::Hash>`
5966
--> log-0.3.8/src/lib.rs:552:42
@@ -62,6 +69,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::hash::Ha
6269
| ^^^^
6370
|
6471
= note: trait impl generalized or newly added (technically breaking)
72+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
6573

6674
warning: technically breaking changes in `<new::LogMetadata<'a> as std::fmt::Debug>`
6775
--> log-0.3.8/src/lib.rs:552:48
@@ -70,6 +78,7 @@ warning: technically breaking changes in `<new::LogMetadata<'a> as std::fmt::Deb
7078
| ^^^^^
7179
|
7280
= note: trait impl generalized or newly added (technically breaking)
81+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
7382

7483
warning: technically breaking changes in `<new::LogLocation as std::cmp::Eq>`
7584
--> log-0.3.8/src/lib.rs:604:30
@@ -78,6 +87,7 @@ warning: technically breaking changes in `<new::LogLocation as std::cmp::Eq>`
7887
| ^^
7988
|
8089
= note: trait impl generalized or newly added (technically breaking)
90+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
8191

8292
warning: technically breaking changes in `<new::LogLocation as std::cmp::PartialEq>`
8393
--> log-0.3.8/src/lib.rs:604:34
@@ -86,6 +96,7 @@ warning: technically breaking changes in `<new::LogLocation as std::cmp::Partial
8696
| ^^^^^^^^^
8797
|
8898
= note: trait impl generalized or newly added (technically breaking)
99+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
89100

90101
warning: technically breaking changes in `<new::LogLocation as std::cmp::Ord>`
91102
--> log-0.3.8/src/lib.rs:604:45
@@ -94,6 +105,7 @@ warning: technically breaking changes in `<new::LogLocation as std::cmp::Ord>`
94105
| ^^^
95106
|
96107
= note: trait impl generalized or newly added (technically breaking)
108+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
97109

98110
warning: technically breaking changes in `<new::LogLocation as std::cmp::PartialOrd>`
99111
--> log-0.3.8/src/lib.rs:604:50
@@ -102,6 +114,7 @@ warning: technically breaking changes in `<new::LogLocation as std::cmp::Partial
102114
| ^^^^^^^^^^
103115
|
104116
= note: trait impl generalized or newly added (technically breaking)
117+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
105118

106119
warning: technically breaking changes in `<new::LogLocation as std::hash::Hash>`
107120
--> log-0.3.8/src/lib.rs:604:62
@@ -110,6 +123,7 @@ warning: technically breaking changes in `<new::LogLocation as std::hash::Hash>`
110123
| ^^^^
111124
|
112125
= note: trait impl generalized or newly added (technically breaking)
126+
= note: this warning originates in a derive macro (in Nightly builds, run with -Z macro-backtrace for more info)
113127

114128
warning: path changes to `set_logger_raw`
115129
--> log-0.3.8/src/lib.rs:713:1

0 commit comments

Comments
 (0)