Skip to content

Commit f770774

Browse files
committed
add #[track_caller] to slice split_at_mut fn
1 parent 2bd94f4 commit f770774

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/slice/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -1530,6 +1530,7 @@ impl<T> [T] {
15301530
/// assert_eq!(v, [1, 2, 3, 4, 5, 6]);
15311531
/// ```
15321532
#[stable(feature = "rust1", since = "1.0.0")]
1533+
#[track_caller]
15331534
#[inline]
15341535
pub fn split_at_mut(&mut self, mid: usize) -> (&mut [T], &mut [T]) {
15351536
assert!(mid <= self.len());

0 commit comments

Comments
 (0)