Skip to content

Commit e4f13e3

Browse files
Remove HAS_TY_COROUTINE
1 parent e934975 commit e4f13e3

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

compiler/rustc_middle/src/ty/flags.rs

-1
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ impl FlagComputation {
128128
if should_remove_further_specializable {
129129
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
130130
}
131-
self.add_flags(TypeFlags::HAS_TY_COROUTINE);
132131
}
133132

134133
&ty::Closure(_, args) => {

compiler/rustc_type_ir/src/flags.rs

+1-4
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,7 @@ bitflags::bitflags! {
119119
/// Does this value have `InferConst::Fresh`?
120120
const HAS_CT_FRESH = 1 << 23;
121121

122-
/// Does this have `Coroutine` or `CoroutineWitness`?
123-
const HAS_TY_COROUTINE = 1 << 24;
124-
125122
/// Does this have any binders with bound vars (e.g. that need to be anonymized)?
126-
const HAS_BINDER_VARS = 1 << 25;
123+
const HAS_BINDER_VARS = 1 << 24;
127124
}
128125
}

compiler/rustc_type_ir/src/visit.rs

-4
Original file line numberDiff line numberDiff line change
@@ -269,10 +269,6 @@ pub trait TypeVisitableExt<I: Interner>: TypeVisitable<I> {
269269
self.has_type_flags(TypeFlags::HAS_TY_OPAQUE)
270270
}
271271

272-
fn has_coroutines(&self) -> bool {
273-
self.has_type_flags(TypeFlags::HAS_TY_COROUTINE)
274-
}
275-
276272
fn references_error(&self) -> bool {
277273
self.has_type_flags(TypeFlags::HAS_ERROR)
278274
}

0 commit comments

Comments
 (0)