Deduplicate visitor.
This commit is contained in:
parent
d470ac9334
commit
3afec247cb
2 changed files with 22 additions and 99 deletions
|
@ -423,9 +423,9 @@ impl<'tcx> InferCtxt<'tcx> {
|
|||
//
|
||||
// We ignore any type parameters because impl trait values are assumed to
|
||||
// capture all the in-scope type parameters.
|
||||
struct ConstrainOpaqueTypeRegionVisitor<'tcx, OP> {
|
||||
tcx: TyCtxt<'tcx>,
|
||||
op: OP,
|
||||
pub struct ConstrainOpaqueTypeRegionVisitor<'tcx, OP: FnMut(ty::Region<'tcx>)> {
|
||||
pub tcx: TyCtxt<'tcx>,
|
||||
pub op: OP,
|
||||
}
|
||||
|
||||
impl<'tcx, OP> TypeVisitor<'tcx> for ConstrainOpaqueTypeRegionVisitor<'tcx, OP>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue