Skip to content

Commit 2c07a62

Browse files
committed
stabilize the debug_map_key_value feature
1 parent 8a79d08 commit 2c07a62

File tree

3 files changed

+2
-14
lines changed

3 files changed

+2
-14
lines changed

src/doc/unstable-book/src/library-features/debug-map-key-value.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/libcore/fmt/builders.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
778778
/// # Examples
779779
///
780780
/// ```
781-
/// # #![feature(debug_map_key_value)]
782781
/// use std::fmt;
783782
///
784783
/// struct Foo(Vec<(String, i32)>);
@@ -796,7 +795,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
796795
/// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}",
797796
/// );
798797
/// ```
799-
#[unstable(feature = "debug_map_key_value", reason = "recently added", issue = "62482")]
798+
#[stable(feature = "debug_map_key_value", since = "1.42.0")]
800799
pub fn key(&mut self, key: &dyn fmt::Debug) -> &mut Self {
801800
self.result = self.result.and_then(|_| {
802801
assert!(
@@ -843,7 +842,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
843842
/// # Examples
844843
///
845844
/// ```
846-
/// # #![feature(debug_map_key_value)]
847845
/// use std::fmt;
848846
///
849847
/// struct Foo(Vec<(String, i32)>);
@@ -861,7 +859,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
861859
/// "{\"whole\": [(\"A\", 10), (\"B\", 11)]}",
862860
/// );
863861
/// ```
864-
#[unstable(feature = "debug_map_key_value", reason = "recently added", issue = "62482")]
862+
#[stable(feature = "debug_map_key_value", since = "1.42.0")]
865863
pub fn value(&mut self, value: &dyn fmt::Debug) -> &mut Self {
866864
self.result = self.result.and_then(|_| {
867865
assert!(self.has_key, "attempted to format a map value before its key");

src/libcore/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
#![feature(cell_update)]
55
#![feature(core_private_bignum)]
66
#![feature(core_private_diy_float)]
7-
#![feature(debug_map_key_value)]
87
#![feature(debug_non_exhaustive)]
98
#![feature(dec2flt)]
109
#![feature(exact_size_is_empty)]

0 commit comments

Comments
 (0)