1
Fork 0

Enable feature gate extern_crate_item_prelude

This commit is contained in:
bjorn3 2018-11-07 13:29:38 +01:00
parent d20f54bb1a
commit 648f491977
9 changed files with 39 additions and 38 deletions

View file

@ -606,7 +606,7 @@ fn trans_stmt<'a, 'tcx: 'a>(
lval.write_cvalue(fx, CValue::ByVal(len, usize_layout));
}
Rvalue::NullaryOp(NullOp::Box, content_ty) => {
use crate::rustc::middle::lang_items::ExchangeMallocFnLangItem;
use rustc::middle::lang_items::ExchangeMallocFnLangItem;
let usize_type = fx.cton_type(fx.tcx.types.usize).unwrap();
let (size, align) = fx.layout_of(content_ty).size_and_align();