1
- use crate :: infer:: canonical:: { Canonicalized , CanonicalizedQueryResponse } ;
1
+ use crate :: infer:: canonical:: { Canonical , CanonicalQueryResponse } ;
2
2
use crate :: traits:: query:: Fallible ;
3
3
use rustc_middle:: ty:: fold:: TypeFoldable ;
4
4
use rustc_middle:: ty:: { self , Lift , ParamEnvAnd , Ty , TyCtxt } ;
@@ -18,51 +18,51 @@ where
18
18
19
19
fn perform_query (
20
20
tcx : TyCtxt < ' tcx > ,
21
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Self > > ,
22
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self :: QueryResponse > > {
21
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Self > > ,
22
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self :: QueryResponse > > {
23
23
T :: type_op_method ( tcx, canonicalized)
24
24
}
25
25
}
26
26
27
27
pub trait Normalizable < ' tcx > : fmt:: Debug + TypeFoldable < ' tcx > + Lift < ' tcx > + Copy {
28
28
fn type_op_method (
29
29
tcx : TyCtxt < ' tcx > ,
30
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
31
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self > > ;
30
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
31
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self > > ;
32
32
}
33
33
34
34
impl < ' tcx > Normalizable < ' tcx > for Ty < ' tcx > {
35
35
fn type_op_method (
36
36
tcx : TyCtxt < ' tcx > ,
37
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
38
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self > > {
37
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
38
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self > > {
39
39
tcx. type_op_normalize_ty ( canonicalized)
40
40
}
41
41
}
42
42
43
43
impl < ' tcx > Normalizable < ' tcx > for ty:: Predicate < ' tcx > {
44
44
fn type_op_method (
45
45
tcx : TyCtxt < ' tcx > ,
46
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
47
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self > > {
46
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
47
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self > > {
48
48
tcx. type_op_normalize_predicate ( canonicalized)
49
49
}
50
50
}
51
51
52
52
impl < ' tcx > Normalizable < ' tcx > for ty:: PolyFnSig < ' tcx > {
53
53
fn type_op_method (
54
54
tcx : TyCtxt < ' tcx > ,
55
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
56
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self > > {
55
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
56
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self > > {
57
57
tcx. type_op_normalize_poly_fn_sig ( canonicalized)
58
58
}
59
59
}
60
60
61
61
impl < ' tcx > Normalizable < ' tcx > for ty:: FnSig < ' tcx > {
62
62
fn type_op_method (
63
63
tcx : TyCtxt < ' tcx > ,
64
- canonicalized : Canonicalized < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
65
- ) -> Fallible < CanonicalizedQueryResponse < ' tcx , Self > > {
64
+ canonicalized : Canonical < ' tcx , ParamEnvAnd < ' tcx , Normalize < Self > > > ,
65
+ ) -> Fallible < CanonicalQueryResponse < ' tcx , Self > > {
66
66
tcx. type_op_normalize_fn_sig ( canonicalized)
67
67
}
68
68
}
0 commit comments