@@ -414,6 +414,7 @@ impl<K, V, S> HashMap<K, V, S> {
414
414
/// println!("key: {} val: {}", key, val);
415
415
/// }
416
416
/// ```
417
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
417
418
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
418
419
pub fn iter ( & self ) -> Iter < ' _ , K , V > {
419
420
Iter { base : self . base . iter ( ) }
@@ -442,6 +443,7 @@ impl<K, V, S> HashMap<K, V, S> {
442
443
/// println!("key: {} val: {}", key, val);
443
444
/// }
444
445
/// ```
446
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
445
447
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
446
448
pub fn iter_mut ( & mut self ) -> IterMut < ' _ , K , V > {
447
449
IterMut { base : self . base . iter_mut ( ) }
@@ -502,6 +504,7 @@ impl<K, V, S> HashMap<K, V, S> {
502
504
/// assert!(a.is_empty());
503
505
/// ```
504
506
#[ inline]
507
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
505
508
#[ stable( feature = "drain" , since = "1.6.0" ) ]
506
509
pub fn drain ( & mut self ) -> Drain < ' _ , K , V > {
507
510
Drain { base : self . base . drain ( ) }
@@ -543,6 +546,7 @@ impl<K, V, S> HashMap<K, V, S> {
543
546
/// assert_eq!(odds, vec![1, 3, 5, 7]);
544
547
/// ```
545
548
#[ inline]
549
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
546
550
#[ unstable( feature = "hash_drain_filter" , issue = "59618" ) ]
547
551
pub fn drain_filter < F > ( & mut self , pred : F ) -> DrainFilter < ' _ , K , V , F >
548
552
where
@@ -949,6 +953,7 @@ where
949
953
/// assert_eq!(map.len(), 4);
950
954
/// ```
951
955
#[ inline]
956
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
952
957
#[ stable( feature = "retain_hash_collection" , since = "1.18.0" ) ]
953
958
pub fn retain < F > ( & mut self , f : F )
954
959
where
@@ -978,6 +983,7 @@ where
978
983
/// assert_eq!(vec, ["a", "b", "c"]);
979
984
/// ```
980
985
#[ inline]
986
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
981
987
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
982
988
pub fn into_keys ( self ) -> IntoKeys < K , V > {
983
989
IntoKeys { inner : self . into_iter ( ) }
@@ -1004,6 +1010,7 @@ where
1004
1010
/// assert_eq!(vec, [1, 2, 3]);
1005
1011
/// ```
1006
1012
#[ inline]
1013
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
1007
1014
#[ stable( feature = "map_into_keys_values" , since = "1.54.0" ) ]
1008
1015
pub fn into_values ( self ) -> IntoValues < K , V > {
1009
1016
IntoValues { inner : self . into_iter ( ) }
@@ -1969,6 +1976,7 @@ impl<'a, K, V, S> IntoIterator for &'a HashMap<K, V, S> {
1969
1976
type IntoIter = Iter < ' a , K , V > ;
1970
1977
1971
1978
#[ inline]
1979
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
1972
1980
fn into_iter ( self ) -> Iter < ' a , K , V > {
1973
1981
self . iter ( )
1974
1982
}
@@ -1980,6 +1988,7 @@ impl<'a, K, V, S> IntoIterator for &'a mut HashMap<K, V, S> {
1980
1988
type IntoIter = IterMut < ' a , K , V > ;
1981
1989
1982
1990
#[ inline]
1991
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
1983
1992
fn into_iter ( self ) -> IterMut < ' a , K , V > {
1984
1993
self . iter_mut ( )
1985
1994
}
@@ -2008,6 +2017,7 @@ impl<K, V, S> IntoIterator for HashMap<K, V, S> {
2008
2017
/// let vec: Vec<(&str, i32)> = map.into_iter().collect();
2009
2018
/// ```
2010
2019
#[ inline]
2020
+ #[ cfg_attr( not( bootstrap) , rustc_lint_query_instability) ]
2011
2021
fn into_iter ( self ) -> IntoIter < K , V > {
2012
2022
IntoIter { base : self . base . into_iter ( ) }
2013
2023
}
0 commit comments