diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs index d95d43f0854489a5b9b75ec53daa1b216b672600..475ebcf07d5edbadb275f0a271a2f985eb8c9dbf 100644 --- a/library/core/src/fmt/builders.rs +++ b/library/core/src/fmt/builders.rs @@ -165,7 +165,6 @@ pub fn field(&mut self, name: &str, value: &dyn fmt::Debug) -> &mut Self { /// # Examples /// /// ``` - /// # #![feature(debug_non_exhaustive)] /// use std::fmt; /// /// struct Bar { @@ -186,7 +185,7 @@ pub fn field(&mut self, name: &str, value: &dyn fmt::Debug) -> &mut Self { /// "Bar { bar: 10, .. }", /// ); /// ``` - #[unstable(feature = "debug_non_exhaustive", issue = "67364")] + #[stable(feature = "debug_non_exhaustive", since = "1.53.0")] pub fn finish_non_exhaustive(&mut self) -> fmt::Result { self.result = self.result.and_then(|_| { // Draw non-exhaustive dots (`..`), and open brace if necessary (no fields). diff --git a/library/core/tests/lib.rs b/library/core/tests/lib.rs index b7fcc740363811be50261b16948b3488328c771f..b26addb4bf8240157c8a0ad1ac85934fa45c9ace 100644 --- a/library/core/tests/lib.rs +++ b/library/core/tests/lib.rs @@ -20,7 +20,6 @@ #![feature(core_intrinsics)] #![feature(core_private_bignum)] #![feature(core_private_diy_float)] -#![feature(debug_non_exhaustive)] #![feature(dec2flt)] #![feature(div_duration)] #![feature(duration_consts_2)]