@@ -44,7 +44,7 @@ use ty::{self, CanonicalVar, Lift, Region, List, TyCtxt};
44
44
45
45
mod canonicalizer;
46
46
47
- pub mod query_result ;
47
+ pub mod query_response ;
48
48
49
49
mod substitute;
50
50
@@ -118,10 +118,10 @@ pub enum CanonicalTyVarKind {
118
118
}
119
119
120
120
/// After we execute a query with a canonicalized key, we get back a
121
- /// `Canonical<QueryResult <..>>`. You can use
121
+ /// `Canonical<QueryResponse <..>>`. You can use
122
122
/// `instantiate_query_result` to access the data in this result.
123
123
#[ derive( Clone , Debug ) ]
124
- pub struct QueryResult < ' tcx , R > {
124
+ pub struct QueryResponse < ' tcx , R > {
125
125
pub var_values : CanonicalVarValues < ' tcx > ,
126
126
pub region_constraints : Vec < QueryRegionConstraint < ' tcx > > ,
127
127
pub certainty : Certainty ,
@@ -130,8 +130,8 @@ pub struct QueryResult<'tcx, R> {
130
130
131
131
pub type Canonicalized < ' gcx , V > = Canonical < ' gcx , <V as Lift < ' gcx > >:: Lifted > ;
132
132
133
- pub type CanonicalizedQueryResult < ' gcx , T > =
134
- Lrc < Canonical < ' gcx , QueryResult < ' gcx , <T as Lift < ' gcx > >:: Lifted > > > ;
133
+ pub type CanonicalizedQueryResponse < ' gcx , T > =
134
+ Lrc < Canonical < ' gcx , QueryResponse < ' gcx , <T as Lift < ' gcx > >:: Lifted > > > ;
135
135
136
136
/// Indicates whether or not we were able to prove the query to be
137
137
/// true.
@@ -168,7 +168,7 @@ impl Certainty {
168
168
}
169
169
}
170
170
171
- impl < ' tcx , R > QueryResult < ' tcx , R > {
171
+ impl < ' tcx , R > QueryResponse < ' tcx , R > {
172
172
pub fn is_proven ( & self ) -> bool {
173
173
self . certainty . is_proven ( )
174
174
}
@@ -178,7 +178,7 @@ impl<'tcx, R> QueryResult<'tcx, R> {
178
178
}
179
179
}
180
180
181
- impl < ' tcx , R > Canonical < ' tcx , QueryResult < ' tcx , R > > {
181
+ impl < ' tcx , R > Canonical < ' tcx , QueryResponse < ' tcx , R > > {
182
182
pub fn is_proven ( & self ) -> bool {
183
183
self . value . is_proven ( )
184
184
}
@@ -351,14 +351,14 @@ BraceStructTypeFoldableImpl! {
351
351
}
352
352
353
353
BraceStructTypeFoldableImpl ! {
354
- impl <' tcx, R > TypeFoldable <' tcx> for QueryResult <' tcx, R > {
354
+ impl <' tcx, R > TypeFoldable <' tcx> for QueryResponse <' tcx, R > {
355
355
var_values, region_constraints, certainty, value
356
356
} where R : TypeFoldable <' tcx>,
357
357
}
358
358
359
359
BraceStructLiftImpl ! {
360
- impl <' a, ' tcx, R > Lift <' tcx> for QueryResult <' a, R > {
361
- type Lifted = QueryResult <' tcx, R :: Lifted >;
360
+ impl <' a, ' tcx, R > Lift <' tcx> for QueryResponse <' a, R > {
361
+ type Lifted = QueryResponse <' tcx, R :: Lifted >;
362
362
var_values, region_constraints, certainty, value
363
363
} where R : Lift <' tcx>
364
364
}
0 commit comments