failure icon indicating copy to clipboard operation
failure copied to clipboard

"trailing semicolons in expression macro bodies" breaks with bail

Open palfrey opened this issue 5 years ago • 0 comments

https://github.com/rust-lang/rust/issues/79813

error: trailing semicolon in macro used in expression position
Error:   --> core/src/nodes.rs:74:21
   |
74 |         Err(err) => bail!(err),
   |                     ^^^^^^^^^^
   |
note: the lint level is defined here
  --> core/src/lib.rs:9:5
   |
9  |     future_incompatible
   |     ^^^^^^^^^^^^^^^^^^^
   = note: `#[deny(semicolon_in_expressions_from_macros)]` implied by `#[deny(future_incompatible)]`
   = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
   = note: for more information, see issue #79813 <https://github.com/rust-lang/rust/issues/79813>
   = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info)

palfrey avatar Feb 28 '21 14:02 palfrey