Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 6713867

Browse files
committedSep 29, 2023
add str_from_utf16_endian tracking issue
1 parent 7fc3c50 commit 6713867

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎library/alloc/src/string.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ impl String {
745745
/// assert!(String::from_utf16le(v).is_err());
746746
/// ```
747747
#[cfg(not(no_global_oom_handling))]
748-
#[unstable(feature = "str_from_utf16_endian", issue = "none", reason = "recently added")]
748+
#[unstable(feature = "str_from_utf16_endian", issue = "116258")]
749749
pub fn from_utf16le(v: &[u8]) -> Result<String, FromUtf16Error> {
750750
if v.len() % 2 != 0 {
751751
return Err(FromUtf16Error(()));
@@ -784,7 +784,7 @@ impl String {
784784
/// String::from_utf16le_lossy(v));
785785
/// ```
786786
#[cfg(not(no_global_oom_handling))]
787-
#[unstable(feature = "str_from_utf16_endian", issue = "none", reason = "recently added")]
787+
#[unstable(feature = "str_from_utf16_endian", issue = "116258")]
788788
pub fn from_utf16le_lossy(v: &[u8]) -> String {
789789
match (cfg!(target_endian = "little"), unsafe { v.align_to::<u16>() }) {
790790
(true, ([], v, [])) => Self::from_utf16_lossy(v),
@@ -824,7 +824,7 @@ impl String {
824824
/// assert!(String::from_utf16be(v).is_err());
825825
/// ```
826826
#[cfg(not(no_global_oom_handling))]
827-
#[unstable(feature = "str_from_utf16_endian", issue = "none", reason = "recently added")]
827+
#[unstable(feature = "str_from_utf16_endian", issue = "116258")]
828828
pub fn from_utf16be(v: &[u8]) -> Result<String, FromUtf16Error> {
829829
if v.len() % 2 != 0 {
830830
return Err(FromUtf16Error(()));
@@ -863,7 +863,7 @@ impl String {
863863
/// String::from_utf16be_lossy(v));
864864
/// ```
865865
#[cfg(not(no_global_oom_handling))]
866-
#[unstable(feature = "str_from_utf16_endian", issue = "none", reason = "recently added")]
866+
#[unstable(feature = "str_from_utf16_endian", issue = "116258")]
867867
pub fn from_utf16be_lossy(v: &[u8]) -> String {
868868
match (cfg!(target_endian = "big"), unsafe { v.align_to::<u16>() }) {
869869
(true, ([], v, [])) => Self::from_utf16_lossy(v),

0 commit comments

Comments
 (0)
Failed to load comments.