Skip to content

Commit a6ababb

Browse files
authored
Rollup merge of #83041 - guswynn:stable_debug_struct, r=m-ou-se
stabilize debug_non_exhaustive tracking issue: #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
2 parents 07e0e2e + b1fac3a commit a6ababb

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

library/core/src/fmt/builders.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
165165
/// # Examples
166166
///
167167
/// ```
168-
/// # #![feature(debug_non_exhaustive)]
169168
/// use std::fmt;
170169
///
171170
/// struct Bar {
@@ -186,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
186185
/// "Bar { bar: 10, .. }",
187186
/// );
188187
/// ```
189-
#[unstable(feature = "debug_non_exhaustive", issue = "67364")]
188+
#[stable(feature = "debug_non_exhaustive", since = "1.53.0")]
190189
pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
191190
self.result = self.result.and_then(|_| {
192191
// Draw non-exhaustive dots (`..`), and open brace if necessary (no fields).

library/core/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
#![feature(core_intrinsics)]
2121
#![feature(core_private_bignum)]
2222
#![feature(core_private_diy_float)]
23-
#![feature(debug_non_exhaustive)]
2423
#![feature(dec2flt)]
2524
#![feature(div_duration)]
2625
#![feature(duration_consts_2)]

0 commit comments

Comments
 (0)