Add unstable attribute to `char::from_u32_unchecked`

This commit is contained in:
Tobias Bucher 2015-07-24 00:45:21 +02:00
parent 0eb552a835
commit c2fca7c957
2 changed files with 2 additions and 0 deletions

View File

@ -91,6 +91,7 @@ pub fn from_u32(i: u32) -> Option<char> {
/// Converts a `u32` to an `char`, not checking whether it is a valid unicode
/// codepoint.
#[inline]
#[unstable(feature = "char_from_unchecked", reason = "recently added API")]
pub unsafe fn from_u32_unchecked(i: u32) -> char {
transmute(i)
}

View File

@ -209,6 +209,7 @@
#![feature(borrow_state)]
#![feature(box_raw)]
#![feature(box_syntax)]
#![feature(char_from_unchecked)]
#![feature(char_internals)]
#![feature(clone_from_slice)]
#![feature(collections)]