Skip to content

Commit aa9dc69

Browse files
authored
Rollup merge of rust-lang#71575 - jplatte:patch-4, r=Mark-Simulacrum
Fix stable(since) attribute for BTreeMap::remove_entry Stabilized in rust-lang#70712. Maybe checking that the since attributes are added correctly should be automated through tidy? This is the third PR I'm opening that fixes a stable(since) attribute for something meant to be stabilized in 1.43 / 1.44 initially but then only stabilized in 1.45. (the other two are rust-lang#71571, rust-lang#71574)
2 parents aa89e91 + 35eae4b commit aa9dc69

File tree

1 file changed

+1
-1
lines changed
  • src/liballoc/collections/btree

1 file changed

+1
-1
lines changed

src/liballoc/collections/btree/map.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -930,7 +930,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
930930
/// assert_eq!(map.remove_entry(&1), Some((1, "a")));
931931
/// assert_eq!(map.remove_entry(&1), None);
932932
/// ```
933-
#[stable(feature = "btreemap_remove_entry", since = "1.44.0")]
933+
#[stable(feature = "btreemap_remove_entry", since = "1.45.0")]
934934
pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)>
935935
where
936936
K: Borrow<Q>,

0 commit comments

Comments
 (0)