1 error: implementing `LintPass` by hand
2 --> $DIR/lint_pass_impl_without_macro.rs:20:6
4 LL | impl LintPass for Foo {
7 = help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
8 note: the lint level is defined here
9 --> $DIR/lint_pass_impl_without_macro.rs:4:9
11 LL | #![deny(rustc::lint_pass_impl_without_macro)]
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
14 error: implementing `LintPass` by hand
15 --> $DIR/lint_pass_impl_without_macro.rs:30:14
17 LL | impl LintPass for Custom {
20 LL | custom_lint_pass_macro!();
21 | ------------------------- in this macro invocation
23 = help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
24 = note: this error originates in the macro `custom_lint_pass_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
26 error: aborting due to 2 previous errors