Propagate cfg bootstrap

This commit is contained in:
Mark Rousskov
2019-12-18 12:00:59 -05:00
parent 6a400ee149
commit 82184440ec
37 changed files with 169 additions and 541 deletions

View File

@@ -281,7 +281,7 @@ impl<T> Default for Empty<T> {
/// assert_eq!(None, nope.next());
/// ```
#[stable(feature = "iter_empty", since = "1.2.0")]
#[cfg_attr(not(bootstrap), rustc_const_stable(feature = "const_iter_empty", since = "1.32.0"))]
#[rustc_const_stable(feature = "const_iter_empty", since = "1.32.0")]
pub const fn empty<T>() -> Empty<T> {
Empty(marker::PhantomData)
}