Skip to content

Commit 7c45b9f

Browse files
committed
tests/ui: Add a directory for warnings, add a test
1 parent bf12aa4 commit 7c45b9f

File tree

2 files changed

+24
-1
lines changed

2 files changed

+24
-1
lines changed

src/tools/tidy/src/ui_tests.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const ENTRY_LIMIT: usize = 900;
1818
// FIXME: The following limits should be reduced eventually.
1919

2020
const ISSUES_ENTRY_LIMIT: usize = 1750;
21-
const ROOT_ENTRY_LIMIT: usize = 859;
21+
const ROOT_ENTRY_LIMIT: usize = 860;
2222

2323
const EXPECTED_TEST_FILE_EXTENSIONS: &[&str] = &[
2424
"rs", // test source files
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
//@ build-pass
2+
//@ compile-flags: -C codegen-units=2 --emit asm
3+
4+
fn one() -> usize {
5+
1
6+
}
7+
8+
pub mod a {
9+
pub fn two() -> usize {
10+
::one() + ::one()
11+
}
12+
}
13+
14+
pub mod b {
15+
pub fn three() -> usize {
16+
::one() + ::a::two()
17+
}
18+
}
19+
20+
fn main() {
21+
a::two();
22+
b::three();
23+
}

0 commit comments

Comments
 (0)