Commit 0a09858
committed
Auto merge of rust-lang#90306 - kornelski:slicecloneasset, r=joshtriplett
track_caller for slice length assertions
`clone_from_slice` was missing `#[track_caller]`, and its assert did not report a useful location.
These are small generic methods, so hopefully track_caller gets inlined into nothingness, but it may be worth running a benchmark on this.1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3076 | 3076 | | |
3077 | 3077 | | |
3078 | 3078 | | |
| 3079 | + | |
3079 | 3080 | | |
3080 | 3081 | | |
3081 | 3082 | | |
| |||
3139 | 3140 | | |
3140 | 3141 | | |
3141 | 3142 | | |
| 3143 | + | |
3142 | 3144 | | |
3143 | 3145 | | |
3144 | 3146 | | |
| |||
3259 | 3261 | | |
3260 | 3262 | | |
3261 | 3263 | | |
| 3264 | + | |
3262 | 3265 | | |
3263 | 3266 | | |
3264 | 3267 | | |
| |||
3581 | 3584 | | |
3582 | 3585 | | |
3583 | 3586 | | |
| 3587 | + | |
3584 | 3588 | | |
3585 | 3589 | | |
3586 | 3590 | | |
| |||
3598 | 3602 | | |
3599 | 3603 | | |
3600 | 3604 | | |
| 3605 | + | |
3601 | 3606 | | |
3602 | 3607 | | |
3603 | 3608 | | |
| |||
0 commit comments