5134a04eaa
Some minor (English only) heroics are performed to print error messages like "5th rule of macro `m` is never used". The form "rule #5 of macro `m` is never used" is just as good and much simpler to implement.
27 lines
600 B
Plaintext
27 lines
600 B
Plaintext
error: rule #4 of macro `num` is never used
|
|
--> $DIR/unused-macro-rules-decl.rs:11:5
|
|
|
|
|
LL | (four) => { 4 },
|
|
| ^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-macro-rules-decl.rs:2:9
|
|
|
|
|
LL | #![deny(unused_macro_rules)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: rule #2 of macro `num` is never used
|
|
--> $DIR/unused-macro-rules-decl.rs:9:5
|
|
|
|
|
LL | (two) => { 2 },
|
|
| ^^^^^
|
|
|
|
error: rule #3 of macro `num_rec` is never used
|
|
--> $DIR/unused-macro-rules-decl.rs:31:5
|
|
|
|
|
LL | (three) => {
|
|
| ^^^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|