Skip to content

Commit 8e264ab

Browse files
committed
s/Generator/Coroutine/
1 parent 2f461b7 commit 8e264ab

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Diff for: example/std_example.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
use std::arch::x86_64::*;
1313
use std::hint::black_box;
1414
use std::io::Write;
15-
use std::ops::Generator;
15+
use std::ops::Coroutine;
1616

1717
fn main() {
1818
println!("{:?}", std::env::args().collect::<Vec<_>>());

Diff for: scripts/test_rustc_tests.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ rm -r tests/run-make/compressed-debuginfo
157157

158158
rm -r tests/run-make/extern-fn-explicit-align # argument alignment not yet supported
159159

160-
rm tests/ui/codegen/subtyping-enforces-type-equality.rs # assert_assignable bug with Generator's
160+
rm tests/ui/codegen/subtyping-enforces-type-equality.rs # assert_assignable bug with Coroutine's
161161

162162
# bugs in the test suite
163163
# ======================

Diff for: src/base.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -478,7 +478,7 @@ fn codegen_fn_body(fx: &mut FunctionCx<'_, '_, '_>, start_block: Block) {
478478
TerminatorKind::Yield { .. }
479479
| TerminatorKind::FalseEdge { .. }
480480
| TerminatorKind::FalseUnwind { .. }
481-
| TerminatorKind::GeneratorDrop => {
481+
| TerminatorKind::CoroutineDrop => {
482482
bug!("shouldn't exist at codegen {:?}", bb_data.terminator());
483483
}
484484
TerminatorKind::Drop { place, target, unwind: _, replace: _ } => {

Diff for: src/constant.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -510,7 +510,7 @@ pub(crate) fn mir_operand_get_const_val<'tcx>(
510510
| TerminatorKind::Drop { .. }
511511
| TerminatorKind::Assert { .. } => {}
512512
TerminatorKind::Yield { .. }
513-
| TerminatorKind::GeneratorDrop
513+
| TerminatorKind::CoroutineDrop
514514
| TerminatorKind::FalseEdge { .. }
515515
| TerminatorKind::FalseUnwind { .. } => unreachable!(),
516516
TerminatorKind::InlineAsm { .. } => return None,

0 commit comments

Comments
 (0)