Skip to content

Commit 905a611

Browse files
committed
Switch to a specific feature
1 parent 4181d43 commit 905a611

File tree

2 files changed

+11
-10
lines changed

2 files changed

+11
-10
lines changed

src/libcore/fmt/builders.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub fn debug_struct_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str)
7272

7373
impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
7474
/// Adds a new field to the generated struct output.
75-
#[unstable(feature = "core", reason = "method was just created")]
75+
#[unstable(feature = "debug_builders", reason = "method was just created")]
7676
pub fn field(mut self, name: &str, value: &fmt::Debug) -> DebugStruct<'a, 'b> {
7777
self.result = self.result.and_then(|_| {
7878
let prefix = if self.has_fields {
@@ -95,7 +95,7 @@ impl<'a, 'b: 'a> DebugStruct<'a, 'b> {
9595

9696
/// Consumes the `DebugStruct`, finishing output and returning any error
9797
/// encountered.
98-
#[unstable(feature = "core", reason = "method was just created")]
98+
#[unstable(feature = "debug_builders", reason = "method was just created")]
9999
pub fn finish(mut self) -> fmt::Result {
100100
if self.has_fields {
101101
self.result = self.result.and_then(|_| {
@@ -135,7 +135,7 @@ pub fn debug_tuple_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) -> D
135135

136136
impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
137137
/// Adds a new field to the generated tuple struct output.
138-
#[unstable(feature = "core", reason = "method was just created")]
138+
#[unstable(feature = "debug_builders", reason = "method was just created")]
139139
pub fn field(mut self, value: &fmt::Debug) -> DebugTuple<'a, 'b> {
140140
self.result = self.result.and_then(|_| {
141141
let (prefix, space) = if self.has_fields {
@@ -158,7 +158,7 @@ impl<'a, 'b: 'a> DebugTuple<'a, 'b> {
158158

159159
/// Consumes the `DebugTuple`, finishing output and returning any error
160160
/// encountered.
161-
#[unstable(feature = "core", reason = "method was just created")]
161+
#[unstable(feature = "debug_builders", reason = "method was just created")]
162162
pub fn finish(mut self) -> fmt::Result {
163163
if self.has_fields {
164164
self.result = self.result.and_then(|_| {
@@ -198,7 +198,7 @@ pub fn debug_set_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) -> Deb
198198

199199
impl<'a, 'b: 'a> DebugSet<'a, 'b> {
200200
/// Adds a new entry to the set output.
201-
#[unstable(feature = "core", reason = "method was just created")]
201+
#[unstable(feature = "debug_builders", reason = "method was just created")]
202202
pub fn entry(mut self, entry: &fmt::Debug) -> DebugSet<'a, 'b> {
203203
self.result = self.result.and_then(|_| {
204204
let prefix = if self.has_fields {
@@ -221,8 +221,8 @@ impl<'a, 'b: 'a> DebugSet<'a, 'b> {
221221

222222
/// Consumes the `DebugSet`, finishing output and returning any error
223223
/// encountered.
224-
#[unstable(feature = "core", reason = "method was just created")]
225-
pub fn finish(mut self) -> fmt::Result {
224+
#[unstable(feature = "debug_builders", reason = "method was just created")]
225+
pub fn finish(self) -> fmt::Result {
226226
self.result.and_then(|_| {
227227
let end = match (self.has_fields, self.is_pretty()) {
228228
(false, _) => "}",
@@ -259,7 +259,7 @@ pub fn debug_map_new<'a, 'b>(fmt: &'a mut fmt::Formatter<'b>, name: &str) -> Deb
259259

260260
impl<'a, 'b: 'a> DebugMap<'a, 'b> {
261261
/// Adds a new entry to the map output.
262-
#[unstable(feature = "core", reason = "method was just created")]
262+
#[unstable(feature = "debug_builders", reason = "method was just created")]
263263
pub fn entry(mut self, key: &fmt::Debug, value: &fmt::Debug) -> DebugMap<'a, 'b> {
264264
self.result = self.result.and_then(|_| {
265265
let prefix = if self.has_fields {
@@ -283,8 +283,8 @@ impl<'a, 'b: 'a> DebugMap<'a, 'b> {
283283

284284
/// Consumes the `DebugMap`, finishing output and returning any error
285285
/// encountered.
286-
#[unstable(feature = "core", reason = "method was just created")]
287-
pub fn finish(mut self) -> fmt::Result {
286+
#[unstable(feature = "debug_builders", reason = "method was just created")]
287+
pub fn finish(self) -> fmt::Result {
288288
self.result.and_then(|_| {
289289
let end = match (self.has_fields, self.is_pretty()) {
290290
(false, _) => "}",

src/libcoretest/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
#![feature(hash)]
2424
#![feature(io)]
2525
#![feature(collections)]
26+
#![feature(debug_builders)]
2627
#![allow(deprecated)] // rand
2728

2829
extern crate core;

0 commit comments

Comments
 (0)