about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGus Wynn <guswynn@gmail.com>2021-03-11 15:17:44 -0800
committerGus Wynn <guswynn@gmail.com>2021-03-11 15:17:44 -0800
commit73ddfa0eeacb0325acfb1fb02ec730493c8ceda2 (patch)
tree39d7b89aedc88f58638fb3ed72adf38b3fa86540
parent4a8b6f708c38342a6c74aa00cf4323774c7381a6 (diff)
downloadrust-73ddfa0eeacb0325acfb1fb02ec730493c8ceda2.tar.gz
rust-73ddfa0eeacb0325acfb1fb02ec730493c8ceda2.zip
stabilize debug_non_exhaustive
-rw-r--r--library/core/src/fmt/builders.rs3
-rw-r--r--library/core/tests/lib.rs1
2 files changed, 1 insertions, 3 deletions
diff --git a/library/core/src/fmt/builders.rs b/library/core/src/fmt/builders.rs
index d95d43f0854..1321bb90187 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 b7fcc740363..b26addb4bf8 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)]