Skip to content

Commit a8551ab

Browse files
committed
Remove an unnecessary variable
1 parent bdc20e3 commit a8551ab

File tree

1 file changed

+1
-2
lines changed
  • compiler/rustc_mir/src/borrow_check/type_check

1 file changed

+1
-2
lines changed

compiler/rustc_mir/src/borrow_check/type_check/mod.rs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1297,7 +1297,6 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
12971297
return Ok(());
12981298
}
12991299

1300-
let infcx = self.infcx;
13011300
let param_env = self.param_env;
13021301
let body = self.body;
13031302
let mir_def_id = body.source.def_id().expect_local();
@@ -1380,7 +1379,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
13801379
locations,
13811380
ConstraintCategory::OpaqueType,
13821381
CustomTypeOp::new(
1383-
|_cx| {
1382+
|infcx| {
13841383
infcx.constrain_opaque_type(
13851384
opaque_type_key,
13861385
&opaque_decl,

0 commit comments

Comments
 (0)