Skip to content

Commit 217b381

Browse files
committed
Rustup to rustc 1.48.0-nightly (c59199efc 2020-09-04)
1 parent c9b0d51 commit 217b381

File tree

15 files changed

+120
-80
lines changed

15 files changed

+120
-80
lines changed

Cargo.lock

Lines changed: 41 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ indexmap = "1.0.2"
2424
cfg-if = "0.1.10"
2525
libloading = { version = "0.6.0", optional = true }
2626
hashbrown = "0.9.0"
27+
flate2 = "1.0.17"
2728

2829
# Uncomment to use local checkout of cranelift
2930
#[patch."https://github.com/bytecodealliance/wasmtime/"]

build_sysroot/Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-toolchain

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
nightly-2020-08-23
1+
nightly-2020-09-05

src/abi/mod.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ pub(crate) fn fn_sig_for_fn_abi<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx
2020

2121
// FIXME(davidtwco,eddyb): A `ParamEnv` should be passed through to this function.
2222
let ty = instance.ty(tcx, ty::ParamEnv::reveal_all());
23-
match ty.kind {
23+
match *ty.kind() {
2424
ty::FnDef(..) => {
2525
// HACK(davidtwco,eddyb): This is a workaround for polymorphization considering
2626
// parameters unused if they show up in the signature, but not in the `mir::Body`
2727
// (i.e. due to being inside a projection that got normalized, see
2828
// `src/test/ui/polymorphization/normalized_sig_types.rs`), and codegen not keeping
2929
// track of a polymorphization `ParamEnv` to allow normalizing later.
30-
let mut sig = match ty.kind {
30+
let mut sig = match *ty.kind() {
3131
ty::FnDef(def_id, substs) => tcx
3232
.normalize_erasing_regions(tcx.param_env(def_id), tcx.fn_sig(def_id))
3333
.subst(tcx, substs),
@@ -65,13 +65,13 @@ pub(crate) fn fn_sig_for_fn_abi<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx
6565
let env_region = ty::ReLateBound(ty::INNERMOST, ty::BrEnv);
6666
let env_ty = tcx.mk_mut_ref(tcx.mk_region(env_region), ty);
6767

68-
let pin_did = tcx.require_lang_item(rustc_hir::LangItem::PinTypeLangItem, None);
68+
let pin_did = tcx.require_lang_item(rustc_hir::LangItem::Pin, None);
6969
let pin_adt_ref = tcx.adt_def(pin_did);
7070
let pin_substs = tcx.intern_substs(&[env_ty.into()]);
7171
let env_ty = tcx.mk_adt(pin_adt_ref, pin_substs);
7272

7373
sig.map_bound(|sig| {
74-
let state_did = tcx.require_lang_item(rustc_hir::LangItem::GeneratorStateLangItem, None);
74+
let state_did = tcx.require_lang_item(rustc_hir::LangItem::GeneratorState, None);
7575
let state_adt_ref = tcx.adt_def(state_did);
7676
let state_substs =
7777
tcx.intern_substs(&[sig.yield_ty.into(), sig.return_ty.into()]);
@@ -116,7 +116,7 @@ fn clif_sig_from_fn_sig<'tcx>(
116116
Abi::SysV64 => (CallConv::SystemV, sig.inputs().to_vec(), sig.output()),
117117
Abi::RustCall => {
118118
assert_eq!(sig.inputs().len(), 2);
119-
let extra_args = match sig.inputs().last().unwrap().kind {
119+
let extra_args = match sig.inputs().last().unwrap().kind() {
120120
ty::Tuple(ref tupled_arguments) => tupled_arguments,
121121
_ => bug!("argument to function with \"rust-call\" ABI is not a tuple"),
122122
};
@@ -307,7 +307,7 @@ impl<'tcx, B: Backend + 'static> FunctionCx<'_, 'tcx, B> {
307307
})
308308
.unzip();
309309
let return_layout = self.layout_of(return_ty);
310-
let return_tys = if let ty::Tuple(tup) = return_ty.kind {
310+
let return_tys = if let ty::Tuple(tup) = return_ty.kind() {
311311
tup.types().map(|ty| self.clif_type(ty).unwrap()).collect()
312312
} else {
313313
vec![self.clif_type(return_ty).unwrap()]
@@ -379,7 +379,7 @@ pub(crate) fn codegen_fn_prelude<'tcx>(
379379
// to reconstruct it into a tuple local variable, from multiple
380380
// individual function arguments.
381381

382-
let tupled_arg_tys = match arg_ty.kind {
382+
let tupled_arg_tys = match arg_ty.kind() {
383383
ty::Tuple(ref tys) => tys,
384384
_ => bug!("spread argument isn't a tuple?! but {:?}", arg_ty),
385385
};
@@ -500,7 +500,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
500500
let destination = destination.map(|(place, bb)| (trans_place(fx, place), bb));
501501

502502
// Handle special calls like instrinsics and empty drop glue.
503-
let instance = if let ty::FnDef(def_id, substs) = fn_ty.kind {
503+
let instance = if let ty::FnDef(def_id, substs) = *fn_ty.kind() {
504504
let instance = ty::Instance::resolve(fx.tcx, ty::ParamEnv::reveal_all(), def_id, substs)
505505
.unwrap()
506506
.unwrap()
@@ -553,7 +553,7 @@ pub(crate) fn codegen_terminator_call<'tcx>(
553553
let self_arg = trans_operand(fx, &args[0]);
554554
let pack_arg = trans_operand(fx, &args[1]);
555555

556-
let tupled_arguments = match pack_arg.layout().ty.kind {
556+
let tupled_arguments = match pack_arg.layout().ty.kind() {
557557
ty::Tuple(ref tupled_arguments) => tupled_arguments,
558558
_ => bug!("argument to function with \"rust-call\" ABI is not a tuple"),
559559
};
@@ -715,7 +715,7 @@ pub(crate) fn codegen_drop<'tcx>(
715715
);
716716
assert_eq!(fn_sig.output(), fx.tcx.mk_unit());
717717

718-
match ty.kind {
718+
match ty.kind() {
719719
ty::Dynamic(..) => {
720720
let (ptr, vtable) = drop_place.to_ptr_maybe_unsized();
721721
let ptr = ptr.get_addr(fx);

0 commit comments

Comments
 (0)