3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ impl FlagComputation {
134
134
if should_remove_further_specializable {
135
135
self . flags -= TypeFlags :: STILL_FURTHER_SPECIALIZABLE ;
136
136
}
137
- self . add_flags ( TypeFlags :: HAS_TY_GENERATOR ) ;
137
+ self . add_flags ( TypeFlags :: HAS_TY_COROUTINE ) ;
138
138
}
139
139
140
140
& ty:: Closure ( _, args) => {
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ pub trait TypeVisitableExt<'tcx>: TypeVisitable<TyCtxt<'tcx>> {
48
48
self . has_type_flags ( TypeFlags :: HAS_TY_OPAQUE )
49
49
}
50
50
fn has_coroutines ( & self ) -> bool {
51
- self . has_type_flags ( TypeFlags :: HAS_TY_GENERATOR )
51
+ self . has_type_flags ( TypeFlags :: HAS_TY_COROUTINE )
52
52
}
53
53
fn references_error ( & self ) -> bool {
54
54
self . has_type_flags ( TypeFlags :: HAS_ERROR )
Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ bitflags! {
113
113
/// Does this value have `InferConst::Fresh`?
114
114
const HAS_CT_FRESH = 1 << 22 ;
115
115
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 ;
118
118
}
119
119
}
0 commit comments