diff --git a/patches/0015-Remove-usage-of-unsized-locals.patch b/patches/0015-Remove-usage-of-unsized-locals.patch index 2f104ad5b25..da75a44fa3b 100644 --- a/patches/0015-Remove-usage-of-unsized-locals.patch +++ b/patches/0015-Remove-usage-of-unsized-locals.patch @@ -41,9 +41,9 @@ index f6dee7c..0c6a8c0 100644 - } -} - - /// `FnBox` is a version of the `FnOnce` intended for use with boxed - /// closure objects. The idea is that where one would normally store a - /// `Box` in a data structure, you should use + /// `FnBox` is deprecated and will be removed. + /// `Box` can be called directly, since Rust 1.35.0. + /// diff --git a/src/libstd/sys_common/at_exit_imp.rs b/src/libstd/sys_common/at_exit_imp.rs index 1181b86..20f9251 100644 --- a/src/libstd/sys_common/at_exit_imp.rs diff --git a/src/constant.rs b/src/constant.rs index 282f429d74d..c0827941d2c 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -65,7 +65,7 @@ pub fn trans_promoted<'a, 'tcx: 'a>( })) { Ok(const_) => { - let cplace = trans_const_place(fx, const_); + let cplace = trans_const_place(fx, *const_); debug_assert_eq!(cplace.layout(), fx.layout_of(dest_ty)); cplace } @@ -100,7 +100,7 @@ pub fn force_eval_const<'a, 'tcx: 'a>( instance, promoted: None, }; - fx.tcx.const_eval(param_env.and(cid)).unwrap() + *fx.tcx.const_eval(param_env.and(cid)).unwrap() } _ => *fx.monomorphize(&const_), }