Skip to content

Commit b1bde94

Browse files
committed
Stabilize debug_closure_helpers
1 parent e5efc33 commit b1bde94

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

compiler/rustc_middle/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
#![allow(rustc::diagnostic_outside_of_impl)]
3030
#![allow(rustc::direct_use_of_rustc_type_ir)]
3131
#![allow(rustc::untranslatable_diagnostic)]
32+
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
3233
#![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
3334
#![doc(rust_logo)]
3435
#![feature(allocator_api)]
@@ -39,7 +40,6 @@
3940
#![feature(box_patterns)]
4041
#![feature(closure_track_caller)]
4142
#![feature(core_intrinsics)]
42-
#![feature(debug_closure_helpers)]
4343
#![feature(decl_macro)]
4444
#![feature(discriminant_kind)]
4545
#![feature(extern_types)]

compiler/rustc_parse/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// tidy-alphabetical-start
44
#![allow(rustc::diagnostic_outside_of_impl)]
55
#![allow(rustc::untranslatable_diagnostic)]
6+
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
67
#![feature(assert_matches)]
78
#![feature(box_patterns)]
8-
#![feature(debug_closure_helpers)]
99
#![feature(default_field_values)]
1010
#![feature(if_let_guard)]
1111
#![feature(iter_intersperse)]

library/core/src/fmt/builders.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
137137
///
138138
/// This method is equivalent to [`DebugStruct::field`], but formats the
139139
/// value using a provided closure rather than by calling [`Debug::fmt`].
140-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
140+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
141141
pub fn field_with<F>(&mut self, name: &str, value_fmt: F) -> &mut Self
142142
where
143143
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
@@ -334,7 +334,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
334334
///
335335
/// This method is equivalent to [`DebugTuple::field`], but formats the
336336
/// value using a provided closure rather than by calling [`Debug::fmt`].
337-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
337+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
338338
pub fn field_with<F>(&mut self, value_fmt: F) -> &mut Self
339339
where
340340
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
@@ -554,7 +554,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
554554
///
555555
/// This method is equivalent to [`DebugSet::entry`], but formats the
556556
/// entry using a provided closure rather than by calling [`Debug::fmt`].
557-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
557+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
558558
pub fn entry_with<F>(&mut self, entry_fmt: F) -> &mut Self
559559
where
560560
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
@@ -746,7 +746,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
746746
///
747747
/// This method is equivalent to [`DebugList::entry`], but formats the
748748
/// entry using a provided closure rather than by calling [`Debug::fmt`].
749-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
749+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
750750
pub fn entry_with<F>(&mut self, entry_fmt: F) -> &mut Self
751751
where
752752
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
@@ -976,7 +976,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
976976
///
977977
/// This method is equivalent to [`DebugMap::key`], but formats the
978978
/// key using a provided closure rather than by calling [`Debug::fmt`].
979-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
979+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
980980
pub fn key_with<F>(&mut self, key_fmt: F) -> &mut Self
981981
where
982982
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
@@ -1052,7 +1052,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
10521052
///
10531053
/// This method is equivalent to [`DebugMap::value`], but formats the
10541054
/// value using a provided closure rather than by calling [`Debug::fmt`].
1055-
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
1055+
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
10561056
pub fn value_with<F>(&mut self, value_fmt: F) -> &mut Self
10571057
where
10581058
F: FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,

library/coretests/tests/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
#![feature(core_private_bignum)]
3838
#![feature(core_private_diy_float)]
3939
#![feature(cstr_display)]
40-
#![feature(debug_closure_helpers)]
4140
#![feature(dec2flt)]
4241
#![feature(drop_guard)]
4342
#![feature(duration_constants)]

0 commit comments

Comments
 (0)