diff options
| author | bors <bors@rust-lang.org> | 2023-10-20 21:20:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-20 21:20:57 +0000 |
| commit | 249624b5043013d18c00f0401ca431c1a6baa8cd (patch) | |
| tree | 1c081d1e77b79edf9043511fc7ef88ccdf0e9d67 /compiler/rustc_codegen_gcc/example/std_example.rs | |
| parent | 96027d945b9d8cae622a2fa4e70d8040be2964f3 (diff) | |
| parent | 258af95a60d7ef05cb9531e675b4d05494676f85 (diff) | |
| download | rust-249624b5043013d18c00f0401ca431c1a6baa8cd.tar.gz rust-249624b5043013d18c00f0401ca431c1a6baa8cd.zip | |
Auto merge of #116958 - oli-obk:coro, r=pnkfelix
rename Generator to Coroutine implements https://github.com/rust-lang/compiler-team/issues/682 While I did an automated replacement, I went through all changes manually to avoid renaming things like "id generators", "code generator", ... I renamed files where that was necessary due to the contents referring to the crate name itself (mir opt, codegen or debuginfo tests), or required by tidy (feature gate docs) * [x] rename various remaining abbreviated references to generators. * [x] rename files * [x] rename folders * [x] add renamed feature: `generators`, ... r? `@ghost`
Diffstat (limited to 'compiler/rustc_codegen_gcc/example/std_example.rs')
| -rw-r--r-- | compiler/rustc_codegen_gcc/example/std_example.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_gcc/example/std_example.rs b/compiler/rustc_codegen_gcc/example/std_example.rs index 18f2ddcde12..dc0aad04a78 100644 --- a/compiler/rustc_codegen_gcc/example/std_example.rs +++ b/compiler/rustc_codegen_gcc/example/std_example.rs @@ -1,9 +1,9 @@ -#![feature(core_intrinsics, generators, generator_trait, is_sorted)] +#![feature(core_intrinsics, coroutines, coroutine_trait, is_sorted)] #[cfg(feature="master")] use std::arch::x86_64::*; use std::io::Write; -use std::ops::Generator; +use std::ops::Coroutine; extern { pub fn printf(format: *const i8, ...) -> i32; |
