Skip to content

Commit f938d3b

Browse files
committed
Stabilize exact_size_is_empty feature
1 parent 9578272 commit f938d3b

File tree

5 files changed

+1
-7
lines changed

5 files changed

+1
-7
lines changed

src/liballoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@
8989
#![feature(core_intrinsics)]
9090
#![feature(container_error_extra)]
9191
#![feature(dropck_eyepatch)]
92-
#![feature(exact_size_is_empty)]
9392
#![feature(fmt_internals)]
9493
#![feature(fn_traits)]
9594
#![feature(fundamental)]

src/liballoc/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
#![feature(allocator_api)]
22
#![feature(box_syntax)]
33
#![feature(drain_filter)]
4-
#![feature(exact_size_is_empty)]
54
#![feature(new_uninit)]
65
#![feature(option_flattening)]
76
#![feature(pattern)]

src/libcore/iter/traits/exact_size.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,6 @@ pub trait ExactSizeIterator: Iterator {
114114
/// Basic usage:
115115
///
116116
/// ```
117-
/// #![feature(exact_size_is_empty)]
118-
///
119117
/// let mut one_element = std::iter::once(0);
120118
/// assert!(!one_element.is_empty());
121119
///
@@ -125,7 +123,7 @@ pub trait ExactSizeIterator: Iterator {
125123
/// assert_eq!(one_element.next(), None);
126124
/// ```
127125
#[inline]
128-
#[unstable(feature = "exact_size_is_empty", issue = "35428")]
126+
#[stable(feature = "exact_size_is_empty", since = "1.40.0")]
129127
fn is_empty(&self) -> bool {
130128
self.len() == 0
131129
}

src/libcore/tests/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#![feature(core_private_diy_float)]
77
#![feature(debug_map_key_value)]
88
#![feature(dec2flt)]
9-
#![feature(exact_size_is_empty)]
109
#![feature(fixed_size_array)]
1110
#![feature(flt2dec)]
1211
#![feature(fmt_internals)]

src/libstd/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,6 @@
258258
#![feature(doc_spotlight)]
259259
#![feature(dropck_eyepatch)]
260260
#![feature(duration_constants)]
261-
#![feature(exact_size_is_empty)]
262261
#![feature(exhaustive_patterns)]
263262
#![feature(external_doc)]
264263
#![feature(fn_traits)]

0 commit comments

Comments
 (0)