Enable feature gate extern_crate_item_prelude
This commit is contained in:
parent
d20f54bb1a
commit
648f491977
9 changed files with 39 additions and 38 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue