1
Fork 0

stabilize debug_non_exhaustive

This commit is contained in:
Gus Wynn 2021-03-11 15:17:44 -08:00
parent 4a8b6f708c
commit 73ddfa0eea
2 changed files with 1 additions and 3 deletions

View file

@ -165,7 +165,6 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
/// # Examples /// # Examples
/// ///
/// ``` /// ```
/// # #![feature(debug_non_exhaustive)]
/// use std::fmt; /// use std::fmt;
/// ///
/// struct Bar { /// struct Bar {
@ -186,7 +185,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
/// "Bar { bar: 10, .. }", /// "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 { pub fn finish_non_exhaustive(&mut self) -> fmt::Result {
self.result = self.result.and_then(|_| { self.result = self.result.and_then(|_| {
// Draw non-exhaustive dots (`..`), and open brace if necessary (no fields). // Draw non-exhaustive dots (`..`), and open brace if necessary (no fields).

View file

@ -20,7 +20,6 @@
#![feature(core_intrinsics)] #![feature(core_intrinsics)]
#![feature(core_private_bignum)] #![feature(core_private_bignum)]
#![feature(core_private_diy_float)] #![feature(core_private_diy_float)]
#![feature(debug_non_exhaustive)]
#![feature(dec2flt)] #![feature(dec2flt)]
#![feature(div_duration)] #![feature(div_duration)]
#![feature(duration_consts_2)] #![feature(duration_consts_2)]