This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 82418f9
committed
Auto merge of rust-lang#91961 - kornelski:track_split_caller, r=joshtriplett
Track caller of slice split and swap
Improves error location for `slice.split_at*()` and `slice.swap()`.
These are generic inline functions, so the `#[track_caller]` on them is free — only changes a value of an argument already passed to panicking code.1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
585 | 585 | | |
586 | 586 | | |
587 | 587 | | |
| 588 | + | |
588 | 589 | | |
589 | 590 | | |
590 | 591 | | |
| |||
1501 | 1502 | | |
1502 | 1503 | | |
1503 | 1504 | | |
| 1505 | + | |
1504 | 1506 | | |
1505 | 1507 | | |
1506 | 1508 | | |
| |||
1531 | 1533 | | |
1532 | 1534 | | |
1533 | 1535 | | |
| 1536 | + | |
1534 | 1537 | | |
1535 | 1538 | | |
1536 | 1539 | | |
| |||
1670 | 1673 | | |
1671 | 1674 | | |
1672 | 1675 | | |
| 1676 | + | |
1673 | 1677 | | |
1674 | 1678 | | |
1675 | 1679 | | |
| |||
1701 | 1705 | | |
1702 | 1706 | | |
1703 | 1707 | | |
| 1708 | + | |
1704 | 1709 | | |
1705 | 1710 | | |
1706 | 1711 | | |
| |||
0 commit comments