Rustup to rustc 1.44.0-nightly (75208942f 2020-03-27)

This commit is contained in:
bjorn3 2020-03-28 14:20:24 +01:00
parent f6d12440aa
commit d2964f6a71
4 changed files with 17 additions and 11 deletions

View File

@ -1 +1 @@
nightly-2020-03-24
nightly-2020-03-28

View File

@ -61,15 +61,15 @@ pub(super) fn add_local_place_comments<'tcx>(
place: CPlace<'tcx>,
local: Local,
) {
let TyLayout { ty, details } = place.layout();
let ty::layout::LayoutDetails {
let TyLayout { ty, layout } = place.layout();
let ty::layout::Layout {
size,
align,
abi: _,
variants: _,
fields: _,
largest_niche: _,
} = details;
} = layout;
let (kind, extra) = match *place.inner() {
CPlaceInner::Var(var) => {

View File

@ -573,7 +573,13 @@ fn trans_stmt<'tcx>(
}
Rvalue::Repeat(operand, times) => {
let operand = trans_operand(fx, operand);
for i in 0..*times {
let times = fx
.monomorphize(times)
.eval(fx.tcx, ParamEnv::reveal_all())
.val
.try_to_bits(fx.tcx.data_layout.pointer_size)
.unwrap();
for i in 0..times {
let index = fx.bcx.ins().iconst(fx.pointer_type, i as i64);
let to = lval.place_index(fx, index);
to.write_cvalue(fx, operand);
@ -642,14 +648,14 @@ fn trans_stmt<'tcx>(
| StatementKind::Retag { .. }
| StatementKind::AscribeUserType(..) => {}
StatementKind::InlineAsm(asm) => {
StatementKind::LlvmInlineAsm(asm) => {
use rustc_ast::ast::Name;
let InlineAsm {
let LlvmInlineAsm {
asm,
outputs: _,
inputs: _,
} = &**asm;
let rustc_hir::InlineAsmInner {
let rustc_hir::LlvmInlineAsmInner {
asm: asm_code, // Name
outputs, // Vec<Name>
inputs, // Vec<Name>

View File

@ -391,7 +391,7 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut Module<impl Backend>, cx: &mu
struct TransPlaceInterpreter;
impl<'mir, 'tcx> Machine<'mir, 'tcx> for TransPlaceInterpreter {
type MemoryKinds = !;
type MemoryKind = !;
type ExtraFnVal = !;
type PointerTag = ();
type AllocExtra = ();
@ -400,7 +400,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for TransPlaceInterpreter {
type MemoryMap = FxHashMap<AllocId, (MemoryKind<!>, Allocation<()>)>;
const CHECK_ALIGN: bool = true;
const STATIC_KIND: Option<!> = None;
const GLOBAL_KIND: Option<!> = None;
fn enforce_validity(_: &InterpCx<'mir, 'tcx, Self>) -> bool {
false
@ -458,7 +458,7 @@ impl<'mir, 'tcx> Machine<'mir, 'tcx> for TransPlaceInterpreter {
(alloc, ())
}
fn tag_static_base_pointer(_: &(), _: AllocId) -> Self::PointerTag {
fn tag_global_base_pointer(_: &(), _: AllocId) -> Self::PointerTag {
()
}