Skip to content

Shadowing macro definitions should warn at least #20192

@lifthrasiir

Description

@lifthrasiir
#![feature(macro_rules)]
macro_rules! a((foo) => ("foo"));
macro_rules! a((bar) => ("bar")); // does not warn

Inspired by #20191. Not sure how to disable the warning when required (e.g. for rustdoc) though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-diagnosticsArea: Messages for errors, warnings, and lintsA-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions