rust/tests/ui-fulldeps/internal-lints/lint_pass_impl_without_macro.stderr

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
911 B
Plaintext
Raw Normal View History

error: implementing `LintPass` by hand
2020-01-08 21:54:08 +00:00
--> $DIR/lint_pass_impl_without_macro.rs:20:6
|
LL | impl LintPass for Foo {
| ^^^^^^^^
|
= 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
--> $DIR/lint_pass_impl_without_macro.rs:4:9
|
2019-06-24 08:43:51 +00:00
LL | #![deny(rustc::lint_pass_impl_without_macro)]
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
error: implementing `LintPass` by hand
2020-01-08 21:54:08 +00:00
--> $DIR/lint_pass_impl_without_macro.rs:30:14
|
LL | impl LintPass for Custom {
| ^^^^^^^^
...
LL | custom_lint_pass_macro!();
2021-10-14 18:28:28 +00:00
| ------------------------- in this macro invocation
|
= help: try using `declare_lint_pass!` or `impl_lint_pass!` instead
= note: this error originates in the macro `custom_lint_pass_macro` (in Nightly builds, run with -Z macro-backtrace for more info)
error: aborting due to 2 previous errors