fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
8.6 KiB185 linesraw
1warning: trailing semicolon in macro used in expression position
2  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
3   |
4LL |         true;
5   |             ^
6...
7LL |         foo!(warn_in_block)
8   |         ------------------- in this macro invocation
9   |
10   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
11   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
12   = note: macro invocations at the end of a block are treated as expressions
13   = note: to ignore the value produced by the macro, add a semicolon after the invocation of `foo`
14note: the lint level is defined here
15  --> $DIR/semicolon-in-expressions-from-macros.rs:4:9
16   |
17LL | #![warn(semicolon_in_expressions_from_macros)]
18   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
19   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
20
21warning: trailing semicolon in macro used in expression position
22  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
23   |
24LL |         true;
25   |             ^
26...
27LL |     let _ = foo!(warn_in_expr);
28   |             ------------------ in this macro invocation
29   |
30   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
31   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
32   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
33
34warning: trailing semicolon in macro used in expression position
35  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
36   |
37LL |         true;
38   |             ^
39...
40LL |     let _ = #[allow(semicolon_in_expressions_from_macros)] foo!(allow_does_not_work);
41   |                                                            ------------------------- in this macro invocation
42   |
43   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
44   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
45   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
46
47warning: 3 warnings emitted
48
49Future incompatibility report: Future breakage diagnostic:
50warning: trailing semicolon in macro used in expression position
51  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
52   |
53LL |         true;
54   |             ^
55...
56LL |         foo!(first)
57   |         ----------- in this macro invocation
58   |
59   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
60   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
61   = note: macro invocations at the end of a block are treated as expressions
62   = note: to ignore the value produced by the macro, add a semicolon after the invocation of `foo`
63note: the lint level is defined here
64  --> $DIR/semicolon-in-expressions-from-macros.rs:24:13
65   |
66LL |     #[allow(semicolon_in_expressions_from_macros)]
67   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
68   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
69
70Future breakage diagnostic:
71warning: trailing semicolon in macro used in expression position
72  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
73   |
74LL |         true;
75   |             ^
76...
77LL |     let _ = foo!(second);
78   |             ------------ in this macro invocation
79   |
80   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
81   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
82note: the lint level is defined here
83  --> $DIR/semicolon-in-expressions-from-macros.rs:29:13
84   |
85LL |     #[allow(semicolon_in_expressions_from_macros)]
86   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
87   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
88
89Future breakage diagnostic:
90warning: trailing semicolon in macro used in expression position
91  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
92   |
93LL |         true;
94   |             ^
95...
96LL |         let _ = foo!(third);
97   |                 ----------- in this macro invocation
98   |
99   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
100   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
101note: the lint level is defined here
102  --> $DIR/semicolon-in-expressions-from-macros.rs:32:13
103   |
104LL |     #[allow(semicolon_in_expressions_from_macros)]
105   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
106   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
107
108Future breakage diagnostic:
109warning: trailing semicolon in macro used in expression position
110  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
111   |
112LL |         true;
113   |             ^
114...
115LL |         let _ = foo!(fourth);
116   |                 ------------ in this macro invocation
117   |
118   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
119   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
120note: the lint level is defined here
121  --> $DIR/semicolon-in-expressions-from-macros.rs:37:13
122   |
123LL |     #[allow(semicolon_in_expressions_from_macros)]
124   |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
126
127Future breakage diagnostic:
128warning: trailing semicolon in macro used in expression position
129  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
130   |
131LL |         true;
132   |             ^
133...
134LL |         foo!(warn_in_block)
135   |         ------------------- in this macro invocation
136   |
137   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
138   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
139   = note: macro invocations at the end of a block are treated as expressions
140   = note: to ignore the value produced by the macro, add a semicolon after the invocation of `foo`
141note: the lint level is defined here
142  --> $DIR/semicolon-in-expressions-from-macros.rs:4:9
143   |
144LL | #![warn(semicolon_in_expressions_from_macros)]
145   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
146   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
147
148Future breakage diagnostic:
149warning: trailing semicolon in macro used in expression position
150  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
151   |
152LL |         true;
153   |             ^
154...
155LL |     let _ = foo!(warn_in_expr);
156   |             ------------------ in this macro invocation
157   |
158   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
159   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
160note: the lint level is defined here
161  --> $DIR/semicolon-in-expressions-from-macros.rs:4:9
162   |
163LL | #![warn(semicolon_in_expressions_from_macros)]
164   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
165   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
166
167Future breakage diagnostic:
168warning: trailing semicolon in macro used in expression position
169  --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
170   |
171LL |         true;
172   |             ^
173...
174LL |     let _ = #[allow(semicolon_in_expressions_from_macros)] foo!(allow_does_not_work);
175   |                                                            ------------------------- in this macro invocation
176   |
177   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
178   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
179note: the lint level is defined here
180  --> $DIR/semicolon-in-expressions-from-macros.rs:4:9
181   |
182LL | #![warn(semicolon_in_expressions_from_macros)]
183   |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184   = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info)
185