forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add test case for rust-lang#86177 and rust-lang#85718
- Loading branch information
1 parent
23f6923
commit 341d65d
Showing
3 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
src/test/run-make-fulldeps/coverage-reports/expected_show_coverage.unused_mod.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
1| |#[path = "lib/unused_mod_helper.rs"] | ||
2| |mod unused_module; | ||
3| | | ||
4| 1|fn main() { | ||
5| 1| println!("hello world!"); | ||
6| 1|} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
pub fn never_called_function() { | ||
println!("I am never called"); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#[path = "lib/unused_mod_helper.rs"] | ||
mod unused_module; | ||
|
||
fn main() { | ||
println!("hello world!"); | ||
} |