]> git.lizzy.rs Git - rust.git/blob - tests/ui-fulldeps/lint-pass-macros.rs
Rollup merge of #103236 - tspiteri:redoc-int-adc-sbb, r=m-ou-se
[rust.git] / tests / ui-fulldeps / lint-pass-macros.rs
1 // compile-flags: -Z unstable-options
2 // check-pass
3
4 #![feature(rustc_private)]
5
6 extern crate rustc_session;
7
8 use rustc_session::lint::{LintArray, LintPass};
9 use rustc_session::{declare_lint, declare_lint_pass, impl_lint_pass};
10
11 declare_lint! {
12     pub TEST_LINT,
13     Allow,
14     "test"
15 }
16
17 struct Foo;
18
19 struct Bar<'a>(&'a u32);
20
21 impl_lint_pass!(Foo => [TEST_LINT]);
22 impl_lint_pass!(Bar<'_> => [TEST_LINT]);
23
24 declare_lint_pass!(Baz => [TEST_LINT]);
25
26 fn main() {}