Skip to content

Commit 8c66e11

Browse files
committed
Re-add generators as a removed feature and point to the new feature name
1 parent 82ffd58 commit 8c66e11

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

compiler/rustc_feature/src/removed.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ declare_features! (
9696
/// Allows `#[doc(include = "some-file")]`.
9797
(removed, external_doc, "1.54.0", Some(44732), None,
9898
Some("use #[doc = include_str!(\"filename\")] instead, which handles macro invocations")),
99+
/// Allows generators to be cloned.
100+
(removed, generator_clone, "1.65.0", Some(95360), None, Some("renamed to `coroutine_clone`")),
101+
/// Allows defining generators.
102+
(removed, generators, "1.21.0", Some(43122), None, Some("renamed to `coroutine`")),
99103
/// Allows `impl Trait` in bindings (`let`, `const`, `static`).
100104
(removed, impl_trait_in_bindings, "1.55.0", Some(63065), None,
101105
Some("the implementation was not maintainable, the feature may get reintroduced once the current refactorings are done")),

compiler/rustc_span/src/symbol.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -819,6 +819,8 @@ symbols! {
819819
ge,
820820
gen_future,
821821
gen_kill,
822+
generator_clone,
823+
generators,
822824
generic_arg_infer,
823825
generic_assert,
824826
generic_associated_types,

0 commit comments

Comments
 (0)