diff options
| author | bors <bors@rust-lang.org> | 2020-08-12 23:03:28 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-12 23:03:28 +0000 |
| commit | 847ba835ce411d47364a93ddf0b4a5c0f27928a9 (patch) | |
| tree | 2f2cd1f7b10adfd905eeb6bcf3b3b3110a2c81b3 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 576d27c5a6c80cd39ef57d7398831d8e177573cc (diff) | |
| parent | db99f98c3ec7978f33ab00aa45d1517a4562cfb5 (diff) | |
| download | rust-847ba835ce411d47364a93ddf0b4a5c0f27928a9.tar.gz rust-847ba835ce411d47364a93ddf0b4a5c0f27928a9.zip | |
Auto merge of #74512 - LukasKalbertodt:debloat-copy-from-slice, r=KodrAus
Put panic code path from `copy_from_slice` into cold function
The previous `assert_eq` generated quite some code, which is especially problematic when this call is inlined. This commit also slightly improves the panic message from:
assertion failed: `(left == right)`
left: `3`,
right: `2`: destination and source slices have different lengths
...to:
source slice length (2) does not match destination slice length (3)
You can see the code bloat in assembly [here](https://rust.godbolt.org/z/74a3qo).
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
