Skip to content

Commit 249624b

Browse files
committedOct 20, 2023
Auto merge of #116958 - oli-obk:coro, r=pnkfelix
rename Generator to Coroutine implements rust-lang/compiler-team#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`
2 parents 96027d9 + 258af95 commit 249624b

File tree

595 files changed

+3935
-3916
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

595 files changed

+3935
-3916
lines changed
 

‎compiler/rustc_abi/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1502,7 +1502,7 @@ pub struct LayoutS<FieldIdx: Idx, VariantIdx: Idx> {
15021502
/// Encodes information about multi-variant layouts.
15031503
/// Even with `Multiple` variants, a layout still has its own fields! Those are then
15041504
/// shared between all variants. One of them will be the discriminant,
1505-
/// but e.g. generators can have more.
1505+
/// but e.g. coroutines can have more.
15061506
///
15071507
/// To access all fields of this layout, both `fields` and the fields of the active variant
15081508
/// must be taken into account.

‎compiler/rustc_ast_lowering/messages.ftl

+5-5
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ ast_lowering_argument = argument
1111
ast_lowering_assoc_ty_parentheses =
1212
parenthesized generic arguments cannot be used in associated type constraints
1313
14-
ast_lowering_async_generators_not_supported =
15-
`async` generators are not yet supported
14+
ast_lowering_async_coroutines_not_supported =
15+
`async` coroutines are not yet supported
1616
1717
ast_lowering_async_non_move_closure_not_supported =
1818
`async` non-`move` closures with parameters are not currently supported
@@ -42,6 +42,9 @@ ast_lowering_clobber_abi_not_supported =
4242
4343
ast_lowering_closure_cannot_be_static = closures cannot be static
4444
45+
ast_lowering_coroutine_too_many_parameters =
46+
too many parameters for a coroutine (expected 0 or 1 parameters)
47+
4548
ast_lowering_does_not_support_modifiers =
4649
the `{$class_name}` register class does not support template modifiers
4750
@@ -53,9 +56,6 @@ ast_lowering_functional_record_update_destructuring_assignment =
5356
functional record updates are not allowed in destructuring assignments
5457
.suggestion = consider removing the trailing pattern
5558
56-
ast_lowering_generator_too_many_parameters =
57-
too many parameters for a generator (expected 0 or 1 parameters)
58-
5959
ast_lowering_generic_type_with_parentheses =
6060
parenthesized type parameters may only be used with a `Fn` trait
6161
.label = only `Fn` traits may use parentheses

0 commit comments

Comments
 (0)