about summary refs log tree commit diff
path: root/compiler/rustc_builtin_macros/src/iter.rs
AgeCommit message (Collapse)AuthorLines
2025-08-09remove `P`Deadbeef-2/+1
2025-06-03Add `iter` macroOli Scherer-0/+53
This adds an `iter!` macro that can be used to create movable generators. This also adds a yield_expr feature so the `yield` keyword can be used within iter! macro bodies. This was needed because several unstable features each need `yield` expressions, so this allows us to stabilize them separately from any individual feature. Co-authored-by: Oli Scherer <github35764891676564198441@oli-obk.de> Co-authored-by: Jieyou Xu <jieyouxu@outlook.com> Co-authored-by: Travis Cross <tc@traviscross.com>