rust/compiler/rustc_feature/src
bors f8e5660532 Auto merge of #118958 - c410-f3r:concat-again, r=petrochenkov
Add a new concat metavar expr

Revival of #111930

Giving it another try now that #117050 was merged.

With the new rules, meta-variable expressions must be referenced with a dollar sign (`$`) and this can cause misunderstands with `$concat`.

```rust
macro_rules! foo {
    ( $bar:ident ) => {
        const ${concat(VAR, bar)}: i32 = 1;
    };
}

// Will produce `VARbar` instead of `VAR_123`
foo!(_123);
```

In other words, forgetting the dollar symbol can produce undesired outputs.

cc #29599
cc https://github.com/rust-lang/rust/issues/124225
2024-06-14 16:41:39 +00:00
..
accepted.rs replace version placeholder 2024-06-11 16:52:02 +02:00
builtin_attrs.rs Remove extraneous attribute 2024-06-06 20:36:23 -05:00
lib.rs Use tidy to sort crate attributes for all compiler crates. 2024-06-12 15:49:10 +10:00
removed.rs Gate implicit mutable by-reference bindings behind mut ref 2024-05-15 16:55:54 -04:00
tests.rs tidy: Re-enable check for inline unit tests 2020-12-12 19:18:44 +03:00
unstable.rs Auto merge of #118958 - c410-f3r:concat-again, r=petrochenkov 2024-06-14 16:41:39 +00:00