1 error: implementing `LintPass` by hand
2 --> $DIR/lint_pass_impl_without_macro.rs:19:6
4 LL | impl LintPass for Foo {
7 note: lint level defined here
8 --> $DIR/lint_pass_impl_without_macro.rs:4:9
10 LL | #![deny(rustc::lint_pass_impl_without_macro)]
11 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12 = help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
14 error: implementing `LintPass` by hand
15 --> $DIR/lint_pass_impl_without_macro.rs:29: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
25 error: aborting due to 2 previous errors