Replace type flag HAS_TY_GENERATOR with HAS_TY_COROUTINE
This commit is contained in:
parent
9ab0749ce3
commit
b1b1458233
@ -134,7 +134,7 @@ fn add_kind(&mut self, kind: &ty::TyKind<'_>) {
|
||||
if should_remove_further_specializable {
|
||||
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||
}
|
||||
self.add_flags(TypeFlags::HAS_TY_GENERATOR);
|
||||
self.add_flags(TypeFlags::HAS_TY_COROUTINE);
|
||||
}
|
||||
|
||||
&ty::Closure(_, args) => {
|
||||
|
@ -48,7 +48,7 @@ fn has_opaque_types(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_TY_OPAQUE)
|
||||
}
|
||||
fn has_coroutines(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_TY_GENERATOR)
|
||||
self.has_type_flags(TypeFlags::HAS_TY_COROUTINE)
|
||||
}
|
||||
fn references_error(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_ERROR)
|
||||
|
@ -113,7 +113,7 @@ pub struct TypeFlags: u32 {
|
||||
/// Does this value have `InferConst::Fresh`?
|
||||
const HAS_CT_FRESH = 1 << 22;
|
||||
|
||||
/// Does this have `Generator` or `GeneratorWitness`?
|
||||
const HAS_TY_GENERATOR = 1 << 23;
|
||||
/// Does this have `Coroutine` or `CoroutineWitness`?
|
||||
const HAS_TY_COROUTINE = 1 << 23;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user