Trevor Gross
e6f0caf197
Rollup merge of #127542 - c410-f3r:concat-again, r=petrochenkov
[`macro_metavar_expr_concat`] Add support for literals
Adds support for literals in macro parameters.
```rust
macro_rules! with_literal {
($literal:literal) => {
const ${concat(FOO, $literal)}: i32 = 1;
}
}
fn main() {
with_literal!("_BAR");
assert_eq!(FOO_BAR, 1);
}
```
cc #124225
r? ``@petrochenkov``
2024-07-17 19:53:25 -05:00
..
2024-06-19 12:37:32 -04:00
2024-07-17 17:00:48 -03:00
2024-07-06 18:00:04 -03:00
2024-07-12 03:02:57 +00:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-05-30 21:39:41 -05:00
2024-07-09 17:41:13 +00:00
2024-07-09 17:41:13 +00:00
2024-07-09 17:41:13 +00:00
2024-06-19 12:37:49 -04:00
2024-07-09 17:41:13 +00:00
2024-07-09 17:41:13 +00:00
2024-07-09 17:41:13 +00:00
2024-06-03 07:25:32 +02:00
2024-06-03 07:25:32 +02:00
2024-07-12 03:02:57 +00:00
2024-05-18 18:56:12 +08:00
2024-05-18 18:56:12 +08:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-05-20 19:55:59 -07:00
2024-06-25 14:14:58 +10:00
2024-06-25 14:14:58 +10:00
2024-07-06 15:36:30 +03:00
2024-07-01 00:25:25 +01:00
2024-05-18 01:05:56 +00:00
2024-05-18 01:05:56 +00:00
2024-06-11 08:35:10 +02:00
2024-07-12 03:02:57 +00:00
2024-06-05 13:07:32 +10:00
2024-06-05 13:07:32 +10:00
2024-06-05 13:07:32 +10:00
2024-06-25 14:35:09 +10:00
2024-06-25 14:35:09 +10:00