mirror of
https://github.com/rust-lang/rust.git
synced 2025-06-05 11:48:30 +00:00
Remove HAS_TY_COROUTINE
This commit is contained in:
parent
e934975339
commit
e4f13e3ccd
@ -128,7 +128,6 @@ impl FlagComputation {
|
|||||||
if should_remove_further_specializable {
|
if should_remove_further_specializable {
|
||||||
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
|
||||||
}
|
}
|
||||||
self.add_flags(TypeFlags::HAS_TY_COROUTINE);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&ty::Closure(_, args) => {
|
&ty::Closure(_, args) => {
|
||||||
|
@ -119,10 +119,7 @@ bitflags::bitflags! {
|
|||||||
/// Does this value have `InferConst::Fresh`?
|
/// Does this value have `InferConst::Fresh`?
|
||||||
const HAS_CT_FRESH = 1 << 23;
|
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)?
|
/// 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)
|
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 {
|
fn references_error(&self) -> bool {
|
||||||
self.has_type_flags(TypeFlags::HAS_ERROR)
|
self.has_type_flags(TypeFlags::HAS_ERROR)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user