Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 1ffc307

Browse files
committed
Rustup to rustc 1.47.0-nightly (bbebe73 2020-07-22)
1 parent 9b9a2e4 commit 1ffc307

File tree

4 files changed

+68
-33
lines changed

4 files changed

+68
-33
lines changed

build_sysroot/Cargo.lock

Lines changed: 64 additions & 29 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-07-17
1+
nightly-2020-07-23

src/abi/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub(crate) use self::returning::{can_return_to_ssa_var, codegen_return};
1515

1616
// Copied from https://github.com/rust-lang/rust/blob/b2c1a606feb1fbdb0ac0acba76f881ef172ed474/src/librustc_middle/ty/layout.rs#L2287
1717
pub(crate) fn fn_sig_for_fn_abi<'tcx>(tcx: TyCtxt<'tcx>, instance: Instance<'tcx>) -> ty::PolyFnSig<'tcx> {
18-
let ty = instance.monomorphic_ty(tcx);
18+
let ty = instance.ty(tcx, ParamEnv::reveal_all());
1919
match ty.kind {
2020
ty::FnDef(..) |
2121
// Shims currently have type FnPtr. Not sure this should remain.
@@ -660,7 +660,7 @@ pub(crate) fn codegen_drop<'tcx>(
660660
if let ty::InstanceDef::DropGlue(_, None) = drop_fn.def {
661661
// we don't actually need to drop anything
662662
} else {
663-
let drop_fn_ty = drop_fn.monomorphic_ty(fx.tcx);
663+
let drop_fn_ty = drop_fn.ty(fx.tcx, ParamEnv::reveal_all());
664664
let fn_sig = fx.tcx.normalize_erasing_late_bound_regions(
665665
ParamEnv::reveal_all(),
666666
&drop_fn_ty.fn_sig(fx.tcx),

src/constant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ fn data_id_for_static(
230230
) -> DataId {
231231
let instance = Instance::mono(tcx, def_id);
232232
let symbol_name = tcx.symbol_name(instance).name;
233-
let ty = instance.monomorphic_ty(tcx);
233+
let ty = instance.ty(tcx, ParamEnv::reveal_all());
234234
let is_mutable = if tcx.is_mutable_static(def_id) {
235235
true
236236
} else {

0 commit comments

Comments
 (0)