Skip to content
This repository has been archived by the owner on Aug 16, 2021. It is now read-only.

"trailing semicolons in expression macro bodies" breaks with bail #349

Open
palfrey opened this issue Feb 28, 2021 · 0 comments
Open

"trailing semicolons in expression macro bodies" breaks with bail #349

palfrey opened this issue Feb 28, 2021 · 0 comments

Comments

@palfrey
Copy link
Contributor

palfrey commented Feb 28, 2021

rust-lang/rust#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)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant