diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-05-26 13:00:14 +0400 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-05-26 13:00:14 +0400 |
| commit | 89295352ee00a5555141db5fb7bcc41c822d4aec (patch) | |
| tree | 3a2b1d0f44de19d4d03642cafddb3c1bf2bb809a | |
| parent | 138aa9950309a3926c195b9be44278cb7f22f510 (diff) | |
| download | rust-89295352ee00a5555141db5fb7bcc41c822d4aec.tar.gz rust-89295352ee00a5555141db5fb7bcc41c822d4aec.zip | |
Allow some internal instability
| -rw-r--r-- | library/core/src/str/converts.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/str/converts.rs b/library/core/src/str/converts.rs index f1055a34b9e..b0c55ca4f51 100644 --- a/library/core/src/str/converts.rs +++ b/library/core/src/str/converts.rs @@ -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) { |
