diff options
| author | Trevor Gross <tmgross@umich.edu> | 2025-02-26 04:25:21 +0000 |
|---|---|---|
| committer | Trevor Gross <tmgross@umich.edu> | 2025-04-24 22:14:23 +0000 |
| commit | 75a9be609ed3f932b9c1f15a18c8afbf41138893 (patch) | |
| tree | d90e1d5b2b8b97184313360fe2c0fa65b29eb2b8 /tests/ui/macros/macros-nonfatal-errors.rs | |
| parent | 3c877f6a477380ed61155d3bf816df09c9e05b9e (diff) | |
| download | rust-75a9be609ed3f932b9c1f15a18c8afbf41138893.tar.gz rust-75a9be609ed3f932b9c1f15a18c8afbf41138893.zip | |
Deprecate the unstable `concat_idents!`
`concat_idents` has been around unstably for a long time, but there is
now a better (but still unstable) way to join identifiers using
`${concat(...)}` syntax with `macro_metavar_expr_concat`. This resolves
a lot of the problems with `concat_idents` and is on a better track
toward stabilization, so there is no need to keep both versions around.
`concat_idents!` still has a lot of use in the ecosystem so deprecate it
before removing, as discussed in [1].
Link: https://github.com/rust-lang/rust/issues/124225
[1]: https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Removing.20.60concat_idents.60
Diffstat (limited to 'tests/ui/macros/macros-nonfatal-errors.rs')
| -rw-r--r-- | tests/ui/macros/macros-nonfatal-errors.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/ui/macros/macros-nonfatal-errors.rs b/tests/ui/macros/macros-nonfatal-errors.rs index 79beffbe986..091d64ea5d9 100644 --- a/tests/ui/macros/macros-nonfatal-errors.rs +++ b/tests/ui/macros/macros-nonfatal-errors.rs @@ -5,6 +5,7 @@ #![feature(trace_macros, concat_idents)] #![feature(stmt_expr_attributes)] +#![expect(deprecated)] // concat_idents is deprecated use std::arch::asm; |
