diff options
| author | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2020-07-19 14:04:30 +0200 |
|---|---|---|
| committer | Lukas Kalbertodt <lukas.kalbertodt@gmail.com> | 2020-08-12 21:12:21 +0200 |
| commit | db99f98c3ec7978f33ab00aa45d1517a4562cfb5 (patch) | |
| tree | 536f6d69de7862521257306ccc3126763d76fc92 /src/test/rustdoc-ui/coverage/json.rs | |
| parent | 3df25ae186e89c885d9a71cd37fbd7a37e39fc85 (diff) | |
| download | rust-db99f98c3ec7978f33ab00aa45d1517a4562cfb5.tar.gz rust-db99f98c3ec7978f33ab00aa45d1517a4562cfb5.zip | |
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)
Diffstat (limited to 'src/test/rustdoc-ui/coverage/json.rs')
0 files changed, 0 insertions, 0 deletions
