`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
21 lines
863 B
Plaintext
21 lines
863 B
Plaintext
error[E0658]: use of unstable library feature `concat_idents`: `concat_idents` is not stable enough for use and is subject to change
|
|
--> $DIR/feature-gate-concat_idents2.rs:4:5
|
|
|
|
|
LL | concat_idents!(a, b);
|
|
| ^^^^^^^^^^^^^
|
|
|
|
|
= note: see issue #29599 <https://github.com/rust-lang/rust/issues/29599> for more information
|
|
= help: add `#![feature(concat_idents)]` to the crate attributes to enable
|
|
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
|
|
|
|
error[E0425]: cannot find value `ab` in this scope
|
|
--> $DIR/feature-gate-concat_idents2.rs:4:5
|
|
|
|
|
LL | concat_idents!(a, b);
|
|
| ^^^^^^^^^^^^^^^^^^^^ not found in this scope
|
|
|
|
error: aborting due to 2 previous errors
|
|
|
|
Some errors have detailed explanations: E0425, E0658.
|
|
For more information about an error, try `rustc --explain E0425`.
|