diff options
| author | Yuki Okushi <huyuumi.dev@gmail.com> | 2021-03-25 09:07:24 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-25 09:07:24 +0900 |
| commit | a6ababb162348e290be52883f43e48bfba5ef9e4 (patch) | |
| tree | e2b77709f85e4544f2d127d724cc8e5c6e3b8e50 | |
| parent | 07e0e2ec268c140e607e1ac7f49f145612d0f597 (diff) | |
| parent | b1fac3a5e17d8efc7aa2f5ca48f7c0e9c63e5505 (diff) | |
| download | rust-a6ababb162348e290be52883f43e48bfba5ef9e4.tar.gz rust-a6ababb162348e290be52883f43e48bfba5ef9e4.zip | |
Rollup merge of #83041 - guswynn:stable_debug_struct, r=m-ou-se
stabilize debug_non_exhaustive tracking issue: https://github.com/rust-lang/rust/issues/67364 but it is still an open question whether the other `Debug*` struct's should have a similar method. I would guess that would best be put underneath a new feature gate, as this one seems uncontroversial enough to stabilize as is
| -rw-r--r-- | library/core/src/fmt/builders.rs | 3 | ||||
| -rw-r--r-- | library/core/tests/lib.rs | 1 |
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..475ebcf07d5 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.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 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)] |
