diff options
| author | bors <bors@rust-lang.org> | 2020-02-20 02:00:31 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-02-20 02:00:31 +0000 |
| commit | 183e893aaae581bd0ab499ba56b6c5e118557dc7 (patch) | |
| tree | 02a99563f74f9a881cbb02303c8bdda9902674a6 /src/libcore | |
| parent | d5638142b32935508626226d0f0cf9059db40789 (diff) | |
| parent | e761f3af904b3c275bdebc73bb29ffc45384945d (diff) | |
| download | rust-183e893aaae581bd0ab499ba56b6c5e118557dc7.tar.gz rust-183e893aaae581bd0ab499ba56b6c5e118557dc7.zip | |
Auto merge of #69256 - nnethercote:misc-inlining, r=Centril
Miscellaneous inlining improvements These commits inline some hot functions that aren't currently inlined, for some speed wins. r? @Centril
Diffstat (limited to 'src/libcore')
| -rw-r--r-- | src/libcore/str/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libcore/str/mod.rs b/src/libcore/str/mod.rs index e5b8412e117..7c4acb0edb7 100644 --- a/src/libcore/str/mod.rs +++ b/src/libcore/str/mod.rs @@ -1499,7 +1499,7 @@ fn contains_nonascii(x: usize) -> bool { /// Walks through `v` checking that it's a valid UTF-8 sequence, /// returning `Ok(())` in that case, or, if it is invalid, `Err(err)`. -#[inline] +#[inline(always)] fn run_utf8_validation(v: &[u8]) -> Result<(), Utf8Error> { let mut index = 0; let len = v.len(); |
