]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/str/mod.rs
Auto merge of #101329 - QuinnPainter:armv5te-targets, r=nagisa
[rust.git] / library / core / src / str / mod.rs
index 2120bf61d759d739fb6b2ac7696bc7c6d29b4ee1..f673aa2a44b1023ee612a5e355ad4bbc59e25074 100644 (file)
@@ -91,10 +91,12 @@ const fn slice_error_fail(s: &str, begin: usize, end: usize) -> ! {
     }
 }
 
+#[track_caller]
 const fn slice_error_fail_ct(_: &str, _: usize, _: usize) -> ! {
     panic!("failed to slice string");
 }
 
+#[track_caller]
 fn slice_error_fail_rt(s: &str, begin: usize, end: usize) -> ! {
     const MAX_DISPLAY_LENGTH: usize = 256;
     let trunc_len = s.floor_char_boundary(MAX_DISPLAY_LENGTH);