Skip to content

macro_rules blocks shouldn't allow fragment specifiers #2211

@sugar700

Description

@sugar700

I often make this mistake, and it's tricky to debug while being VERY unlikely to be what is wanted.

macro_rules! x { ($a:expr) => {$a:expr} }

This should be:

macro_rules! x { ($a:expr) => {$a} }

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-lintArea: New lintsC-an-interesting-projectCategory: Interesting projects, that usually are more involved design/code wise.L-correctnessLint: Belongs in the correctness lint groupT-ASTType: Requires working with the AST

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions