@@ -371,7 +371,7 @@ impl<K, V, S> HashMap<K, V, S> {
371
371
/// assert_eq!(vec, ["a", "b", "c"]);
372
372
/// ```
373
373
#[ inline]
374
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
374
+ #[ rustc_lint_query_instability]
375
375
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
376
376
pub fn into_keys ( self ) -> IntoKeys < K , V > {
377
377
IntoKeys { inner : self . into_iter ( ) }
@@ -449,7 +449,7 @@ impl<K, V, S> HashMap<K, V, S> {
449
449
/// assert_eq!(vec, [1, 2, 3]);
450
450
/// ```
451
451
#[ inline]
452
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
452
+ #[ rustc_lint_query_instability]
453
453
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
454
454
pub fn into_values ( self ) -> IntoValues < K , V > {
455
455
IntoValues { inner : self . into_iter ( ) }
@@ -473,7 +473,7 @@ impl<K, V, S> HashMap<K, V, S> {
473
473
/// println!("key: {} val: {}", key, val);
474
474
/// }
475
475
/// ```
476
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
476
+ #[ rustc_lint_query_instability]
477
477
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
478
478
pub fn iter ( & self ) -> Iter < ' _ , K , V > {
479
479
Iter { base : self . base . iter ( ) }
@@ -503,7 +503,7 @@ impl<K, V, S> HashMap<K, V, S> {
503
503
/// println!("key: {} val: {}", key, val);
504
504
/// }
505
505
/// ```
506
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
506
+ #[ rustc_lint_query_instability]
507
507
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
508
508
pub fn iter_mut ( & mut self ) -> IterMut < ' _ , K , V > {
509
509
IterMut { base : self . base . iter_mut ( ) }
@@ -568,7 +568,7 @@ impl<K, V, S> HashMap<K, V, S> {
568
568
/// assert!(a.is_empty());
569
569
/// ```
570
570
#[ inline]
571
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
571
+ #[ rustc_lint_query_instability]
572
572
#[ stable( feature = "drain" , since = "1.6.0" ) ]
573
573
pub fn drain ( & mut self ) -> Drain < ' _ , K , V > {
574
574
Drain { base : self . base . drain ( ) }
@@ -610,7 +610,7 @@ impl<K, V, S> HashMap<K, V, S> {
610
610
/// assert_eq!(odds, vec![1, 3, 5, 7]);
611
611
/// ```
612
612
#[ inline]
613
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
613
+ #[ rustc_lint_query_instability]
614
614
#[ unstable( feature = "hash_drain_filter" , issue = "59618" ) ]
615
615
pub fn drain_filter < F > ( & mut self , pred : F ) -> DrainFilter < ' _ , K , V , F >
616
616
where
@@ -634,7 +634,7 @@ impl<K, V, S> HashMap<K, V, S> {
634
634
/// assert_eq!(map.len(), 4);
635
635
/// ```
636
636
#[ inline]
637
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
637
+ #[ rustc_lint_query_instability]
638
638
#[ stable( feature = "retain_hash_collection" , since = "1.18.0" ) ]
639
639
pub fn retain < F > ( & mut self , f : F )
640
640
where
@@ -2001,7 +2001,7 @@ impl<'a, K, V, S> IntoIterator for &'a HashMap<K, V, S> {
2001
2001
type IntoIter = Iter < ' a , K , V > ;
2002
2002
2003
2003
#[ inline]
2004
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
2004
+ #[ rustc_lint_query_instability]
2005
2005
fn into_iter ( self ) -> Iter < ' a , K , V > {
2006
2006
self . iter ( )
2007
2007
}
@@ -2013,7 +2013,7 @@ impl<'a, K, V, S> IntoIterator for &'a mut HashMap<K, V, S> {
2013
2013
type IntoIter = IterMut < ' a , K , V > ;
2014
2014
2015
2015
#[ inline]
2016
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
2016
+ #[ rustc_lint_query_instability]
2017
2017
fn into_iter ( self ) -> IterMut < ' a , K , V > {
2018
2018
self . iter_mut ( )
2019
2019
}
@@ -2043,7 +2043,7 @@ impl<K, V, S> IntoIterator for HashMap<K, V, S> {
2043
2043
/// let vec: Vec<(&str, i32)> = map.into_iter().collect();
2044
2044
/// ```
2045
2045
#[ inline]
2046
- #[ cfg_attr ( not ( bootstrap ) , rustc_lint_query_instability) ]
2046
+ #[ rustc_lint_query_instability]
2047
2047
fn into_iter ( self ) -> IntoIter < K , V > {
2048
2048
IntoIter { base : self . base . into_iter ( ) }
2049
2049
}
0 commit comments