File tree 3 files changed +6
-3
lines changed
3 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -3350,7 +3350,6 @@ dependencies = [
3350
3350
name = " rustc_arena"
3351
3351
version = " 0.0.0"
3352
3352
dependencies = [
3353
- " rustc_data_structures" ,
3354
3353
" smallvec 1.4.2" ,
3355
3354
]
3356
3355
Original file line number Diff line number Diff line change @@ -5,5 +5,4 @@ version = "0.0.0"
5
5
edition = " 2018"
6
6
7
7
[dependencies ]
8
- rustc_data_structures = { path = " ../rustc_data_structures" }
9
8
smallvec = { version = " 1.0" , features = [" union" , " may_dangle" ] }
Original file line number Diff line number Diff line change 16
16
#![ feature( maybe_uninit_slice) ]
17
17
#![ cfg_attr( test, feature( test) ) ]
18
18
19
- use rustc_data_structures:: cold_path;
20
19
use smallvec:: SmallVec ;
21
20
22
21
use std:: alloc:: Layout ;
@@ -27,6 +26,12 @@ use std::mem::{self, MaybeUninit};
27
26
use std:: ptr;
28
27
use std:: slice;
29
28
29
+ #[ inline( never) ]
30
+ #[ cold]
31
+ pub fn cold_path < F : FnOnce ( ) -> R , R > ( f : F ) -> R {
32
+ f ( )
33
+ }
34
+
30
35
/// An arena that can hold objects of only one type.
31
36
pub struct TypedArena < T > {
32
37
/// A pointer to the next object to be allocated.
You can’t perform that action at this time.
0 commit comments