about summary refs log tree commit diff
path: root/src/etc
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-06-02 20:45:14 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-06-02 20:45:14 +0800
commit8788b6a4adafe2494c6a791de05f7b474b678bcb (patch)
tree1e9afd42828df6c4eae14141b716e337df459b11 /src/etc
parent52882f6522ae9f34f1d574b2efabc4b18e691ae0 (diff)
downloadrust-8788b6a4adafe2494c6a791de05f7b474b678bcb.tar.gz
rust-8788b6a4adafe2494c6a791de05f7b474b678bcb.zip
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` were only present in
in-tree std and not yet beta std, so apply `cfg(not(bootstrap))` gating
to unbrick `./x check --stage=0`.
Diffstat (limited to 'src/etc')
-rw-r--r--src/etc/test-float-parse/src/lib.rs1
-rw-r--r--src/etc/test-float-parse/src/traits.rs1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/etc/test-float-parse/src/lib.rs b/src/etc/test-float-parse/src/lib.rs
index 0bd4878f9a6..f590149523b 100644
--- a/src/etc/test-float-parse/src/lib.rs
+++ b/src/etc/test-float-parse/src/lib.rs
@@ -119,6 +119,7 @@ pub fn register_tests(cfg: &Config) -> Vec<TestInfo> {
 
     // Register normal generators for all floats.
 
+    #[cfg(not(bootstrap))]
     #[cfg(target_has_reliable_f16)]
     register_float::<f16>(&mut tests, cfg);
     register_float::<f32>(&mut tests, cfg);
diff --git a/src/etc/test-float-parse/src/traits.rs b/src/etc/test-float-parse/src/traits.rs
index 65a8721bfa5..16484f8fe2c 100644
--- a/src/etc/test-float-parse/src/traits.rs
+++ b/src/etc/test-float-parse/src/traits.rs
@@ -170,6 +170,7 @@ macro_rules! impl_float {
 
 impl_float!(f32, u32; f64, u64);
 
+#[cfg(not(bootstrap))]
 #[cfg(target_has_reliable_f16)]
 impl_float!(f16, u16);