Skip to content
This repository was archived by the owner on Aug 16, 2021. It is now read-only.
This repository was 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

Description

@palfrey

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions