Skip to content

Commit b6f3dbb

Browse files
committedMay 5, 2021
Bump map_into_keys_values stable version to 1.54.0.
1 parent 33cc3f5 commit b6f3dbb

File tree

2 files changed

+26
-26
lines changed
  • library
    • alloc/src/collections/btree
    • std/src/collections/hash

2 files changed

+26
-26
lines changed
 

‎library/alloc/src/collections/btree/map.rs

+14-14
Original file line numberDiff line numberDiff line change
@@ -398,12 +398,12 @@ impl<K, V: fmt::Debug> fmt::Debug for ValuesMut<'_, K, V> {
398398
/// See its documentation for more.
399399
///
400400
/// [`into_keys`]: BTreeMap::into_keys
401-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
401+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
402402
pub struct IntoKeys<K, V> {
403403
inner: IntoIter<K, V>,
404404
}
405405

406-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
406+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
407407
impl<K: fmt::Debug, V> fmt::Debug for IntoKeys<K, V> {
408408
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
409409
f.debug_list().entries(self.inner.iter().map(|(key, _)| key)).finish()
@@ -416,12 +416,12 @@ impl<K: fmt::Debug, V> fmt::Debug for IntoKeys<K, V> {
416416
/// See its documentation for more.
417417
///
418418
/// [`into_values`]: BTreeMap::into_values
419-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
419+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
420420
pub struct IntoValues<K, V> {
421421
inner: IntoIter<K, V>,
422422
}
423423

424-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
424+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
425425
impl<K, V: fmt::Debug> fmt::Debug for IntoValues<K, V> {
426426
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
427427
f.debug_list().entries(self.inner.iter().map(|(_, val)| val)).finish()
@@ -1252,7 +1252,7 @@ impl<K, V> BTreeMap<K, V> {
12521252
/// assert_eq!(keys, [1, 2]);
12531253
/// ```
12541254
#[inline]
1255-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1255+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
12561256
pub fn into_keys(self) -> IntoKeys<K, V> {
12571257
IntoKeys { inner: self.into_iter() }
12581258
}
@@ -1274,7 +1274,7 @@ impl<K, V> BTreeMap<K, V> {
12741274
/// assert_eq!(values, ["hello", "goodbye"]);
12751275
/// ```
12761276
#[inline]
1277-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1277+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
12781278
pub fn into_values(self) -> IntoValues<K, V> {
12791279
IntoValues { inner: self.into_iter() }
12801280
}
@@ -1774,7 +1774,7 @@ impl<'a, K, V> Range<'a, K, V> {
17741774
}
17751775
}
17761776

1777-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1777+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
17781778
impl<K, V> Iterator for IntoKeys<K, V> {
17791779
type Item = K;
17801780

@@ -1799,24 +1799,24 @@ impl<K, V> Iterator for IntoKeys<K, V> {
17991799
}
18001800
}
18011801

1802-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1802+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18031803
impl<K, V> DoubleEndedIterator for IntoKeys<K, V> {
18041804
fn next_back(&mut self) -> Option<K> {
18051805
self.inner.next_back().map(|(k, _)| k)
18061806
}
18071807
}
18081808

1809-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1809+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18101810
impl<K, V> ExactSizeIterator for IntoKeys<K, V> {
18111811
fn len(&self) -> usize {
18121812
self.inner.len()
18131813
}
18141814
}
18151815

1816-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1816+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18171817
impl<K, V> FusedIterator for IntoKeys<K, V> {}
18181818

1819-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1819+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18201820
impl<K, V> Iterator for IntoValues<K, V> {
18211821
type Item = V;
18221822

@@ -1833,21 +1833,21 @@ impl<K, V> Iterator for IntoValues<K, V> {
18331833
}
18341834
}
18351835

1836-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1836+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18371837
impl<K, V> DoubleEndedIterator for IntoValues<K, V> {
18381838
fn next_back(&mut self) -> Option<V> {
18391839
self.inner.next_back().map(|(_, v)| v)
18401840
}
18411841
}
18421842

1843-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1843+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18441844
impl<K, V> ExactSizeIterator for IntoValues<K, V> {
18451845
fn len(&self) -> usize {
18461846
self.inner.len()
18471847
}
18481848
}
18491849

1850-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1850+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
18511851
impl<K, V> FusedIterator for IntoValues<K, V> {}
18521852

18531853
#[stable(feature = "btree_range", since = "1.17.0")]

‎library/std/src/collections/hash/map.rs

+12-12
Original file line numberDiff line numberDiff line change
@@ -972,7 +972,7 @@ where
972972
/// let vec: Vec<&str> = map.into_keys().collect();
973973
/// ```
974974
#[inline]
975-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
975+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
976976
pub fn into_keys(self) -> IntoKeys<K, V> {
977977
IntoKeys { inner: self.into_iter() }
978978
}
@@ -994,7 +994,7 @@ where
994994
/// let vec: Vec<i32> = map.into_values().collect();
995995
/// ```
996996
#[inline]
997-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
997+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
998998
pub fn into_values(self) -> IntoValues<K, V> {
999999
IntoValues { inner: self.into_iter() }
10001000
}
@@ -1409,7 +1409,7 @@ pub struct ValuesMut<'a, K: 'a, V: 'a> {
14091409
/// map.insert("a", 1);
14101410
/// let iter_keys = map.into_keys();
14111411
/// ```
1412-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1412+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
14131413
pub struct IntoKeys<K, V> {
14141414
inner: IntoIter<K, V>,
14151415
}
@@ -1430,7 +1430,7 @@ pub struct IntoKeys<K, V> {
14301430
/// map.insert("a", 1);
14311431
/// let iter_keys = map.into_values();
14321432
/// ```
1433-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
1433+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
14341434
pub struct IntoValues<K, V> {
14351435
inner: IntoIter<K, V>,
14361436
}
@@ -2131,7 +2131,7 @@ impl<K, V: fmt::Debug> fmt::Debug for ValuesMut<'_, K, V> {
21312131
}
21322132
}
21332133

2134-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2134+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21352135
impl<K, V> Iterator for IntoKeys<K, V> {
21362136
type Item = K;
21372137

@@ -2144,24 +2144,24 @@ impl<K, V> Iterator for IntoKeys<K, V> {
21442144
self.inner.size_hint()
21452145
}
21462146
}
2147-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2147+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21482148
impl<K, V> ExactSizeIterator for IntoKeys<K, V> {
21492149
#[inline]
21502150
fn len(&self) -> usize {
21512151
self.inner.len()
21522152
}
21532153
}
2154-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2154+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21552155
impl<K, V> FusedIterator for IntoKeys<K, V> {}
21562156

2157-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2157+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21582158
impl<K: Debug, V> fmt::Debug for IntoKeys<K, V> {
21592159
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
21602160
f.debug_list().entries(self.inner.iter().map(|(k, _)| k)).finish()
21612161
}
21622162
}
21632163

2164-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2164+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21652165
impl<K, V> Iterator for IntoValues<K, V> {
21662166
type Item = V;
21672167

@@ -2174,17 +2174,17 @@ impl<K, V> Iterator for IntoValues<K, V> {
21742174
self.inner.size_hint()
21752175
}
21762176
}
2177-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2177+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21782178
impl<K, V> ExactSizeIterator for IntoValues<K, V> {
21792179
#[inline]
21802180
fn len(&self) -> usize {
21812181
self.inner.len()
21822182
}
21832183
}
2184-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2184+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21852185
impl<K, V> FusedIterator for IntoValues<K, V> {}
21862186

2187-
#[stable(feature = "map_into_keys_values", since = "1.53.0")]
2187+
#[stable(feature = "map_into_keys_values", since = "1.54.0")]
21882188
impl<K, V: Debug> fmt::Debug for IntoValues<K, V> {
21892189
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
21902190
f.debug_list().entries(self.inner.iter().map(|(_, v)| v)).finish()

0 commit comments

Comments
 (0)