rust/library/alloc
Lukas Kalbertodt db99f98c3e
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)
2020-08-12 21:12:21 +02:00
..
benches More benchmarks of BTreeMap mutation 2020-08-01 20:23:13 +02:00
src Rollup merge of #75424 - joseluis:patch-1, r=joshtriplett 2020-08-12 12:07:21 +09:00
tests Put panic code path from copy_from_slice into cold function 2020-08-12 21:12:21 +02:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00