Support the ${concat(...)} metavariable expression

I didn't follow rustc precisely, because I think it does some things wrongly (or they are FIXME), but I only allowed more code, not less. So we're all fine.
This commit is contained in:
Chayim Refael Friedman 2024-09-19 22:19:12 +03:00
parent 990c48cb0d
commit 8a50aecb07
9 changed files with 304 additions and 5 deletions

View file

@ -6,6 +6,11 @@
//! The tests for this functionality live in another crate:
//! `hir_def::macro_expansion_tests::mbe`.
#[cfg(not(feature = "in-rust-tree"))]
extern crate ra_ap_rustc_lexer as rustc_lexer;
#[cfg(feature = "in-rust-tree")]
extern crate rustc_lexer;
mod expander;
mod parser;