Skip to content

Commit 52d9682

Browse files
committed
Stabilize ordering_chaining, closes #37053
1 parent 86b48b2 commit 52d9682

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/libcore/cmp.rs

+2-6
Original file line numberDiff line numberDiff line change
@@ -255,8 +255,6 @@ impl Ordering {
255255
/// # Examples
256256
///
257257
/// ```
258-
/// #![feature(ordering_chaining)]
259-
///
260258
/// use std::cmp::Ordering;
261259
///
262260
/// let result = Ordering::Equal.then(Ordering::Less);
@@ -277,7 +275,7 @@ impl Ordering {
277275
///
278276
/// assert_eq!(result, Ordering::Less);
279277
/// ```
280-
#[unstable(feature = "ordering_chaining", issue = "37053")]
278+
#[stable(feature = "ordering_chaining", since = "1.17.0")]
281279
pub fn then(self, other: Ordering) -> Ordering {
282280
match self {
283281
Equal => other,
@@ -293,8 +291,6 @@ impl Ordering {
293291
/// # Examples
294292
///
295293
/// ```
296-
/// #![feature(ordering_chaining)]
297-
///
298294
/// use std::cmp::Ordering;
299295
///
300296
/// let result = Ordering::Equal.then_with(|| Ordering::Less);
@@ -315,7 +311,7 @@ impl Ordering {
315311
///
316312
/// assert_eq!(result, Ordering::Less);
317313
/// ```
318-
#[unstable(feature = "ordering_chaining", issue = "37053")]
314+
#[stable(feature = "ordering_chaining", since = "1.17.0")]
319315
pub fn then_with<F: FnOnce() -> Ordering>(self, f: F) -> Ordering {
320316
match self {
321317
Equal => f(),

0 commit comments

Comments
 (0)