diff options
| author | Michael Goulet <michael@errs.io> | 2025-03-23 16:37:27 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-03-23 18:03:09 +0000 |
| commit | e4f13e3ccd143b866044f7875d3caf866cfa66fd (patch) | |
| tree | babc2468b5c8a72ddf22bcd31ed0c284684f95c6 | |
| parent | e934975339d772c2018f558b0963108f12376255 (diff) | |
| download | rust-e4f13e3ccd143b866044f7875d3caf866cfa66fd.tar.gz rust-e4f13e3ccd143b866044f7875d3caf866cfa66fd.zip | |
Remove HAS_TY_COROUTINE
| -rw-r--r-- | compiler/rustc_middle/src/ty/flags.rs | 1 | ||||
| -rw-r--r-- | compiler/rustc_type_ir/src/flags.rs | 5 | ||||
| -rw-r--r-- | compiler/rustc_type_ir/src/visit.rs | 4 |
3 files changed, 1 insertions, 9 deletions
diff --git a/compiler/rustc_middle/src/ty/flags.rs b/compiler/rustc_middle/src/ty/flags.rs index abfc5463c8f..8d5a213b746 100644 --- a/compiler/rustc_middle/src/ty/flags.rs +++ b/compiler/rustc_middle/src/ty/flags.rs @@ -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) => { diff --git a/compiler/rustc_type_ir/src/flags.rs b/compiler/rustc_type_ir/src/flags.rs index 81aa4a1f19e..fe401b11f39 100644 --- a/compiler/rustc_type_ir/src/flags.rs +++ b/compiler/rustc_type_ir/src/flags.rs @@ -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; } } diff --git a/compiler/rustc_type_ir/src/visit.rs b/compiler/rustc_type_ir/src/visit.rs index 119b658a2bf..2285e0e75de 100644 --- a/compiler/rustc_type_ir/src/visit.rs +++ b/compiler/rustc_type_ir/src/visit.rs @@ -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) } |
