Skip to content

Commit f5bbe80

Browse files
authored
Rollup merge of rust-lang#144399 - bjorn3:stdlib_tests_separate_packages, r=Mark-Simulacrum
Add a ratchet for moving all standard library tests to separate packages rust-lang#136642 is the previous PR in this series. See rust-lang#135937 for the rationale of wanting to move all standard library tests to separate packages. This also fixes std_detect testing on riscv.
2 parents 372e1f8 + 18ad7a0 commit f5bbe80

File tree

7 files changed

+19
-3
lines changed

7 files changed

+19
-3
lines changed

rustc-std-workspace-alloc/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ edition = "2024"
99

1010
[lib]
1111
path = "lib.rs"
12+
test = false
13+
bench = false
14+
doc = false
1215

1316
[dependencies]
1417
alloc = { path = "../alloc" }

rustc-std-workspace-core/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ edition = "2024"
1111

1212
[lib]
1313
path = "lib.rs"
14+
test = false
15+
bench = false
16+
doc = false
1417

1518
[dependencies]
1619
core = { path = "../core", public = true }

rustc-std-workspace-std/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ edition = "2024"
99

1010
[lib]
1111
path = "lib.rs"
12+
test = false
13+
bench = false
14+
doc = false
1215

1316
[dependencies]
1417
std = { path = "../std" }

std_detect/src/detect/macros.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,14 +131,13 @@ macro_rules! features {
131131
};
132132
}
133133

134-
#[test] //tidy:skip
135134
#[deny(unexpected_cfgs)]
136135
#[deny(unfulfilled_lint_expectations)]
137-
fn unexpected_cfgs() {
136+
const _: () = {
138137
$(
139138
check_cfg_feature!($feature, $feature_lit $(, without cfg check: $feature_cfg_check)? $(: $($target_feature_lit),*)?);
140139
)*
141-
}
140+
};
142141

143142
/// Each variant denotes a position in a bitset for a particular feature.
144143
///

std_detect/src/detect/os/riscv.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,4 +135,5 @@ pub(crate) fn imply_features(mut value: cache::Initializer) -> cache::Initialize
135135
}
136136

137137
#[cfg(test)]
138+
#[path = "riscv/tests.rs"]
138139
mod tests;

sysroot/Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ version = "0.0.0"
66
edition = "2024"
77

88
[lib]
9+
test = false
10+
bench = false
911
# make sure this crate isn't included in public standard library docs
1012
doc = false
1113

windows_targets/Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ description = "A drop-in replacement for the real windows-targets crate for use
44
version = "0.0.0"
55
edition = "2024"
66

7+
[lib]
8+
test = false
9+
bench = false
10+
doc = false
11+
712
[features]
813
# Enable using raw-dylib for Windows imports.
914
# This will eventually be the default.

0 commit comments

Comments
 (0)