Skip to content

Commit 263def3

Browse files
Rollup merge of #153717 - ralpha:unused_macro_rules-lint-correction, r=TaKO8Ki
unused_macro_rules switched used and unused comments Incorrect swapping of "used" and "unused". The lint example: ```rust #[warn(unused_macro_rules)] macro_rules! unused_empty { (hello) => { println!("Hello, world!") }; // This rule is unused () => { println!("empty") }; // This rule is used } fn main() { unused_empty!(hello); } ``` It is clearly using the `(hello)` case. Yet it is labeled as "unused". This PR fixed that small issue and corrects the mistake.
2 parents a2a5660 + bacde4f commit 263def3

0 file changed

File tree

    0 commit comments

    Comments
     (0)