Skip to content

bug: support deny-by-default semicolon_in_expressions_from_macros lint #16

Description

@kent8192

On Rust nightly 1.99.0 (d0babd8b6 2026-07-15), invoking cfg_aliases! from a build script fails with trailing semicolon in macro used in expression position.

The recursive macro arms emit an invocation followed by ; while that invocation is used as an expression, triggering the deny-by-default semicolon_in_expressions_from_macros future-incompatible lint.

This blocks docs.rs-style nightly builds for downstream workspaces. Please adjust the macro expansion so recursive expression arms do not produce trailing statement semicolons.

Reproducer:

use cfg_aliases::cfg_aliases;

fn main() {
    cfg_aliases! {
        wasm: { all(target_family = "wasm", target_os = "unknown") },
        native: { not(all(target_family = "wasm", target_os = "unknown")) },
    }
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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