File tree 3 files changed +3
-2
lines changed
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 10
10
11
11
use crate :: prelude:: * ;
12
12
13
- use syntax :: ext :: allocator:: { AllocatorKind , AllocatorTy , ALLOCATOR_METHODS } ;
13
+ use syntax_expand :: allocator:: { AllocatorKind , AllocatorTy , ALLOCATOR_METHODS } ;
14
14
15
15
/// Returns whether an allocator shim was created
16
16
pub fn codegen ( tcx : TyCtxt < ' _ > , module : & mut Module < impl Backend + ' static > ) -> bool {
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ fn trans_const_place<'tcx>(
171
171
let ptr = ecx. allocate ( op. layout , MemoryKind :: Stack ) ;
172
172
ecx. copy_op ( op, ptr. into ( ) ) ?;
173
173
let alloc = ecx
174
- . memory ( )
174
+ . memory
175
175
. get ( ptr. to_ref ( ) . to_scalar ( ) ?. to_ptr ( ) ?. alloc_id ) ?;
176
176
Ok ( fx. tcx . intern_const_alloc ( alloc. clone ( ) ) )
177
177
} ;
Original file line number Diff line number Diff line change @@ -14,6 +14,7 @@ extern crate rustc_index;
14
14
extern crate rustc_mir;
15
15
extern crate rustc_target;
16
16
extern crate syntax;
17
+ extern crate syntax_expand;
17
18
18
19
use std:: any:: Any ;
19
20
You can’t perform that action at this time.
0 commit comments