@@ -66,7 +66,7 @@ macro_rules! try_validation {
66
66
pub enum PathElem {
67
67
Field ( Symbol ) ,
68
68
Variant ( Symbol ) ,
69
- GeneratoreState ( VariantIdx ) ,
69
+ GeneratorState ( VariantIdx ) ,
70
70
ClosureVar ( Symbol ) ,
71
71
ArrayElem ( usize ) ,
72
72
TupleElem ( usize ) ,
@@ -101,7 +101,7 @@ fn path_format(path: &Vec<PathElem>) -> String {
101
101
match elem {
102
102
Field ( name) => write ! ( out, ".{}" , name) ,
103
103
Variant ( name) => write ! ( out, ".<downcast-variant({})>" , name) ,
104
- GeneratoreState ( idx) => write ! ( out, ".<generator-state({})>" , idx. index( ) ) ,
104
+ GeneratorState ( idx) => write ! ( out, ".<generator-state({})>" , idx. index( ) ) ,
105
105
ClosureVar ( name) => write ! ( out, ".<closure-var({})>" , name) ,
106
106
TupleElem ( idx) => write ! ( out, ".{}" , idx) ,
107
107
ArrayElem ( idx) => write ! ( out, "[{}]" , idx) ,
@@ -267,7 +267,7 @@ impl<'rt, 'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>>
267
267
let name = match old_op. layout . ty . sty {
268
268
ty:: Adt ( adt, _) => PathElem :: Variant ( adt. variants [ variant_id] . ident . name ) ,
269
269
// Generators also have variants
270
- ty:: Generator ( ..) => PathElem :: GeneratoreState ( variant_id) ,
270
+ ty:: Generator ( ..) => PathElem :: GeneratorState ( variant_id) ,
271
271
_ => bug ! ( "Unexpected type with variant: {:?}" , old_op. layout. ty) ,
272
272
} ;
273
273
self . visit_elem ( new_op, name)
0 commit comments