Skip to content

Commit 551220c

Browse files
committed
Add known-tool-in-submodule test
The test currently fails. The next commit fixes it.
1 parent bf64232 commit 551220c

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

Diff for: src/test/ui/lint/known-tool-in-submodule/root.rs

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// check-pass
2+
3+
#![feature(register_tool)]
4+
#![register_tool(tool)]
5+
6+
mod submodule;
7+
8+
fn main() {
9+
submodule::foo();
10+
}
+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// ignore-test: not a test
2+
3+
#[allow(tool::lint)]
4+
pub fn foo() {}

0 commit comments

Comments
 (0)