6
6
//! [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html
7
7
8
8
use crate :: infer:: canonical:: {
9
- Canonical , CanonicalTyVarKind , CanonicalVarInfo , CanonicalVarKind , Canonicalized ,
10
- OriginalQueryValues ,
9
+ Canonical , CanonicalTyVarKind , CanonicalVarInfo , CanonicalVarKind , OriginalQueryValues ,
11
10
} ;
12
11
use crate :: infer:: InferCtxt ;
13
12
use rustc_middle:: ty:: flags:: FlagComputation ;
@@ -40,7 +39,7 @@ impl<'tcx> InferCtxt<'tcx> {
40
39
& self ,
41
40
value : V ,
42
41
query_state : & mut OriginalQueryValues < ' tcx > ,
43
- ) -> Canonicalized < ' tcx , V >
42
+ ) -> Canonical < ' tcx , V >
44
43
where
45
44
V : TypeFoldable < ' tcx > ,
46
45
{
@@ -59,7 +58,7 @@ impl<'tcx> InferCtxt<'tcx> {
59
58
& self ,
60
59
value : V ,
61
60
query_state : & mut OriginalQueryValues < ' tcx > ,
62
- ) -> Canonicalized < ' tcx , V >
61
+ ) -> Canonical < ' tcx , V >
63
62
where
64
63
V : TypeFoldable < ' tcx > ,
65
64
{
@@ -99,7 +98,7 @@ impl<'tcx> InferCtxt<'tcx> {
99
98
/// out the [chapter in the rustc dev guide][c].
100
99
///
101
100
/// [c]: https://rust-lang.github.io/chalk/book/canonical_queries/canonicalization.html#canonicalizing-the-query-result
102
- pub fn canonicalize_response < V > ( & self , value : V ) -> Canonicalized < ' tcx , V >
101
+ pub fn canonicalize_response < V > ( & self , value : V ) -> Canonical < ' tcx , V >
103
102
where
104
103
V : TypeFoldable < ' tcx > ,
105
104
{
@@ -113,7 +112,7 @@ impl<'tcx> InferCtxt<'tcx> {
113
112
)
114
113
}
115
114
116
- pub fn canonicalize_user_type_annotation < V > ( & self , value : V ) -> Canonicalized < ' tcx , V >
115
+ pub fn canonicalize_user_type_annotation < V > ( & self , value : V ) -> Canonical < ' tcx , V >
117
116
where
118
117
V : TypeFoldable < ' tcx > ,
119
118
{
@@ -135,7 +134,7 @@ impl<'tcx> InferCtxt<'tcx> {
135
134
& self ,
136
135
value : V ,
137
136
query_state : & mut OriginalQueryValues < ' tcx > ,
138
- ) -> Canonicalized < ' tcx , V >
137
+ ) -> Canonical < ' tcx , V >
139
138
where
140
139
V : TypeFoldable < ' tcx > ,
141
140
{
@@ -524,7 +523,7 @@ impl<'cx, 'tcx> Canonicalizer<'cx, 'tcx> {
524
523
tcx : TyCtxt < ' tcx > ,
525
524
canonicalize_region_mode : & dyn CanonicalizeMode ,
526
525
query_state : & mut OriginalQueryValues < ' tcx > ,
527
- ) -> Canonicalized < ' tcx , V >
526
+ ) -> Canonical < ' tcx , V >
528
527
where
529
528
V : TypeFoldable < ' tcx > ,
530
529
{
0 commit comments