Skip to content

Commit c70c0f1

Browse files
committed
w
1 parent c122e71 commit c70c0f1

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_mir_build/src/build/expr

1 file changed

+1
-1
lines changed

compiler/rustc_mir_build/src/build/expr/stmt.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
4242

4343
// Generate better code for things that don't need to be
4444
// dropped.
45-
if lhs_expr.ty.needs_drop(this.tcx, ty::TypingEnv::from_param_env(this.param_env)) {
45+
if lhs_expr.ty.needs_drop(this.tcx, this.infcx.typing_env(this.param_env)) {
4646
let rhs = unpack!(block = this.as_local_rvalue(block, rhs));
4747
let lhs = unpack!(block = this.as_place(block, lhs));
4848
block =

0 commit comments

Comments
 (0)