diff options
| author | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-07-24 00:45:21 +0200 |
|---|---|---|
| committer | Tobias Bucher <tobiasbucher5991@gmail.com> | 2015-07-24 01:58:38 +0200 |
| commit | c2fca7c95742cdd25198eae42d233d49db7026ea (patch) | |
| tree | 22d7652e2273169c33828a07b798d4d4d593cc59 /src/libcore | |
| parent | 0eb552a835500ed964836a8e0e3111843bff8aa1 (diff) | |
| download | rust-c2fca7c95742cdd25198eae42d233d49db7026ea.tar.gz rust-c2fca7c95742cdd25198eae42d233d49db7026ea.zip | |
Add unstable attribute to `char::from_u32_unchecked`
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/char.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/char.rs b/src/libcore/char.rs index 84a0ed5ab3f..c6d0e97a0cd 100644 --- a/src/libcore/char.rs +++ b/src/libcore/char.rs @@ -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) } |
