@@ -180,7 +180,7 @@ impl Qualifs<'mir, 'tcx> {
180
180
}
181
181
}
182
182
183
- pub struct Validator < ' mir , ' tcx > {
183
+ pub struct Checker < ' mir , ' tcx > {
184
184
ccx : & ' mir ConstCx < ' mir , ' tcx > ,
185
185
qualifs : Qualifs < ' mir , ' tcx > ,
186
186
@@ -194,17 +194,17 @@ pub struct Validator<'mir, 'tcx> {
194
194
secondary_errors : Vec < Diagnostic > ,
195
195
}
196
196
197
- impl Deref for Validator < ' mir , ' tcx > {
197
+ impl Deref for Checker < ' mir , ' tcx > {
198
198
type Target = ConstCx < ' mir , ' tcx > ;
199
199
200
200
fn deref ( & self ) -> & Self :: Target {
201
201
& self . ccx
202
202
}
203
203
}
204
204
205
- impl Validator < ' mir , ' tcx > {
205
+ impl Checker < ' mir , ' tcx > {
206
206
pub fn new ( ccx : & ' mir ConstCx < ' mir , ' tcx > ) -> Self {
207
- Validator {
207
+ Checker {
208
208
span : ccx. body . span ,
209
209
ccx,
210
210
qualifs : Default :: default ( ) ,
@@ -477,7 +477,7 @@ impl Validator<'mir, 'tcx> {
477
477
}
478
478
}
479
479
480
- impl Visitor < ' tcx > for Validator < ' mir , ' tcx > {
480
+ impl Visitor < ' tcx > for Checker < ' mir , ' tcx > {
481
481
fn visit_basic_block_data ( & mut self , bb : BasicBlock , block : & BasicBlockData < ' tcx > ) {
482
482
trace ! ( "visit_basic_block_data: bb={:?} is_cleanup={:?}" , bb, block. is_cleanup) ;
483
483
0 commit comments