@@ -23,12 +23,16 @@ pub struct Glb<'combine, 'infcx: 'combine, 'gcx: 'infcx+'tcx, 'tcx: 'infcx> {
23
23
}
24
24
25
25
impl < ' combine , ' infcx , ' gcx , ' tcx > Glb < ' combine , ' infcx , ' gcx , ' tcx > {
26
- pub fn new ( fields : & ' combine mut CombineFields < ' infcx , ' gcx , ' tcx > , a_is_expected : bool ) -> Glb < ' combine , ' infcx , ' gcx , ' tcx > {
26
+ pub fn new ( fields : & ' combine mut CombineFields < ' infcx , ' gcx , ' tcx > , a_is_expected : bool )
27
+ -> Glb < ' combine , ' infcx , ' gcx , ' tcx >
28
+ {
27
29
Glb { fields : fields, a_is_expected : a_is_expected }
28
30
}
29
31
}
30
32
31
- impl < ' combine , ' infcx , ' gcx , ' tcx > TypeRelation < ' infcx , ' gcx , ' tcx > for Glb < ' combine , ' infcx , ' gcx , ' tcx > {
33
+ impl < ' combine , ' infcx , ' gcx , ' tcx > TypeRelation < ' infcx , ' gcx , ' tcx >
34
+ for Glb < ' combine , ' infcx , ' gcx , ' tcx >
35
+ {
32
36
fn tag ( & self ) -> & ' static str { "Glb" }
33
37
34
38
fn tcx ( & self ) -> TyCtxt < ' infcx , ' gcx , ' tcx > { self . fields . tcx ( ) }
@@ -71,7 +75,9 @@ impl<'combine, 'infcx, 'gcx, 'tcx> TypeRelation<'infcx, 'gcx, 'tcx> for Glb<'com
71
75
}
72
76
}
73
77
74
- impl < ' combine , ' infcx , ' gcx , ' tcx > LatticeDir < ' infcx , ' gcx , ' tcx > for Glb < ' combine , ' infcx , ' gcx , ' tcx > {
78
+ impl < ' combine , ' infcx , ' gcx , ' tcx > LatticeDir < ' infcx , ' gcx , ' tcx >
79
+ for Glb < ' combine , ' infcx , ' gcx , ' tcx >
80
+ {
75
81
fn infcx ( & self ) -> & ' infcx InferCtxt < ' infcx , ' gcx , ' tcx > {
76
82
self . fields . infcx
77
83
}
0 commit comments