rust/library/core
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
src Put panic code path from copy_from_slice into cold function 2020-08-12 21:12:21 +02:00
tests Auto merge of #74948 - lzutao:stalize-result-as-deref, r=dtolnay 2020-08-02 23:55:12 +00:00
Cargo.toml