Skip to content

Commit 67b28ac

Browse files
committed
s/Generator/Coroutine/
1 parent e1cb818 commit 67b28ac

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

example/std_example.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#[cfg(feature="master")]
44
use std::arch::x86_64::*;
55
use std::io::Write;
6-
use std::ops::Generator;
6+
use std::ops::Coroutine;
77

88
extern {
99
pub fn printf(format: *const i8, ...) -> i32;

src/type_of.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ fn uncached_gcc_type<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, layout: TyAndLayout
8787
// FIXME(eddyb) producing readable type names for trait objects can result
8888
// in problematically distinct types due to HRTB and subtyping (see #47638).
8989
// ty::Dynamic(..) |
90-
ty::Adt(..) | ty::Closure(..) | ty::Foreign(..) | ty::Generator(..) | ty::Str
90+
ty::Adt(..) | ty::Closure(..) | ty::Foreign(..) | ty::Coroutine(..) | ty::Str
9191
if !cx.sess().fewer_names() =>
9292
{
9393
let mut name = with_no_trimmed_paths!(layout.ty.to_string());
@@ -98,10 +98,10 @@ fn uncached_gcc_type<'gcc, 'tcx>(cx: &CodegenCx<'gcc, 'tcx>, layout: TyAndLayout
9898
write!(&mut name, "::{}", def.variant(index).name).unwrap();
9999
}
100100
}
101-
if let (&ty::Generator(_, _, _), &Variants::Single { index }) =
101+
if let (&ty::Coroutine(_, _, _), &Variants::Single { index }) =
102102
(layout.ty.kind(), &layout.variants)
103103
{
104-
write!(&mut name, "::{}", ty::GeneratorArgs::variant_name(index)).unwrap();
104+
write!(&mut name, "::{}", ty::CoroutineArgs::variant_name(index)).unwrap();
105105
}
106106
Some(name)
107107
}

0 commit comments

Comments
 (0)