Skip to content

Commit 6eaa27f

Browse files
authored
Unrolled build for #141904
Rollup merge of #141904 - jieyouxu:test-float-parse, r=Mark-Simulacrum test-float-parse: apply `cfg(not(bootstrap))` Prior to stage 0 redesign, `test-float-parse` ran against in-tree std but now it runs against beta std. `f16::FromStr` is only present in in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating to unbrick `./x check --stage=0`. Fixes #141900. `./x check --stage=0` in CI is intended for follow-up. r? `@Mark-Simulacrum` (or bootstrap/libs) cc `@tgross35`
2 parents 449c801 + 8788b6a commit 6eaa27f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/etc/test-float-parse/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
119119

120120
// Register normal generators for all floats.
121121

122+
#[cfg(not(bootstrap))]
122123
#[cfg(target_has_reliable_f16)]
123124
register_float::<f16>(&mut tests, cfg);
124125
register_float::<f32>(&mut tests, cfg);

src/etc/test-float-parse/src/traits.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,7 @@ macro_rules! impl_float {
170170

171171
impl_float!(f32, u32; f64, u64);
172172

173+
#[cfg(not(bootstrap))]
173174
#[cfg(target_has_reliable_f16)]
174175
impl_float!(f16, u16);
175176

0 commit comments

Comments
 (0)