Commit 80e881f 1 parent f2d28fe commit 80e881f Copy full SHA for 80e881f
File tree 5 files changed +6
-2
lines changed
5 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
use core:: any:: Any ;
2
+ #[ cfg( not( no_global_oom_handling) ) ]
2
3
use core:: clone:: TrivialClone ;
3
4
use core:: error:: Error ;
4
5
use core:: mem;
Original file line number Diff line number Diff line change 244
244
use core:: any:: Any ;
245
245
use core:: cell:: Cell ;
246
246
#[ cfg( not( no_global_oom_handling) ) ]
247
- use core:: clone:: CloneToUninit ;
248
- use core:: clone:: TrivialClone ;
247
+ use core:: clone:: { CloneToUninit , TrivialClone } ;
249
248
use core:: cmp:: Ordering ;
250
249
use core:: hash:: { Hash , Hasher } ;
251
250
use core:: intrinsics:: abort;
Original file line number Diff line number Diff line change 13
13
#![ cfg_attr( test, allow( unused_imports, dead_code) ) ]
14
14
15
15
use core:: borrow:: { Borrow , BorrowMut } ;
16
+ #[ cfg( not( no_global_oom_handling) ) ]
16
17
use core:: clone:: TrivialClone ;
17
18
#[ cfg( not( no_global_oom_handling) ) ]
18
19
use core:: cmp:: Ordering :: { self , Less } ;
@@ -89,6 +90,7 @@ use crate::vec::Vec;
89
90
#[ allow( unreachable_pub) ] // cfg(test) pub above
90
91
pub ( crate ) mod hack {
91
92
use core:: alloc:: Allocator ;
93
+ #[ cfg( not( no_global_oom_handling) ) ]
92
94
use core:: clone:: TrivialClone ;
93
95
94
96
use crate :: boxed:: Box ;
Original file line number Diff line number Diff line change 11
11
use core:: any:: Any ;
12
12
#[ cfg( not( no_global_oom_handling) ) ]
13
13
use core:: clone:: CloneToUninit ;
14
+ #[ cfg( not( no_global_oom_handling) ) ]
14
15
use core:: clone:: TrivialClone ;
15
16
use core:: cmp:: Ordering ;
16
17
use core:: hash:: { Hash , Hasher } ;
Original file line number Diff line number Diff line change 53
53
54
54
#![ stable( feature = "rust1" , since = "1.0.0" ) ]
55
55
56
+ #[ cfg( not( no_global_oom_handling) ) ]
56
57
use core:: clone:: TrivialClone ;
57
58
#[ cfg( not( no_global_oom_handling) ) ]
58
59
use core:: cmp;
You can’t perform that action at this time.
0 commit comments