Remove an unnecessary variable
This commit is contained in:
parent
bdc20e372b
commit
a8551abd47
1 changed files with 1 additions and 2 deletions
|
@ -1297,7 +1297,6 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
|
||||||
return Ok(());
|
return Ok(());
|
||||||
}
|
}
|
||||||
|
|
||||||
let infcx = self.infcx;
|
|
||||||
let param_env = self.param_env;
|
let param_env = self.param_env;
|
||||||
let body = self.body;
|
let body = self.body;
|
||||||
let mir_def_id = body.source.def_id().expect_local();
|
let mir_def_id = body.source.def_id().expect_local();
|
||||||
|
@ -1380,7 +1379,7 @@ impl<'a, 'tcx> TypeChecker<'a, 'tcx> {
|
||||||
locations,
|
locations,
|
||||||
ConstraintCategory::OpaqueType,
|
ConstraintCategory::OpaqueType,
|
||||||
CustomTypeOp::new(
|
CustomTypeOp::new(
|
||||||
|_cx| {
|
|infcx| {
|
||||||
infcx.constrain_opaque_type(
|
infcx.constrain_opaque_type(
|
||||||
opaque_type_key,
|
opaque_type_key,
|
||||||
&opaque_decl,
|
&opaque_decl,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue