Skip to content

Commit 8243a37

Browse files
committed
Rustup to rustc 1.40.0-nightly (fa0f7d008 2019-10-17)
1 parent 0934dc8 commit 8243a37

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

src/allocator.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
use crate::prelude::*;
1212

13-
use syntax::ext::allocator::{AllocatorKind, AllocatorTy, ALLOCATOR_METHODS};
13+
use syntax_expand::allocator::{AllocatorKind, AllocatorTy, ALLOCATOR_METHODS};
1414

1515
/// Returns whether an allocator shim was created
1616
pub fn codegen(tcx: TyCtxt<'_>, module: &mut Module<impl Backend + 'static>) -> bool {

src/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ fn trans_const_place<'tcx>(
171171
let ptr = ecx.allocate(op.layout, MemoryKind::Stack);
172172
ecx.copy_op(op, ptr.into())?;
173173
let alloc = ecx
174-
.memory()
174+
.memory
175175
.get(ptr.to_ref().to_scalar()?.to_ptr()?.alloc_id)?;
176176
Ok(fx.tcx.intern_const_alloc(alloc.clone()))
177177
};

src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ extern crate rustc_index;
1414
extern crate rustc_mir;
1515
extern crate rustc_target;
1616
extern crate syntax;
17+
extern crate syntax_expand;
1718

1819
use std::any::Any;
1920

0 commit comments

Comments
 (0)