@@ -3,7 +3,7 @@ use core::borrow::Borrow;
3
3
use core:: cmp:: Ordering ;
4
4
use core:: fmt:: { self , Debug } ;
5
5
use core:: hash:: { Hash , Hasher } ;
6
- use core:: iter:: { FromIterator , FusedIterator } ;
6
+ use core:: iter:: FusedIterator ;
7
7
use core:: marker:: PhantomData ;
8
8
use core:: mem:: { self , ManuallyDrop } ;
9
9
use core:: ops:: { Bound , Index , RangeBounds } ;
@@ -420,7 +420,6 @@ impl<'a, K: 'a, V: 'a> Default for IterMut<'a, K, V> {
420
420
/// (provided by the [`IntoIterator`] trait). See its documentation for more.
421
421
///
422
422
/// [`into_iter`]: IntoIterator::into_iter
423
- /// [`IntoIterator`]: core::iter::IntoIterator
424
423
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
425
424
#[ rustc_insignificant_dtor]
426
425
pub struct IntoIter <
@@ -650,7 +649,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
650
649
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
651
650
pub fn clear ( & mut self ) {
652
651
// avoid moving the allocator
653
- mem :: drop ( BTreeMap {
652
+ drop ( BTreeMap {
654
653
root : mem:: replace ( & mut self . root , None ) ,
655
654
length : mem:: replace ( & mut self . length , 0 ) ,
656
655
alloc : self . alloc . clone ( ) ,
0 commit comments