Skip to content

Commit e96ce20

Browse files
committedOct 20, 2023
s/generator/coroutine/
1 parent 6095683 commit e96ce20

File tree

468 files changed

+2201
-2197
lines changed

Some content is hidden

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

468 files changed

+2201
-2197
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)