Switch bootstrap cfgs
This commit is contained in:
parent
ea65f50c52
commit
22c3a71de1
56 changed files with 64 additions and 147 deletions
|
@ -371,7 +371,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// assert_eq!(vec, ["a", "b", "c"]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
|
||||
pub fn into_keys(self) -> IntoKeys<K, V> {
|
||||
IntoKeys { inner: self.into_iter() }
|
||||
|
@ -449,7 +449,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// assert_eq!(vec, [1, 2, 3]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
|
||||
pub fn into_values(self) -> IntoValues<K, V> {
|
||||
IntoValues { inner: self.into_iter() }
|
||||
|
@ -473,7 +473,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// println!("key: {} val: {}", key, val);
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn iter(&self) -> Iter<'_, K, V> {
|
||||
Iter { base: self.base.iter() }
|
||||
|
@ -503,7 +503,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// println!("key: {} val: {}", key, val);
|
||||
/// }
|
||||
/// ```
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn iter_mut(&mut self) -> IterMut<'_, K, V> {
|
||||
IterMut { base: self.base.iter_mut() }
|
||||
|
@ -568,7 +568,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// assert!(a.is_empty());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "drain", since = "1.6.0")]
|
||||
pub fn drain(&mut self) -> Drain<'_, K, V> {
|
||||
Drain { base: self.base.drain() }
|
||||
|
@ -610,7 +610,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// assert_eq!(odds, vec![1, 3, 5, 7]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[unstable(feature = "hash_drain_filter", issue = "59618")]
|
||||
pub fn drain_filter<F>(&mut self, pred: F) -> DrainFilter<'_, K, V, F>
|
||||
where
|
||||
|
@ -634,7 +634,7 @@ impl<K, V, S> HashMap<K, V, S> {
|
|||
/// assert_eq!(map.len(), 4);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "retain_hash_collection", since = "1.18.0")]
|
||||
pub fn retain<F>(&mut self, f: F)
|
||||
where
|
||||
|
@ -2001,7 +2001,7 @@ impl<'a, K, V, S> IntoIterator for &'a HashMap<K, V, S> {
|
|||
type IntoIter = Iter<'a, K, V>;
|
||||
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
fn into_iter(self) -> Iter<'a, K, V> {
|
||||
self.iter()
|
||||
}
|
||||
|
@ -2013,7 +2013,7 @@ impl<'a, K, V, S> IntoIterator for &'a mut HashMap<K, V, S> {
|
|||
type IntoIter = IterMut<'a, K, V>;
|
||||
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
fn into_iter(self) -> IterMut<'a, K, V> {
|
||||
self.iter_mut()
|
||||
}
|
||||
|
@ -2043,7 +2043,7 @@ impl<K, V, S> IntoIterator for HashMap<K, V, S> {
|
|||
/// let vec: Vec<(&str, i32)> = map.into_iter().collect();
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
fn into_iter(self) -> IntoIter<K, V> {
|
||||
IntoIter { base: self.base.into_iter() }
|
||||
}
|
||||
|
|
|
@ -185,7 +185,7 @@ impl<T, S> HashSet<T, S> {
|
|||
/// }
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn iter(&self) -> Iter<'_, T> {
|
||||
Iter { base: self.base.iter() }
|
||||
|
@ -250,7 +250,7 @@ impl<T, S> HashSet<T, S> {
|
|||
/// assert!(set.is_empty());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "drain", since = "1.6.0")]
|
||||
pub fn drain(&mut self) -> Drain<'_, T> {
|
||||
Drain { base: self.base.drain() }
|
||||
|
@ -289,7 +289,7 @@ impl<T, S> HashSet<T, S> {
|
|||
/// assert_eq!(odds, vec![1, 3, 5, 7]);
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[unstable(feature = "hash_drain_filter", issue = "59618")]
|
||||
pub fn drain_filter<F>(&mut self, pred: F) -> DrainFilter<'_, T, F>
|
||||
where
|
||||
|
@ -312,7 +312,7 @@ impl<T, S> HashSet<T, S> {
|
|||
/// set.retain(|&k| k % 2 == 0);
|
||||
/// assert_eq!(set.len(), 3);
|
||||
/// ```
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "retain_hash_collection", since = "1.18.0")]
|
||||
pub fn retain<F>(&mut self, f: F)
|
||||
where
|
||||
|
@ -537,7 +537,7 @@ where
|
|||
/// assert_eq!(diff, [4].iter().collect());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn difference<'a>(&'a self, other: &'a HashSet<T, S>) -> Difference<'a, T, S> {
|
||||
Difference { iter: self.iter(), other }
|
||||
|
@ -565,7 +565,7 @@ where
|
|||
/// assert_eq!(diff1, [1, 4].iter().collect());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn symmetric_difference<'a>(
|
||||
&'a self,
|
||||
|
@ -593,7 +593,7 @@ where
|
|||
/// assert_eq!(intersection, [2, 3].iter().collect());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn intersection<'a>(&'a self, other: &'a HashSet<T, S>) -> Intersection<'a, T, S> {
|
||||
if self.len() <= other.len() {
|
||||
|
@ -622,7 +622,7 @@ where
|
|||
/// assert_eq!(union, [1, 2, 3, 4].iter().collect());
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn union<'a>(&'a self, other: &'a HashSet<T, S>) -> Union<'a, T, S> {
|
||||
if self.len() >= other.len() {
|
||||
|
@ -1423,7 +1423,7 @@ impl<'a, T, S> IntoIterator for &'a HashSet<T, S> {
|
|||
type IntoIter = Iter<'a, T>;
|
||||
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
fn into_iter(self) -> Iter<'a, T> {
|
||||
self.iter()
|
||||
}
|
||||
|
@ -1455,7 +1455,7 @@ impl<T, S> IntoIterator for HashSet<T, S> {
|
|||
/// }
|
||||
/// ```
|
||||
#[inline]
|
||||
#[cfg_attr(not(bootstrap), rustc_lint_query_instability)]
|
||||
#[rustc_lint_query_instability]
|
||||
fn into_iter(self) -> IntoIter<T> {
|
||||
IntoIter { base: self.base.into_iter() }
|
||||
}
|
||||
|
|
|
@ -243,7 +243,6 @@
|
|||
#![feature(c_variadic)]
|
||||
#![feature(cfg_accessible)]
|
||||
#![feature(cfg_eval)]
|
||||
#![cfg_attr(bootstrap, feature(cfg_target_has_atomic))]
|
||||
#![feature(cfg_target_thread_local)]
|
||||
#![feature(char_error_internals)]
|
||||
#![feature(char_internals)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue