Skip to content

Commit 8929535

Browse files
committed
Allow some internal instability
1 parent 138aa99 commit 8929535

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/str/converts.rs

+1
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ use super::Utf8Error;
8383
/// ```
8484
#[stable(feature = "rust1", since = "1.0.0")]
8585
#[rustc_const_stable(feature = "const_str_from_utf8_shared", since = "1.63.0")]
86+
#[rustc_allow_const_fn_unstable(str_internals)]
8687
pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
8788
// FIXME: This should use `?` again, once it's `const`
8889
match run_utf8_validation(v) {

0 commit comments

Comments
 (0)