Skip to content

Commit

Permalink
Allow some internal instability
Browse files Browse the repository at this point in the history
  • Loading branch information
WaffleLapkin committed May 26, 2022
1 parent 138aa99 commit 8929535
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/str/converts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ use super::Utf8Error;
/// ```
#[stable(feature = "rust1", since = "1.0.0")]
#[rustc_const_stable(feature = "const_str_from_utf8_shared", since = "1.63.0")]
#[rustc_allow_const_fn_unstable(str_internals)]
pub const fn from_utf8(v: &[u8]) -> Result<&str, Utf8Error> {
// FIXME: This should use `?` again, once it's `const`
match run_utf8_validation(v) {
Expand Down

0 comments on commit 8929535

Please sign in to comment.