Skip to content

Commit 49d4540

Browse files
authored
Unrolled build for rust-lang#117221
Rollup merge of rust-lang#117221 - fmease:TypeFlags-HAS_TY_GENERATOR-to-COROUTINE, r=lqd Rename type flag `HAS_TY_GENERATOR` to `HAS_TY_COROUTINE` r? oli-obk
2 parents 698db85 + b1b1458 commit 49d4540

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

compiler/rustc_middle/src/ty/flags.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ impl FlagComputation {
134134
if should_remove_further_specializable {
135135
self.flags -= TypeFlags::STILL_FURTHER_SPECIALIZABLE;
136136
}
137-
self.add_flags(TypeFlags::HAS_TY_GENERATOR);
137+
self.add_flags(TypeFlags::HAS_TY_COROUTINE);
138138
}
139139

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

compiler/rustc_middle/src/ty/visit.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ pub trait TypeVisitableExt<'tcx>: TypeVisitable<TyCtxt<'tcx>> {
4848
self.has_type_flags(TypeFlags::HAS_TY_OPAQUE)
4949
}
5050
fn has_coroutines(&self) -> bool {
51-
self.has_type_flags(TypeFlags::HAS_TY_GENERATOR)
51+
self.has_type_flags(TypeFlags::HAS_TY_COROUTINE)
5252
}
5353
fn references_error(&self) -> bool {
5454
self.has_type_flags(TypeFlags::HAS_ERROR)

compiler/rustc_type_ir/src/flags.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ bitflags! {
113113
/// Does this value have `InferConst::Fresh`?
114114
const HAS_CT_FRESH = 1 << 22;
115115

116-
/// Does this have `Generator` or `GeneratorWitness`?
117-
const HAS_TY_GENERATOR = 1 << 23;
116+
/// Does this have `Coroutine` or `CoroutineWitness`?
117+
const HAS_TY_COROUTINE = 1 << 23;
118118
}
119119
}

0 commit comments

Comments
 (0)