about summary refs log tree commit diff
path: root/src/libcore/fmt
diff options
context:
space:
mode:
authorAshley Mannix <ashleymannix@live.com.au>2020-01-14 14:43:05 +1000
committerAshley Mannix <ashleymannix@live.com.au>2020-01-28 11:15:22 +1000
commit2c07a621ef80e059d788f9846c8bdfd2e44b5c58 (patch)
treeb6249ee3ece23f4e7d6ef04fd6ee231d5b45dada /src/libcore/fmt
parent8a79d08fa57e1c257d647c9848e35defcb379c07 (diff)
downloadrust-2c07a621ef80e059d788f9846c8bdfd2e44b5c58.tar.gz
rust-2c07a621ef80e059d788f9846c8bdfd2e44b5c58.zip
stabilize the debug_map_key_value feature
Diffstat (limited to 'src/libcore/fmt')
-rw-r--r--src/libcore/fmt/builders.rs6
1 files changed, 2 insertions, 4 deletions
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");