Skip to content

Commit 206d5d7

Browse files
committed
Update prelude macros
1 parent d6a0a89 commit 206d5d7

File tree

2 files changed

+6
-20
lines changed

2 files changed

+6
-20
lines changed

library/core/src/prelude/v1.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ pub use crate::hash::macros::Hash;
5959

6060
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
6161
#[doc(no_inline)]
62+
#[allow(deprecated)]
6263
pub use crate::{
6364
assert, assert_eq, assert_ne, cfg, column, compile_error, concat, debug_assert, debug_assert_eq, debug_assert_ne, file, format_args, include, include_bytes, include_str, line, matches, module_path, option_env, stringify, todo, r#try, unimplemented, unreachable, write, writeln,
6465
};
@@ -76,9 +77,9 @@ mod ambiguous_macro_only {
7677
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
7778
pub use self::ambiguous_macro_only::{env, panic};
7879

79-
#[unstable(feature = "cfg_match", issue = "115585")]
80+
#[unstable(feature = "cfg_select", issue = "115585")]
8081
#[doc(no_inline)]
81-
pub use crate::cfg_match;
82+
pub use crate::cfg_select;
8283

8384
#[unstable(
8485
feature = "concat_bytes",
@@ -88,14 +89,6 @@ pub use crate::cfg_match;
8889
#[doc(no_inline)]
8990
pub use crate::concat_bytes;
9091

91-
#[unstable(
92-
feature = "concat_idents",
93-
issue = "29599",
94-
reason = "`concat_idents` is not stable enough for use and is subject to change"
95-
)]
96-
#[doc(no_inline)]
97-
pub use crate::concat_idents;
98-
9992
#[unstable(feature = "const_format_args", issue = "none")]
10093
#[doc(no_inline)]
10194
pub use crate::const_format_args;

library/std/src/prelude/v1.rs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ pub use crate::result::Result::{self, Err, Ok};
4646
// Re-exported built-in macros and traits
4747
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
4848
#[doc(no_inline)]
49+
#[allow(deprecated)]
4950
pub use core::prelude::v1::{
5051
assert, assert_eq, assert_ne, cfg, column, compile_error, concat, debug_assert, debug_assert_eq, debug_assert_ne, env, file, format_args, include, include_bytes, include_str, line, matches,
5152
module_path, option_env, stringify, todo, r#try, unimplemented, unreachable, write,
@@ -71,9 +72,9 @@ mod ambiguous_macro_only_std {
7172
#[stable(feature = "builtin_macro_prelude", since = "1.38.0")]
7273
pub use self::ambiguous_macro_only_std::{vec, panic};
7374

74-
#[unstable(feature = "cfg_match", issue = "115585")]
75+
#[unstable(feature = "cfg_select", issue = "115585")]
7576
#[doc(no_inline)]
76-
pub use core::prelude::v1::cfg_match;
77+
pub use core::prelude::v1::cfg_select;
7778

7879
#[unstable(
7980
feature = "concat_bytes",
@@ -83,14 +84,6 @@ pub use core::prelude::v1::cfg_match;
8384
#[doc(no_inline)]
8485
pub use core::prelude::v1::concat_bytes;
8586

86-
#[unstable(
87-
feature = "concat_idents",
88-
issue = "29599",
89-
reason = "`concat_idents` is not stable enough for use and is subject to change"
90-
)]
91-
#[doc(no_inline)]
92-
pub use core::prelude::v1::concat_idents;
93-
9487
#[unstable(feature = "const_format_args", issue = "none")]
9588
#[doc(no_inline)]
9689
pub use core::prelude::v1::const_format_args;

0 commit comments

Comments
 (0)