]> git.lizzy.rs Git - rust.git/blob - src/test/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr
Rollup merge of #66988 - osa1:issue66985, r=matthewjasper
[rust.git] / src / test / ui-fulldeps / internal-lints / lint_pass_impl_without_macro.stderr
1 error: implementing `LintPass` by hand
2   --> $DIR/lint_pass_impl_without_macro.rs:21:6
3    |
4 LL | impl LintPass for Foo {
5    |      ^^^^^^^^
6    |
7 note: lint level defined here
8   --> $DIR/lint_pass_impl_without_macro.rs:4:9
9    |
10 LL | #![deny(rustc::lint_pass_impl_without_macro)]
11    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
12    = help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
13
14 error: implementing `LintPass` by hand
15   --> $DIR/lint_pass_impl_without_macro.rs:31:14
16    |
17 LL |         impl LintPass for Custom {
18    |              ^^^^^^^^
19 ...
20 LL | custom_lint_pass_macro!();
21    | -------------------------- in this macro invocation
22    |
23    = help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
24
25 error: aborting due to 2 previous errors
26