]> git.lizzy.rs Git - rust.git/commit
Auto merge of #90306 - kornelski:slicecloneasset, r=joshtriplett
authorbors <bors@rust-lang.org>
Sun, 31 Oct 2021 01:56:40 +0000 (01:56 +0000)
committerbors <bors@rust-lang.org>
Sun, 31 Oct 2021 01:56:40 +0000 (01:56 +0000)
commit0a09858b05bb0d92e87077c76fcb0648d32d44db
treec8f4eb898f13bdd5de7afc4fd9059ab69d70da97
parent46ce6a77c2335279e4da149efc6433468a2edd23
parent90ea93bf1aff8a4239d50813a8537bb65e06fbf9
Auto merge of #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.