File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,8 @@ compile_error! {"\
118
118
build script as well.
119
119
" }
120
120
121
+ extern crate alloc;
122
+
121
123
#[ cfg( feature = "proc-macro" ) ]
122
124
extern crate proc_macro;
123
125
Original file line number Diff line number Diff line change
1
+ use alloc:: rc:: Rc ;
1
2
use core:: marker:: PhantomData ;
2
- use std:: panic:: { RefUnwindSafe , UnwindSafe } ;
3
- use std:: rc:: Rc ;
3
+ use core:: panic:: { RefUnwindSafe , UnwindSafe } ;
4
4
5
5
// Zero sized marker with the correct set of autotrait impls we want all proc
6
6
// macro types to have.
Original file line number Diff line number Diff line change
1
+ use alloc:: rc:: Rc ;
2
+ use alloc:: vec;
1
3
use core:: mem;
4
+ use core:: panic:: RefUnwindSafe ;
2
5
use core:: slice;
3
- use std:: panic:: RefUnwindSafe ;
4
- use std:: rc:: Rc ;
5
- use std:: vec;
6
6
7
7
pub ( crate ) struct RcVec < T > {
8
8
inner : Rc < Vec < T > > ,
You can’t perform that action at this time.
0 commit comments