rust/src/libcore/tests
Manish Goregaokar 9262fc2a68
Rollup merge of #72628 - MikailBag:array-default-tests, r=shepmaster
Add tests for 'impl Default for [T; N]'

Related: #71690.
This pull request adds two tests:
- Even it T::default() panics, no leaks occur.
- [T; 0] is Default even if T is not.

I believe at some moment `Default` impl for arrays will be rewritten to use const generics instead of macros, and these tests will help to prevent behavior changes.
2020-06-18 15:20:41 -07:00
..
fmt Stop importing int/float modules in libcore 2020-04-05 11:22:01 +02:00
hash Remove assert that had been replaced by assert_ne 2020-03-01 08:04:18 -08:00
num Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
alloc.rs Add Layout::dangling() to return a well-aligned NonNull<u8> 2020-03-07 02:40:54 +01:00
any.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
array.rs Skip leak test on targets without panic=unwind 2020-05-28 20:45:21 +03:00
ascii.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
atomic.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
bool.rs Rename to then_some and then 2019-12-06 12:24:54 +00:00
cell.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
char.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
clone.rs Remove licenses 2018-12-25 21:08:33 -07:00
cmp.rs Format the world 2019-12-22 17:42:47 -05:00
intrinsics.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
iter.rs Miri tests: skip parts of test_char_range 2020-05-31 12:12:45 +02:00
lib.rs Rollup merge of #72310 - jyn514:peekable-next-if, r=dtolnay 2020-05-29 20:21:11 +02:00
manually_drop.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
mem.rs Move the const-forget test into ui tests 2020-03-18 21:08:52 +01:00
nonzero.rs Implement BitOr and BitOrAssign for the NonZero integer types 2020-03-07 16:14:10 -08:00
ops.rs Use assoc float consts in libcore 2020-04-06 22:44:51 +02:00
option.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
pattern.rs x.py fmt after previous deignore 2019-12-24 17:38:22 -05:00
ptr.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
result.rs Update test after renaming Result::as_deref 2020-01-11 03:26:09 +00:00
slice.rs Migrate to numeric associated consts 2020-06-10 01:35:47 +00:00
str.rs Remove licenses 2018-12-25 21:08:33 -07:00
str_lossy.rs Format libcore with rustfmt (including tests and benches) 2019-12-06 20:20:51 -08:00
time.rs Use integer assoc consts in libcore 2020-04-06 23:08:12 +02:00
tuple.rs Use assoc float consts in libcore 2020-04-06 22:44:51 +02:00