From 17e098354ff2748a77b21622393a2e170b3bb087 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sun, 14 Jul 2024 19:53:40 -0400 Subject: [PATCH 1/2] Mark `f16` and `f128` as incomplete features --- compiler/rustc_feature/src/unstable.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_feature/src/unstable.rs b/compiler/rustc_feature/src/unstable.rs index 1db3774222a09..7ac154a28cd35 100644 --- a/compiler/rustc_feature/src/unstable.rs +++ b/compiler/rustc_feature/src/unstable.rs @@ -464,9 +464,9 @@ declare_features! ( /// Allows defining `extern type`s. (unstable, extern_types, "1.23.0", Some(43467)), /// Allow using 128-bit (quad precision) floating point numbers. - (unstable, f128, "1.78.0", Some(116909)), + (incomplete, f128, "1.78.0", Some(116909)), /// Allow using 16-bit (half precision) floating point numbers. - (unstable, f16, "1.78.0", Some(116909)), + (incomplete, f16, "1.78.0", Some(116909)), /// Allows the use of `#[ffi_const]` on foreign functions. (unstable, ffi_const, "1.45.0", Some(58328)), /// Allows the use of `#[ffi_pure]` on foreign functions. From 51e048b902590e3361631800a49012b20ae0f223 Mon Sep 17 00:00:00 2001 From: Trevor Gross Date: Sun, 14 Jul 2024 20:17:40 -0400 Subject: [PATCH 2/2] Allow incomplete_features on std. Need to verify this is OK (it is enabled in `core`) --- library/std/src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 66aeb35aceec0..1fc9940534041 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -249,6 +249,7 @@ #![warn(missing_debug_implementations)] #![allow(explicit_outlives_requirements)] #![allow(unused_lifetimes)] +#![allow(incomplete_features)] #![allow(internal_features)] #![deny(rustc::existing_doc_keyword)] #![deny(fuzzy_provenance_casts)]