rust/tests/ui/iterators
Oli Scherer 5fbdfc3e10
Add iter macro
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>
2025-06-03 10:52:32 -07:00
..
array-of-ranges.rs
array.rs
bound.rs
bound.stderr
collect-into-array.rs
collect-into-array.stderr
collect-into-slice.rs
collect-into-slice.stderr
float_iterator_hint.rs UI tests: add missing diagnostic kinds where possible 2025-04-08 23:06:31 +03:00
float_iterator_hint.stderr
generator.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_args.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_.stderr Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_fail.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_fail.stderr Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_fnonce.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_capture_no_lend.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_returned_from_fn.rs Add iter macro 2025-06-03 10:52:32 -07:00
generator_returned_from_fn.stderr Add iter macro 2025-06-03 10:52:32 -07:00
integral.rs
integral.stderr
into-iter-on-arrays-2018.rs
into-iter-on-arrays-2018.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
into-iter-on-arrays-2021.rs
into-iter-on-arrays-lint.fixed
into-iter-on-arrays-lint.rs
into-iter-on-arrays-lint.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
into-iter-on-boxed-slices-2021.rs
into-iter-on-boxed-slices-2021.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
into-iter-on-boxed-slices-2024.rs
into-iter-on-boxed-slices-lint.fixed
into-iter-on-boxed-slices-lint.rs
into-iter-on-boxed-slices-lint.stderr Show diff suggestion format on verbose replacement 2025-02-10 20:21:39 +00:00
into-iterator-type-inference-shift.rs
invalid-iterator-chain-fixable.fixed
invalid-iterator-chain-fixable.rs
invalid-iterator-chain-fixable.stderr
invalid-iterator-chain-with-int-infer.rs
invalid-iterator-chain-with-int-infer.stderr
invalid-iterator-chain.rs
invalid-iterator-chain.stderr
issue-28098.rs
issue-28098.stderr
issue-58952-filter-type-length.rs
iter-cloned-type-inference.rs
iter-count-overflow-debug.rs
iter-count-overflow-ndebug.rs
iter-macro-not-async-closure-simplified.narrow.stderr Add iter macro 2025-06-03 10:52:32 -07:00
iter-macro-not-async-closure-simplified.rs Add iter macro 2025-06-03 10:52:32 -07:00
iter-macro-not-async-closure-simplified.wide.stderr Add iter macro 2025-06-03 10:52:32 -07:00
iter-macro-not-async-closure.narrow.stderr Add iter macro 2025-06-03 10:52:32 -07:00
iter-macro-not-async-closure.rs Add iter macro 2025-06-03 10:52:32 -07:00
iter-macro-not-async-closure.stderr Add iter macro 2025-06-03 10:52:32 -07:00
iter-map-fold-type-length.rs
iter-position-overflow-debug.rs
iter-position-overflow-ndebug.rs
iter-range.rs
iter-step-overflow-debug.rs
iter-step-overflow-ndebug.rs
iter-sum-overflow-debug.rs
iter-sum-overflow-ndebug.rs
iter-sum-overflow-overflow-checks.rs
iterator-does-not-need-into-iter.rs
iterator-does-not-need-into-iter.stderr
ranges.rs
ranges.stderr
rsplit-clone.rs
skip-count-overflow.rs
string.rs
string.stderr
vec-on-unimplemented.fixed
vec-on-unimplemented.rs
vec-on-unimplemented.stderr