From 73ddfa0eeacb0325acfb1fb02ec730493c8ceda2 Mon Sep 17 00:00:00 2001 From: Gus Wynn Date: Thu, 11 Mar 2021 15:17:44 -0800 Subject: [PATCH 1/3] stabilize debug_non_exhaustive --- library/core/src/fmt/builders.rs | 3 +-- library/core/tests/lib.rs | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs index d95d43f085448..1321bb90187a5 100644 --- a/library/core/src/fmt/builders.rs +++ b/library/core/src/fmt/builders.rs @@ -165,7 +165,6 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> { /// # Examples /// /// ``` - /// # #![feature(debug_non_exhaustive)] /// use std::fmt; /// /// struct Bar { @@ -186,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> { /// "Bar { bar: 10, .. }", /// ); /// ``` - #[unstable(feature = "debug_non_exhaustive", issue = "67364")] + #[stable(feature = "debug_non_exhaustive", since = "1.51.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 b7fcc74036381..b26addb4bf824 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)] From b8e498162eb776bf02d98be2e23784cd7f2422be Mon Sep 17 00:00:00 2001 From: Gus Wynn Date: Fri, 12 Mar 2021 08:52:26 -0800 Subject: [PATCH 2/3] Update library/core/src/fmt/builders.rs Co-authored-by: Yuki Okushi --- library/core/src/fmt/builders.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs index 1321bb90187a5..63abf75641f39 100644 --- a/library/core/src/fmt/builders.rs +++ b/library/core/src/fmt/builders.rs @@ -185,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> { /// "Bar { bar: 10, .. }", /// ); /// ``` - #[stable(feature = "debug_non_exhaustive", since = "1.51.0")] + #[stable(feature = "debug_non_exhaustive", since = "1.52.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). From b1fac3a5e17d8efc7aa2f5ca48f7c0e9c63e5505 Mon Sep 17 00:00:00 2001 From: Mara Bos Date: Wed, 24 Mar 2021 22:54:04 +0100 Subject: [PATCH 3/3] Bump debug_non_exhaustive stabilization to 1.53. --- library/core/src/fmt/builders.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs index 63abf75641f39..475ebcf07d5ed 100644 --- a/library/core/src/fmt/builders.rs +++ b/library/core/src/fmt/builders.rs @@ -185,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> { /// "Bar { bar: 10, .. }", /// ); /// ``` - #[stable(feature = "debug_non_exhaustive", since = "1.52.0")] + #[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).