Rollup merge of #71575 - jplatte:patch-4, r=Mark-Simulacrum
Fix stable(since) attribute for BTreeMap::remove_entry Stabilized in #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 #71571, #71574)
This commit is contained in:
commit
aa9dc69522
1 changed files with 1 additions and 1 deletions
|
|
@ -930,7 +930,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
|
|||
/// assert_eq!(map.remove_entry(&1), Some((1, "a")));
|
||||
/// assert_eq!(map.remove_entry(&1), None);
|
||||
/// ```
|
||||
#[stable(feature = "btreemap_remove_entry", since = "1.44.0")]
|
||||
#[stable(feature = "btreemap_remove_entry", since = "1.45.0")]
|
||||
pub fn remove_entry<Q: ?Sized>(&mut self, key: &Q) -> Option<(K, V)>
|
||||
where
|
||||
K: Borrow<Q>,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue