mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 19:53:46 +00:00
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
671 B
Plaintext
27 lines
671 B
Plaintext
error: rule #5 of macro `num` is never used
|
|
--> $DIR/unused-macro-rules-compile-error.rs:12:5
|
|
|
|
|
LL | (four) => { 4 };
|
|
| ^^^^^^
|
|
|
|
|
note: the lint level is defined here
|
|
--> $DIR/unused-macro-rules-compile-error.rs:1:9
|
|
|
|
|
LL | #![deny(unused_macro_rules)]
|
|
| ^^^^^^^^^^^^^^^^^^
|
|
|
|
error: rule #3 of macro `num2` is never used
|
|
--> $DIR/unused-macro-rules-compile-error.rs:22:5
|
|
|
|
|
LL | (two_) => { compile_error! };
|
|
| ^^^^^^
|
|
|
|
error: rule #2 of macro `num2` is never used
|
|
--> $DIR/unused-macro-rules-compile-error.rs:20:5
|
|
|
|
|
LL | (two) => { fn compile_error() {} };
|
|
| ^^^^^
|
|
|
|
error: aborting due to 3 previous errors
|
|
|