2019-05-02 16:53:12 +02:00
|
|
|
error: implementing `LintPass` by hand
|
2020-01-08 22:54:08 +01:00
|
|
|
--> $DIR/lint_pass_impl_without_macro.rs:20:6
|
2019-05-02 16:53:12 +02:00
|
|
|
|
|
|
|
|
LL | impl LintPass for Foo {
|
|
|
|
| ^^^^^^^^
|
|
|
|
|
|
2022-09-22 18:25:05 +04:00
|
|
|
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
|
2020-01-22 23:57:38 +00:00
|
|
|
note: the lint level is defined here
|
2019-05-02 16:53:12 +02:00
|
|
|
--> $DIR/lint_pass_impl_without_macro.rs:4:9
|
|
|
|
|
|
2019-06-24 10:43:51 +02:00
|
|
|
LL | #![deny(rustc::lint_pass_impl_without_macro)]
|
|
|
|
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
2019-05-02 16:53:12 +02:00
|
|
|
|
2019-06-13 15:49:33 +02:00
|
|
|
error: implementing `LintPass` by hand
|
2020-01-08 22:54:08 +01:00
|
|
|
--> $DIR/lint_pass_impl_without_macro.rs:30:14
|
2019-06-13 15:49:33 +02:00
|
|
|
|
|
|
|
|
LL | impl LintPass for Custom {
|
|
|
|
| ^^^^^^^^
|
|
|
|
...
|
|
|
|
LL | custom_lint_pass_macro!();
|
2021-10-14 13:28:28 -05:00
|
|
|
| ------------------------- in this macro invocation
|
2019-06-13 15:49:33 +02:00
|
|
|
|
|
|
|
|
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
|
2021-02-13 14:52:25 -05:00
|
|
|
= note: this error originates in the macro `custom_lint_pass_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
|
2019-06-13 15:49:33 +02:00
|
|
|
|
|
|
|
error: aborting due to 2 previous errors
|
2019-10-07 18:10:41 -04:00
|
|
|
|