mirror of
https://github.com/allankoechke/rust.git
synced 2026-11-30 11:05:36 +00:00
Stabilize debug_closure_helpers
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
// tidy-alphabetical-start
|
||||
#![allow(internal_features)]
|
||||
#![allow(rustc::direct_use_of_rustc_type_ir)]
|
||||
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
|
||||
#![cfg_attr(doc, feature(intra_doc_pointers))]
|
||||
#![feature(allocator_ext)]
|
||||
#![feature(associated_type_defaults)]
|
||||
@@ -34,7 +35,6 @@
|
||||
#![feature(const_default)]
|
||||
#![feature(const_trait_impl)]
|
||||
#![feature(core_intrinsics)]
|
||||
#![feature(debug_closure_helpers)]
|
||||
#![feature(decl_macro)]
|
||||
#![feature(default_field_values)]
|
||||
#![feature(deref_patterns)]
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
//! The main parser interface.
|
||||
|
||||
// tidy-alphabetical-start
|
||||
#![cfg_attr(bootstrap, feature(debug_closure_helpers))]
|
||||
#![cfg_attr(test, feature(iter_order_by))]
|
||||
#![feature(debug_closure_helpers)]
|
||||
#![feature(default_field_values)]
|
||||
#![feature(deref_patterns)]
|
||||
#![feature(iter_intersperse)]
|
||||
|
||||
@@ -187,8 +187,6 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Bar {
|
||||
@@ -211,7 +209,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
|
||||
/// r#"Bar { bar: 0x0000000a, another: "Hello World" }"#,
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn field_with(
|
||||
&mut self,
|
||||
name: &str,
|
||||
@@ -409,8 +407,6 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Foo(i32, String);
|
||||
@@ -430,7 +426,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
|
||||
/// r#"Foo(0x0000000a, "Hello World")"#,
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn field_with(
|
||||
&mut self,
|
||||
value_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
|
||||
@@ -637,8 +633,6 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Foo(Vec<i32>, Vec<u32>);
|
||||
@@ -658,7 +652,7 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
|
||||
/// "{[10, 11], {12, 13}}",
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn entry_with(
|
||||
&mut self,
|
||||
entry_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
|
||||
@@ -854,8 +848,6 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Foo(Vec<i32>, Vec<u32>);
|
||||
@@ -875,7 +867,7 @@ impl<'a, 'b: 'a> DebugList<'a, 'b> {
|
||||
/// "[[10, 11], {12, 13}]",
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn entry_with(
|
||||
&mut self,
|
||||
entry_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
|
||||
@@ -1144,8 +1136,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Foo(Vec<(String, i32)>);
|
||||
@@ -1168,7 +1158,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
|
||||
/// r#"{entry A: 0x0000000a, entry B: 0x0000000b}"#,
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn key_with(
|
||||
&mut self,
|
||||
key_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
|
||||
@@ -1244,8 +1234,6 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
/// #![feature(debug_closure_helpers)]
|
||||
///
|
||||
/// use std::fmt;
|
||||
///
|
||||
/// struct Foo(Vec<(String, i32)>);
|
||||
@@ -1268,7 +1256,7 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
|
||||
/// r#"{entry A: 0x0000000a, entry B: 0x0000000b}"#,
|
||||
/// );
|
||||
/// ```
|
||||
#[unstable(feature = "debug_closure_helpers", issue = "117729")]
|
||||
#[stable(feature = "debug_closure_helpers", since = "CURRENT_RUSTC_VERSION")]
|
||||
pub fn value_with(
|
||||
&mut self,
|
||||
value_fmt: impl FnOnce(&mut fmt::Formatter<'_>) -> fmt::Result,
|
||||
|
||||
@@ -47,7 +47,6 @@
|
||||
#![feature(core_io_borrowed_buf)]
|
||||
#![feature(core_private_bignum)]
|
||||
#![feature(core_private_diy_float)]
|
||||
#![feature(debug_closure_helpers)]
|
||||
#![feature(dec2flt)]
|
||||
#![feature(duration_constants)]
|
||||
#![feature(duration_constructors)]
|
||||
|
||||
Reference in New Issue
Block a user