rust/src/libcore
Mark Rousskov 85804f66be
Rollup merge of #51765 - jonas-schievink:patch-1, r=KodrAus
Use assert_eq! in copy_from_slice

This will print both lengths when the assertion fails instead of just saying that they're different.

Output of current stable and nightly (modulo the exact line number):
```
thread 'main' panicked at 'destination and source slices have different lengths', libcore/slice/mod.rs:1645:9
```

Output after this PR:
```
thread 'main' panicked at 'assertion failed: `(left == right)`
  left: `123`,
 right: `456`: destination and source slices have different lengths', libcore/slice/mod.rs:1645:9
```

Note that I have not run the tests locally.
2018-06-28 16:07:12 -06:00
..
benches Move deny(warnings) into rustbuild 2018-04-08 16:59:14 -06:00
char migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
fmt migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
hash impl Hash for ! 2018-06-14 23:26:38 -04:00
iter Auto merge of #51463 - estebank:error-codes, r=nikomatsakis 2018-06-22 03:24:36 +00:00
num Stabilize to_bytes and from_bytes for integers. 2018-06-26 23:17:56 -06:00
ops Add message to rustc_on_unimplemented attributes in core 2018-06-19 15:19:13 -07:00
prelude Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
slice Rollup merge of #51765 - jonas-schievink:patch-1, r=KodrAus 2018-06-28 16:07:12 -06:00
str Add str::split_ascii_whitespace. 2018-06-27 17:54:27 -04:00
sync Auto merge of #48553 - seanmonstar:atomic-debug, r=alexcrichton 2018-04-19 23:08:16 +00:00
task Move spawn errors into executor.rs 2018-06-26 21:13:36 +02:00
tests Rollup merge of #50342 - fkjogu:euclidean, r=BurntSushi 2018-06-28 06:15:38 +08:00
unicode Regenerate character tables for Unicode 11 2018-06-11 10:54:30 -07:00
alloc.rs Document that Layout::from_size_align does not allow align=0 2018-06-27 15:07:42 +02:00
any.rs Fix up Any doc examples 2018-05-31 13:27:08 -07:00
array.rs Revert "Stabilize the TryFrom and TryInto traits" 2018-04-20 18:10:00 +02:00
ascii.rs migrate codebase to ..= inclusive range patterns 2018-06-26 07:53:30 -07:00
borrow.rs
Cargo.toml Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
cell.rs Optimize RefCell refcount tracking 2018-06-27 00:07:18 -07:00
clone.rs Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
cmp.rs Add message to rustc_on_unimplemented attributes in core 2018-06-19 15:19:13 -07:00
convert.rs Revert "Stabilize the TryFrom and TryInto traits" 2018-04-20 18:10:00 +02:00
default.rs
future.rs add a few blanket future impls to std 2018-06-08 17:56:59 -04:00
hint.rs Stabilize core::hint::unreachable_unchecked. 2018-04-16 18:29:40 +08:00
internal_macros.rs Switch to 1.26 bootstrap compiler 2018-05-17 08:47:25 -06:00
intrinsics.rs Update nomicon link in transmute docs 2018-05-25 11:47:48 -07:00
iter_private.rs
lib.rs Stabilize #[repr(transparent)] 2018-06-12 06:49:07 +02:00
macros.rs undo payload in core::panic! changes 2018-06-03 13:46:19 +02:00
marker.rs Update message for !Sized types 2018-06-19 17:32:33 -07:00
mem.rs PinMut: Add safe get_mut and rename unsafe fns to get_mut_unchecked and map_unchecked 2018-06-23 18:29:56 +02:00
nonzero.rs Make core::nonzero private 2018-05-16 19:08:41 +02:00
option.rs Rollup merge of #51730 - MajorBreakfast:pin-get-mut-unchecked, r=withoutboats 2018-06-26 11:35:37 +02:00
panic.rs implement #[panic_implementation] 2018-06-03 13:46:19 +02:00
panicking.rs undo payload in core::panic! changes 2018-06-03 13:46:19 +02:00
ptr.rs Remove alloc::Opaque and use *mut u8 as pointer type for GlobalAlloc 2018-06-11 13:47:23 -07:00
raw.rs
result.rs Add explanation for #[must_use] on Result 2018-05-07 10:26:28 -07:00
time.rs Optimize sum of Durations by using custom function 2018-06-16 20:56:17 +02:00
tuple.rs
unit.rs