Skip to content

Commit

Permalink
Add known-tool-in-submodule test
Browse files Browse the repository at this point in the history
The test currently fails. The next commit fixes it.
  • Loading branch information
smoelius committed Sep 24, 2021
1 parent bf64232 commit 551220c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/test/ui/lint/known-tool-in-submodule/root.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// check-pass

#![feature(register_tool)]
#![register_tool(tool)]

mod submodule;

fn main() {
submodule::foo();
}
4 changes: 4 additions & 0 deletions src/test/ui/lint/known-tool-in-submodule/submodule.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
// ignore-test: not a test

#[allow(tool::lint)]
pub fn foo() {}

0 comments on commit 551220c

Please sign in to comment.