]> git.proxmox.com Git - rustc.git/blame - src/test/ui/lint/semicolon-in-expressions-from-macros/semicolon-in-expressions-from-macros.stderr
New upstream version 1.56.0~beta.4+dfsg1
[rustc.git] / src / test / ui / lint / semicolon-in-expressions-from-macros / semicolon-in-expressions-from-macros.stderr
CommitLineData
5869c6ff 1warning: trailing semicolon in macro used in expression position
136023e0 2 --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
5869c6ff
XL
3 |
4LL | true;
5 | ^
6...
136023e0
XL
7LL | foo!(warn_in_block)
8 | ------------------- in this macro invocation
5869c6ff
XL
9 |
10note: the lint level is defined here
136023e0 11 --> $DIR/semicolon-in-expressions-from-macros.rs:4:9
5869c6ff
XL
12 |
13LL | #![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
21warning: trailing semicolon in macro used in expression position
136023e0 22 --> $DIR/semicolon-in-expressions-from-macros.rs:9:13
5869c6ff
XL
23 |
24LL | true;
25 | ^
26...
136023e0
XL
27LL | 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
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
5869c6ff 48