rust/compiler/rustc_builtin_macros/src
Matthias Krüger 27a894f86f
Rollup merge of #137725 - oli-obk:i-want-to-move-it-move-it, r=compiler-errors,traviscross
Add `iter` macro

See related discussion in https://rust-lang.zulipchat.com/#narrow/channel/481571-t-lang.2Fgen/topic/iter!.20macro/near/500784563

very little error case testing so far, but the success path works.

There is also no `IterFn` trait yet, as T-lang didn't consider it something urgently needed I think we can implement it in follow-up PRs.

r? lang for the tests, `@compiler-errors` for the impl
2025-06-03 21:53:35 +02:00
..
assert Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
deriving Rollup merge of #141724 - Sol-Ell:issue-141141-fix, r=nnethercote 2025-06-03 15:00:32 +02:00
format_foreign Rustfmt 2025-02-08 22:12:13 +00:00
alloc_error_handler.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
asm.rs move asm parsing code into rustc_parse 2025-05-27 09:44:10 +02:00
assert.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
autodiff.rs Update UI tests 2025-05-21 07:24:43 +00:00
cfg_accessible.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
cfg_eval.rs Remove TokenStream::flattened and InvisibleOrigin::FlattenToken. 2025-04-02 16:16:51 +11:00
cfg.rs Speed up Parser::expected_token_types. 2024-12-19 16:05:41 +11:00
cmdline_attrs.rs Improve -Z crate-attr diagnostics 2025-04-13 16:46:02 -04:00
compile_error.rs Reformat use declarations. 2024-07-29 08:26:52 +10:00
concat_bytes.rs Reformat using the new identifier sorting from rustfmt 2024-09-22 19:11:29 -04:00
concat_idents.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
concat.rs Re-export more rustc_span::symbol things from rustc_span. 2024-12-18 13:38:53 +11:00
contracts.rs Fix imports, remove attrs for unused_* 2025-02-10 20:15:30 +00:00
define_opaque.rs Test define opaques in extern items 2025-03-25 16:44:59 +00:00
derive.rs Use Ident::dummy() in dummy_annotatable. 2025-03-25 16:14:27 +11:00
edition_panic.rs use slice::contains where applicable 2025-03-28 12:21:21 +00:00
env.rs Remove AstDeref. 2025-05-10 08:58:47 +10:00
errors.rs Rollup merge of #140697 - Sa4dUs:split-autodiff, r=ZuseZ4 2025-05-28 10:28:08 -04:00
format_foreign.rs Simplify printf and shell format suggestions 2025-03-06 13:55:05 -08:00
format.rs Remove duplicate impl of string unescape 2025-05-06 10:00:22 +00:00
global_allocator.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
iter.rs Add iter macro 2025-06-03 10:52:32 -07:00
lib.rs Add iter macro 2025-06-03 10:52:32 -07:00
log_syntax.rs Adjust some pubs. 2024-04-26 13:29:20 +10:00
pattern_type.rs Add or-patterns to pattern types 2025-04-28 07:50:18 +00:00
proc_macro_harness.rs Rename some name variables as ident. 2025-04-10 09:30:55 +10:00
source_util.rs tree-wide: parallel: Fully removed all Lrc, replaced with Arc 2025-02-03 13:25:57 +03:00
standard_library_imports.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
test_harness.rs avoid some usages of &mut P<T> in AST visitors 2025-05-29 12:54:55 +08:00
test.rs Move ast::Item::ident into ast::ItemKind. 2025-04-01 14:08:57 +11:00
trace_macros.rs Rollup merge of #134161 - nnethercote:overhaul-token-cursors, r=spastorino 2024-12-18 22:56:53 +08:00
util.rs Account for format_args in HiddenUnicodeCodepoints lint 2024-12-31 05:03:22 +00:00