Rustup to rustc 1.40.0-nightly (fa0f7d008 2019-10-17)

This commit is contained in:
bjorn3 2019-10-18 18:31:26 +02:00
parent 0934dc84fd
commit 8243a370d2
3 changed files with 3 additions and 2 deletions

View File

@ -10,7 +10,7 @@
use crate::prelude::*;
use syntax::ext::allocator::{AllocatorKind, AllocatorTy, ALLOCATOR_METHODS};
use syntax_expand::allocator::{AllocatorKind, AllocatorTy, ALLOCATOR_METHODS};
/// Returns whether an allocator shim was created
pub fn codegen(tcx: TyCtxt<'_>, module: &mut Module<impl Backend + 'static>) -> bool {

View File

@ -171,7 +171,7 @@ fn trans_const_place<'tcx>(
let ptr = ecx.allocate(op.layout, MemoryKind::Stack);
ecx.copy_op(op, ptr.into())?;
let alloc = ecx
.memory()
.memory
.get(ptr.to_ref().to_scalar()?.to_ptr()?.alloc_id)?;
Ok(fx.tcx.intern_const_alloc(alloc.clone()))
};

View File

@ -14,6 +14,7 @@ extern crate rustc_index;
extern crate rustc_mir;
extern crate rustc_target;
extern crate syntax;
extern crate syntax_expand;
use std::any::Any;