rust/compiler/rustc_parse/src
Matthias Krüger b1816833bd
Rollup merge of #105141 - ohno418:fix-ice-on-invalid-var-decl-in-macro-call, r=compiler-errors
Fix ICE on invalid variable declarations in macro calls

This fixes ICE that happens with invalid variable declarations in macro calls like:

```rust
macro_rules! m { ($s:stmt) => {} }
m! { var x }
m! { auto x }
m! { mut x }
```

Found this is because of not collecting tokens on recovery, so I changed to force collect them.

Fixes https://github.com/rust-lang/rust/issues/103529.
2022-12-04 16:25:32 +01:00
..
lexer Prefer doc comments over //-comments in compiler 2022-11-27 11:19:04 +00:00
parser Rollup merge of #105141 - ohno418:fix-ice-on-invalid-var-decl-in-macro-call, r=compiler-errors 2022-12-04 16:25:32 +01:00
errors.rs Match crate and slug names 2022-11-21 15:24:50 +01:00
lib.rs Split MacArgs in two. 2022-11-22 09:04:15 +11:00
validate_attr.rs Avoid unnecessary MetaItem/Attribute conversions. 2022-11-29 12:08:57 +11:00