about summary refs log tree commit diff
path: root/library/std/src/prelude
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-02-26 04:25:21 +0000
committerTrevor Gross <tmgross@umich.edu>2025-04-24 22:14:23 +0000
commit75a9be609ed3f932b9c1f15a18c8afbf41138893 (patch)
treed90e1d5b2b8b97184313360fe2c0fa65b29eb2b8 /library/std/src/prelude
parent3c877f6a477380ed61155d3bf816df09c9e05b9e (diff)
downloadrust-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 'library/std/src/prelude')
-rw-r--r--library/std/src/prelude/v1.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs
index c15d8c40085..68c9ac1e414 100644
--- a/library/std/src/prelude/v1.rs
+++ b/library/std/src/prelude/v1.rs
@@ -46,6 +46,7 @@ pub use crate::result::Result::{self, Err, Ok};
 // Re-exported built-in macros
 #[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
 #[allow(deprecated)]
+#[cfg_attr(bootstrap, allow(deprecated_in_future))]
 #[doc(no_inline)]
 pub use core::prelude::v1::{
     assert, cfg, column, compile_error, concat, concat_idents, env, file, format_args,