Remove HAS_TY_COROUTINE
This commit is contained in:
parent
e934975339
commit
e4f13e3ccd
3 changed files with 1 additions and 9 deletions
|
@ -128,7 +128,6 @@ impl FlagComputation {
|
|||
if should_remove_further_specializable {
|
||||
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||
}
|
||||
self.add_flags(TypeFlags::HAS_TY_COROUTINE);
|
||||
}
|
||||
|
||||
&ty::Closure(_, args) => {
|
||||
|
|
|
@ -119,10 +119,7 @@ bitflags::bitflags! {
|
|||
/// Does this value have `InferConst::Fresh`?
|
||||
const HAS_CT_FRESH = 1 << 23;
|
||||
|
||||
/// Does this have `Coroutine` or `CoroutineWitness`?
|
||||
const HAS_TY_COROUTINE = 1 << 24;
|
||||
|
||||
/// Does this have any binders with bound vars (e.g. that need to be anonymized)?
|
||||
const HAS_BINDER_VARS = 1 << 25;
|
||||
const HAS_BINDER_VARS = 1 << 24;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -269,10 +269,6 @@ pub trait TypeVisitableExt<I: Interner>: TypeVisitable<I> {
|
|||
self.has_type_flags(TypeFlags::HAS_TY_OPAQUE)
|
||||
}
|
||||
|
||||
fn has_coroutines(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_TY_COROUTINE)
|
||||
}
|
||||
|
||||
fn references_error(&self) -> bool {
|
||||
self.has_type_flags(TypeFlags::HAS_ERROR)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue