@@ -371,6 +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
375
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
375
376
pub fn into_keys ( self ) -> IntoKeys < K , V > {
376
377
IntoKeys { inner : self . into_iter ( ) }
@@ -448,6 +449,7 @@ impl<K, V, S> HashMap<K, V, S> {
448
449
/// assert_eq!(vec, [1, 2, 3]);
449
450
/// ```
450
451
#[ inline]
452
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
451
453
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
452
454
pub fn into_values ( self ) -> IntoValues < K , V > {
453
455
IntoValues { inner : self . into_iter ( ) }
@@ -471,6 +473,7 @@ impl<K, V, S> HashMap<K, V, S> {
471
473
/// println!("key: {} val: {}", key, val);
472
474
/// }
473
475
/// ```
476
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
474
477
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
475
478
pub fn iter ( & self ) -> Iter < ' _ , K , V > {
476
479
Iter { base : self . base . iter ( ) }
@@ -500,6 +503,7 @@ impl<K, V, S> HashMap<K, V, S> {
500
503
/// println!("key: {} val: {}", key, val);
501
504
/// }
502
505
/// ```
506
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
503
507
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
504
508
pub fn iter_mut ( & mut self ) -> IterMut < ' _ , K , V > {
505
509
IterMut { base : self . base . iter_mut ( ) }
@@ -560,6 +564,7 @@ impl<K, V, S> HashMap<K, V, S> {
560
564
/// assert!(a.is_empty());
561
565
/// ```
562
566
#[ inline]
567
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
563
568
#[ stable( feature = "drain" , since = "1.6.0" ) ]
564
569
pub fn drain ( & mut self ) -> Drain < ' _ , K , V > {
565
570
Drain { base : self . base . drain ( ) }
@@ -601,6 +606,7 @@ impl<K, V, S> HashMap<K, V, S> {
601
606
/// assert_eq!(odds, vec![1, 3, 5, 7]);
602
607
/// ```
603
608
#[ inline]
609
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
604
610
#[ unstable( feature = "hash_drain_filter" , issue = "59618" ) ]
605
611
pub fn drain_filter < F > ( & mut self , pred : F ) -> DrainFilter < ' _ , K , V , F >
606
612
where
@@ -624,6 +630,7 @@ impl<K, V, S> HashMap<K, V, S> {
624
630
/// assert_eq!(map.len(), 4);
625
631
/// ```
626
632
#[ inline]
633
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
627
634
#[ stable( feature = "retain_hash_collection" , since = "1.18.0" ) ]
628
635
pub fn retain < F > ( & mut self , f : F )
629
636
where
@@ -1990,6 +1997,7 @@ impl<'a, K, V, S> IntoIterator for &'a HashMap<K, V, S> {
1990
1997
type IntoIter = Iter < ' a , K , V > ;
1991
1998
1992
1999
#[ inline]
2000
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
1993
2001
fn into_iter ( self ) -> Iter < ' a , K , V > {
1994
2002
self . iter ( )
1995
2003
}
@@ -2001,6 +2009,7 @@ impl<'a, K, V, S> IntoIterator for &'a mut HashMap<K, V, S> {
2001
2009
type IntoIter = IterMut < ' a , K , V > ;
2002
2010
2003
2011
#[ inline]
2012
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
2004
2013
fn into_iter ( self ) -> IterMut < ' a , K , V > {
2005
2014
self . iter_mut ( )
2006
2015
}
@@ -2030,6 +2039,7 @@ impl<K, V, S> IntoIterator for HashMap<K, V, S> {
2030
2039
/// let vec: Vec<(&str, i32)> = map.into_iter().collect();
2031
2040
/// ```
2032
2041
#[ inline]
2042
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
2033
2043
fn into_iter ( self ) -> IntoIter < K , V > {
2034
2044
IntoIter { base : self . base . into_iter ( ) }
2035
2045
}
0 commit comments