Skip to content

Commit b85754f

Browse files
committed
Support unstable moves via stable in unstable items
1 parent 7177f24 commit b85754f

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
lines changed

core/src/intrinsics.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2649,6 +2649,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
26492649
/// Here is an example of how this could cause a problem:
26502650
/// ```no_run
26512651
/// #![feature(const_eval_select)]
2652+
/// #![feature(core_intrinsics)]
26522653
/// use std::hint::unreachable_unchecked;
26532654
/// use std::intrinsics::const_eval_select;
26542655
///

core/src/unicode/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
#![unstable(feature = "unicode_internals", issue = "none")]
1+
#![stable(feature = "unicode_version", since = "1.45.0")]
22
#![allow(missing_docs)]
33

4+
#[unstable(feature = "unicode_internals", issue = "none")]
45
pub(crate) mod printable;
6+
#[unstable(feature = "unicode_internals", issue = "none")]
57
mod unicode_data;
68

79
/// The version of [Unicode](https://www.unicode.org/) that the Unicode parts of
@@ -18,6 +20,7 @@ mod unicode_data;
1820
pub const UNICODE_VERSION: (u8, u8, u8) = unicode_data::UNICODE_VERSION;
1921

2022
// For use in liballoc, not re-exported in libstd.
23+
#[unstable(feature = "unicode_internals", issue = "none")]
2124
pub use unicode_data::{
2225
case_ignorable::lookup as Case_Ignorable, cased::lookup as Cased, conversions,
2326
};

std/src/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@
214214
#![cfg_attr(not(bootstrap), deny(ffi_unwind_calls))]
215215
// std may use features in a platform-specific way
216216
#![allow(unused_features)]
217-
#![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count))]
217+
#![cfg_attr(test, feature(internal_output_capture, print_internals, update_panic_count, rt))]
218218
#![cfg_attr(
219219
all(target_vendor = "fortanix", target_env = "sgx"),
220220
feature(slice_index_methods, coerce_unsized, sgx_platform)
@@ -297,6 +297,7 @@
297297
// Library features (alloc):
298298
#![feature(alloc_layout_extra)]
299299
#![feature(alloc_c_string)]
300+
#![feature(alloc_ffi)]
300301
#![feature(allocator_api)]
301302
#![feature(get_mut_unchecked)]
302303
#![feature(map_try_insert)]

std/src/panic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use crate::thread::Result;
1111

1212
#[doc(hidden)]
1313
#[unstable(feature = "edition_panic", issue = "none", reason = "use panic!() instead")]
14-
#[allow_internal_unstable(libstd_sys_internals, const_format_args, core_panic)]
14+
#[allow_internal_unstable(libstd_sys_internals, const_format_args, core_panic, rt)]
1515
#[cfg_attr(not(test), rustc_diagnostic_item = "std_panic_2015_macro")]
1616
#[rustc_macro_transparency = "semitransparent"]
1717
pub macro panic_2015 {

0 commit comments

Comments
 (0)