diff options
| author | Smitty <me@smitop.com> | 2021-07-29 13:00:55 -0400 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2021-12-06 21:05:13 -0500 |
| commit | eb56693a370df5bb60f58f73586cded6a641b0cc (patch) | |
| tree | fd8c3686dba481883f95e9f3807f11478b0171a5 /library/std | |
| parent | 0fb1c371d4a14f9ce7a721d8aea683a6e6774f6c (diff) | |
| download | rust-eb56693a370df5bb60f58f73586cded6a641b0cc.tar.gz rust-eb56693a370df5bb60f58f73586cded6a641b0cc.zip | |
Implement concat_bytes!
The tracking issue for this is #87555.
Diffstat (limited to 'library/std')
| -rw-r--r-- | library/std/src/lib.rs | 9 | ||||
| -rw-r--r-- | library/std/src/prelude/v1.rs | 9 |
2 files changed, 18 insertions, 0 deletions
diff --git a/library/std/src/lib.rs b/library/std/src/lib.rs index 67846e78835..367f072ffc7 100644 --- a/library/std/src/lib.rs +++ b/library/std/src/lib.rs @@ -250,6 +250,7 @@ #![feature(cfg_target_thread_local)] #![feature(char_error_internals)] #![feature(char_internals)] +#![cfg_attr(not(bootstrap), feature(concat_bytes))] #![feature(concat_idents)] #![feature(const_cstr_unchecked)] #![feature(const_fn_floating_point_arithmetic)] @@ -576,6 +577,14 @@ pub use core::{ log_syntax, module_path, option_env, stringify, trace_macros, }; +#[unstable( + feature = "concat_bytes", + issue = "87555", + reason = "`concat_bytes` is not stable enough for use and is subject to change" +)] +#[cfg(not(bootstrap))] +pub use core::concat_bytes; + #[stable(feature = "core_primitive", since = "1.43.0")] pub use core::primitive; diff --git a/library/std/src/prelude/v1.rs b/library/std/src/prelude/v1.rs index 772044f0149..9b23aa37e31 100644 --- a/library/std/src/prelude/v1.rs +++ b/library/std/src/prelude/v1.rs @@ -46,6 +46,15 @@ pub use core::prelude::v1::{ }; #[unstable( + feature = "concat_bytes", + issue = "87555", + reason = "`concat_bytes` is not stable enough for use and is subject to change" +)] +#[cfg(not(bootstrap))] +#[doc(no_inline)] +pub use core::prelude::v1::concat_bytes; + +#[unstable( feature = "asm", issue = "72016", reason = "inline assembly is not stable enough for use and is subject to change" |
