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.
1 parent eb19d02 commit c0f9a39Copy full SHA for c0f9a39
src/libcore/str/mod.rs
@@ -1441,6 +1441,7 @@ pub trait StrExt {
1441
}
1442
1443
#[inline(never)]
1444
+#[cold]
1445
fn slice_error_fail(s: &str, begin: usize, end: usize) -> ! {
1446
assert!(begin <= end);
1447
panic!("index {} and/or {} in `{}` do not lie on character boundary",
0 commit comments