rust/compiler/rustc_parse/src/parser
Nadrieril 0bfebc6105 Detect attempts to expand a macro to a match arm again
Because a macro invocation can expand to a never pattern, we can't rule
out a `arm!(),` arm at parse time. Instead we detect that case at
expansion time, if the macro tries to output a pattern followed by `=>`.
2023-12-03 12:25:46 +01:00
..
attr_wrapper.rs Adjust to_attr_token_stream. 2023-09-06 17:12:07 +10:00
attr.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
diagnostics.rs Detect attempts to expand a macro to a match arm again 2023-12-03 12:25:46 +01:00
expr.rs Parse a pattern with no arm 2023-12-03 12:25:46 +01:00
generics.rs fix couple of clippy findings: 2023-07-23 10:50:14 +02:00
item.rs Always emit help when failing to parse enum variant 2023-11-29 18:47:32 +00:00
mod.rs Bubble parse error when expecting ) 2023-11-29 18:47:31 +00:00
nonterminal.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
pat.rs Detect attempts to expand a macro to a match arm again 2023-12-03 12:25:46 +01:00
path.rs More detail when expecting expression but encountering bad macro argument 2023-11-16 16:19:04 +00:00
stmt.rs Rollup merge of #118394 - nnethercote:rm-hir-Ops, r=cjgillot 2023-11-29 04:23:23 +01:00
ty.rs Add Span to TraitBoundModifier 2023-11-24 14:32:05 +00:00