Skip to content

Commit

Permalink
Remove an unnecessary variable
Browse files Browse the repository at this point in the history
  • Loading branch information
oli-obk committed Jul 22, 2021
1 parent bdc20e3 commit a8551ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_mir/src/borrow_check/type_check/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1297,7 +1297,6 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
return Ok(());
}

let infcx = self.infcx;
let param_env = self.param_env;
let body = self.body;
let mir_def_id = body.source.def_id().expect_local();
Expand Down Expand Up @@ -1380,7 +1379,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
locations,
ConstraintCategory::OpaqueType,
CustomTypeOp::new(
|_cx| {
|infcx| {
infcx.constrain_opaque_type(
opaque_type_key,
&opaque_decl,
Expand Down

0 comments on commit a8551ab

Please sign in to comment.