We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c122e71 commit c70c0f1Copy full SHA for c70c0f1
compiler/rustc_mir_build/src/build/expr/stmt.rs
@@ -42,7 +42,7 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
42
43
// Generate better code for things that don't need to be
44
// dropped.
45
- if lhs_expr.ty.needs_drop(this.tcx, ty::TypingEnv::from_param_env(this.param_env)) {
+ if lhs_expr.ty.needs_drop(this.tcx, this.infcx.typing_env(this.param_env)) {
46
let rhs = unpack!(block = this.as_local_rvalue(block, rhs));
47
let lhs = unpack!(block = this.as_place(block, lhs));
48
block =
0 commit comments