about summary refs log tree commit diff
path: root/library/std/src/sys/pal/unix/stack_overflow.rs
diff options
context:
space:
mode:
authorTrevor Gross <t.gross35@gmail.com>2024-07-17 19:53:25 -0500
committerGitHub <noreply@github.com>2024-07-17 19:53:25 -0500
commite6f0caf1972b6bd1787de5db4a537bacb05bf92f (patch)
tree6d7c34e1c49405cee1971a9a60198aa62fa0f8ec /library/std/src/sys/pal/unix/stack_overflow.rs
parente35364a521372ce682e4bd4a5850d97ea33b0eab (diff)
parent553279b152a9694914dd03e3469f7ef6c01c9e28 (diff)
downloadrust-e6f0caf1972b6bd1787de5db4a537bacb05bf92f.tar.gz
rust-e6f0caf1972b6bd1787de5db4a537bacb05bf92f.zip
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``
Diffstat (limited to 'library/std/src/sys/pal/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions