We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 709ddba commit b124892Copy full SHA for b124892
src/test/ui-fulldeps/lint-pass-macros.rs
@@ -0,0 +1,26 @@
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() {}
0 commit comments