@@ -3,7 +3,7 @@ use core::borrow::Borrow;
33use core:: cmp:: Ordering ;
44use core:: fmt:: { self , Debug } ;
55use core:: hash:: { Hash , Hasher } ;
6- use core:: iter:: { FromIterator , FusedIterator } ;
6+ use core:: iter:: FusedIterator ;
77use core:: marker:: PhantomData ;
88use core:: mem:: { self , ManuallyDrop } ;
99use core:: ops:: { Bound , Index , RangeBounds } ;
@@ -420,7 +420,6 @@ impl<'a, K: 'a, V: 'a> Default for IterMut<'a, K, V> {
420420/// (provided by the [`IntoIterator`] trait). See its documentation for more.
421421///
422422/// [`into_iter`]: IntoIterator::into_iter
423- /// [`IntoIterator`]: core::iter::IntoIterator
424423#[ stable( feature = "rust1" , since = "1.0.0" ) ]
425424#[ rustc_insignificant_dtor]
426425pub struct IntoIter <
@@ -650,7 +649,7 @@ impl<K, V, A: Allocator + Clone> BTreeMap<K, V, A> {
650649 #[ stable( feature = "rust1" , since = "1.0.0" ) ]
651650 pub fn clear ( & mut self ) {
652651 // avoid moving the allocator
653- mem :: drop ( BTreeMap {
652+ drop ( BTreeMap {
654653 root : mem:: replace ( & mut self . root , None ) ,
655654 length : mem:: replace ( & mut self . length , 0 ) ,
656655 alloc : self . alloc . clone ( ) ,
0 commit comments