]> git.proxmox.com Git - rustc.git/blob - tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr
New upstream version 1.68.2+dfsg1
[rustc.git] / tests / ui-fulldeps / internal-lints / lint_pass_impl_without_macro.stderr
1 error: implementing `LintPass` by hand
2 --> $DIR/lint_pass_impl_without_macro.rs:20:6
3 |
4 LL | impl LintPass for Foo {
5 | ^^^^^^^^
6 |
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
10 |
11 LL | #![deny(rustc::lint_pass_impl_without_macro)]
12 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
14 error: implementing `LintPass` by hand
15 --> $DIR/lint_pass_impl_without_macro.rs:30: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 = note: this error originates in the macro `custom_lint_pass_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
25
26 error: aborting due to 2 previous errors
27