@@ -66,7 +66,7 @@ macro_rules! try_validation {
6666pub enum PathElem {
6767 Field ( Symbol ) ,
6868 Variant ( Symbol ) ,
69- GeneratoreState ( VariantIdx ) ,
69+ GeneratorState ( VariantIdx ) ,
7070 ClosureVar ( Symbol ) ,
7171 ArrayElem ( usize ) ,
7272 TupleElem ( usize ) ,
@@ -101,7 +101,7 @@ fn path_format(path: &Vec<PathElem>) -> String {
101101 match elem {
102102 Field ( name) => write ! ( out, ".{}" , name) ,
103103 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( ) ) ,
105105 ClosureVar ( name) => write ! ( out, ".<closure-var({})>" , name) ,
106106 TupleElem ( idx) => write ! ( out, ".{}" , idx) ,
107107 ArrayElem ( idx) => write ! ( out, "[{}]" , idx) ,
@@ -267,7 +267,7 @@ impl<'rt, 'a, 'mir, 'tcx, M: Machine<'a, 'mir, 'tcx>>
267267 let name = match old_op. layout . ty . sty {
268268 ty:: Adt ( adt, _) => PathElem :: Variant ( adt. variants [ variant_id] . ident . name ) ,
269269 // Generators also have variants
270- ty:: Generator ( ..) => PathElem :: GeneratoreState ( variant_id) ,
270+ ty:: Generator ( ..) => PathElem :: GeneratorState ( variant_id) ,
271271 _ => bug ! ( "Unexpected type with variant: {:?}" , old_op. layout. ty) ,
272272 } ;
273273 self . visit_elem ( new_op, name)
0 commit comments