Skip to content

Commit

Permalink
Re-add generators as a removed feature and point to the new feature…
Browse files Browse the repository at this point in the history
… name
  • Loading branch information
oli-obk committed Oct 20, 2023
1 parent 82ffd58 commit 8c66e11
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions compiler/rustc_feature/src/removed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,10 @@ declare_features! (
/// Allows `#[doc(include = "some-file")]`.
(removed, external_doc, "1.54.0", Some(44732), None,
Some("use #[doc = include_str!(\"filename\")] instead, which handles macro invocations")),
/// Allows generators to be cloned.
(removed, generator_clone, "1.65.0", Some(95360), None, Some("renamed to `coroutine_clone`")),
/// Allows defining generators.
(removed, generators, "1.21.0", Some(43122), None, Some("renamed to `coroutine`")),
/// Allows `impl Trait` in bindings (`let`, `const`, `static`).
(removed, impl_trait_in_bindings, "1.55.0", Some(63065), None,
Some("the implementation was not maintainable, the feature may get reintroduced once the current refactorings are done")),
Expand Down
2 changes: 2 additions & 0 deletions compiler/rustc_span/src/symbol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -819,6 +819,8 @@ symbols! {
ge,
gen_future,
gen_kill,
generator_clone,
generators,
generic_arg_infer,
generic_assert,
generic_associated_types,
Expand Down

0 comments on commit 8c66e11

Please sign in to comment.