File tree Expand file tree Collapse file tree 5 files changed +6
-2
lines changed
Expand file tree Collapse file tree 5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 11use core:: any:: Any ;
2+ #[ cfg( not( no_global_oom_handling) ) ]
23use core:: clone:: TrivialClone ;
34use core:: error:: Error ;
45use core:: mem;
Original file line number Diff line number Diff line change 244244use core:: any:: Any ;
245245use core:: cell:: Cell ;
246246#[ cfg( not( no_global_oom_handling) ) ]
247- use core:: clone:: CloneToUninit ;
248- use core:: clone:: TrivialClone ;
247+ use core:: clone:: { CloneToUninit , TrivialClone } ;
249248use core:: cmp:: Ordering ;
250249use core:: hash:: { Hash , Hasher } ;
251250use core:: intrinsics:: abort;
Original file line number Diff line number Diff line change 1313#![ cfg_attr( test, allow( unused_imports, dead_code) ) ]
1414
1515use core:: borrow:: { Borrow , BorrowMut } ;
16+ #[ cfg( not( no_global_oom_handling) ) ]
1617use core:: clone:: TrivialClone ;
1718#[ cfg( not( no_global_oom_handling) ) ]
1819use core:: cmp:: Ordering :: { self , Less } ;
@@ -89,6 +90,7 @@ use crate::vec::Vec;
8990#[ allow( unreachable_pub) ] // cfg(test) pub above
9091pub ( crate ) mod hack {
9192 use core:: alloc:: Allocator ;
93+ #[ cfg( not( no_global_oom_handling) ) ]
9294 use core:: clone:: TrivialClone ;
9395
9496 use crate :: boxed:: Box ;
Original file line number Diff line number Diff line change 1111use core:: any:: Any ;
1212#[ cfg( not( no_global_oom_handling) ) ]
1313use core:: clone:: CloneToUninit ;
14+ #[ cfg( not( no_global_oom_handling) ) ]
1415use core:: clone:: TrivialClone ;
1516use core:: cmp:: Ordering ;
1617use core:: hash:: { Hash , Hasher } ;
Original file line number Diff line number Diff line change 5353
5454#![ stable( feature = "rust1" , since = "1.0.0" ) ]
5555
56+ #[ cfg( not( no_global_oom_handling) ) ]
5657use core:: clone:: TrivialClone ;
5758#[ cfg( not( no_global_oom_handling) ) ]
5859use core:: cmp;
You can’t perform that action at this time.
0 commit comments