We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
run_utf8_validation
1 parent 5e7af46 commit ab90617Copy full SHA for ab90617
src/libcore/str/mod.rs
@@ -1499,7 +1499,7 @@ fn contains_nonascii(x: usize) -> bool {
1499
1500
/// Walks through `v` checking that it's a valid UTF-8 sequence,
1501
/// returning `Ok(())` in that case, or, if it is invalid, `Err(err)`.
1502
-#[inline]
+#[inline(always)]
1503
fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> {
1504
let mut index = 0;
1505
let len = v.len();
0 commit comments