Skip to content

Commit c2fca7c

Browse files
committed
Add unstable attribute to char::from_u32_unchecked
1 parent 0eb552a commit c2fca7c

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/libcore/char.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ pub fn from_u32(i: u32) -> Option<char> {
9191
/// Converts a `u32` to an `char`, not checking whether it is a valid unicode
9292
/// codepoint.
9393
#[inline]
94+
#[unstable(feature = "char_from_unchecked", reason = "recently added API")]
9495
pub unsafe fn from_u32_unchecked(i: u32) -> char {
9596
transmute(i)
9697
}

src/libstd/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -209,6 +209,7 @@
209209
#![feature(borrow_state)]
210210
#![feature(box_raw)]
211211
#![feature(box_syntax)]
212+
#![feature(char_from_unchecked)]
212213
#![feature(char_internals)]
213214
#![feature(clone_from_slice)]
214215
#![feature(collections)]

0 commit comments

Comments
 (0)