From 2c07a621ef80e059d788f9846c8bdfd2e44b5c58 Mon Sep 17 00:00:00 2001 From: Ashley Mannix Date: Tue, 14 Jan 2020 14:43:05 +1000 Subject: stabilize the debug_map_key_value feature --- src/libcore/fmt/builders.rs | 6 ++---- src/libcore/tests/lib.rs | 1 - 2 files changed, 2 insertions(+), 5 deletions(-) (limited to 'src/libcore') diff --git a/src/libcore/fmt/builders.rs b/src/libcore/fmt/builders.rs index 8ba0e422e8f..63866a5d110 100644 --- a/src/libcore/fmt/builders.rs +++ b/src/libcore/fmt/builders.rs @@ -778,7 +778,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> { /// # Examples /// /// ``` - /// # #![feature(debug_map_key_value)] /// use std::fmt; /// /// struct Foo(Vec<(String, i32)>); @@ -796,7 +795,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> { /// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}", /// ); /// ``` - #[unstable(feature = "debug_map_key_value", reason = "recently added", issue = "62482")] + #[stable(feature = "debug_map_key_value", since = "1.42.0")] pub fn key(&mut self, key: &dyn fmt::Debug) -> &mut Self { self.result = self.result.and_then(|_| { assert!( @@ -843,7 +842,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> { /// # Examples /// /// ``` - /// # #![feature(debug_map_key_value)] /// use std::fmt; /// /// struct Foo(Vec<(String, i32)>); @@ -861,7 +859,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> { /// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}", /// ); /// ``` - #[unstable(feature = "debug_map_key_value", reason = "recently added", issue = "62482")] + #[stable(feature = "debug_map_key_value", since = "1.42.0")] pub fn value(&mut self, value: &dyn fmt::Debug) -> &mut Self { self.result = self.result.and_then(|_| { assert!(self.has_key, "attempted to format a map value before its key"); diff --git a/src/libcore/tests/lib.rs b/src/libcore/tests/lib.rs index 21e279066e7..197536158be 100644 --- a/src/libcore/tests/lib.rs +++ b/src/libcore/tests/lib.rs @@ -4,7 +4,6 @@ #![feature(cell_update)] #![feature(core_private_bignum)] #![feature(core_private_diy_float)] -#![feature(debug_map_key_value)] #![feature(debug_non_exhaustive)] #![feature(dec2flt)] #![feature(exact_size_is_empty)] -- cgit 1.4.1-3-g733a5