]>
Commit | Line | Data |
---|---|---|
5869c6ff | 1 | warning: trailing semicolon in macro used in expression position |
136023e0 | 2 | --> $DIR/semicolon-in-expressions-from-macros.rs:9:13 |
5869c6ff XL |
3 | | |
4 | LL | true; | |
5 | | ^ | |
6 | ... | |
136023e0 XL |
7 | LL | foo!(warn_in_block) |
8 | | ------------------- in this macro invocation | |
5869c6ff XL |
9 | | |
10 | note: the lint level is defined here | |
136023e0 | 11 | --> $DIR/semicolon-in-expressions-from-macros.rs:4:9 |
5869c6ff XL |
12 | | |
13 | LL | #![warn(semicolon_in_expressions_from_macros)] | |
14 | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |
15 | = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! | |
16 | = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813> | |
94222f64 XL |
17 | = note: macro invocations at the end of a block are treated as expressions |
18 | = note: to ignore the value produced by the macro, add a semicolon after the invocation of `foo` | |
17df50a5 | 19 | = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) |
5869c6ff XL |
20 | |
21 | warning: trailing semicolon in macro used in expression position | |
136023e0 | 22 | --> $DIR/semicolon-in-expressions-from-macros.rs:9:13 |
5869c6ff XL |
23 | | |
24 | LL | true; | |
25 | | ^ | |
26 | ... | |
136023e0 XL |
27 | LL | let _ = foo!(warn_in_expr); |
28 | | ------------------ in this macro invocation | |
5869c6ff XL |
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> | |
17df50a5 | 32 | = note: this warning originates in the macro `foo` (in Nightly builds, run with -Z macro-backtrace for more info) |
5869c6ff | 33 | |
136023e0 XL |
34 | warning: trailing semicolon in macro used in expression position |
35 | --> $DIR/semicolon-in-expressions-from-macros.rs:9:13 | |
36 | | | |
37 | LL | true; | |
38 | | ^ | |
39 | ... | |
40 | LL | 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 | ||
47 | warning: 3 warnings emitted | |
5869c6ff | 48 |