File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ impl FlagComputation {
134134                if  should_remove_further_specializable { 
135135                    self . flags  -= TypeFlags :: STILL_FURTHER_SPECIALIZABLE ; 
136136                } 
137-                 self . add_flags ( TypeFlags :: HAS_TY_GENERATOR ) ; 
137+                 self . add_flags ( TypeFlags :: HAS_TY_COROUTINE ) ; 
138138            } 
139139
140140            & ty:: Closure ( _,  args)  => { 
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub trait TypeVisitableExt<'tcx>: TypeVisitable<TyCtxt<'tcx>> {
4848        self . has_type_flags ( TypeFlags :: HAS_TY_OPAQUE ) 
4949    } 
5050    fn  has_coroutines ( & self )  -> bool  { 
51-         self . has_type_flags ( TypeFlags :: HAS_TY_GENERATOR ) 
51+         self . has_type_flags ( TypeFlags :: HAS_TY_COROUTINE ) 
5252    } 
5353    fn  references_error ( & self )  -> bool  { 
5454        self . has_type_flags ( TypeFlags :: HAS_ERROR ) 
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ bitflags! {
113113        /// Does this value have `InferConst::Fresh`? 
114114const  HAS_CT_FRESH                 = 1  << 22 ; 
115115
116-         /// Does this have `Generator ` or `GeneratorWitness `? 
117- const  HAS_TY_GENERATOR             = 1  << 23 ; 
116+         /// Does this have `Coroutine ` or `CoroutineWitness `? 
117+ const  HAS_TY_COROUTINE             = 1  << 23 ; 
118118    } 
119119} 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments