rust/library/core/tests
ecstatic-morse 537ede465f
Rollup merge of #76655 - CDirkx:const-pin, r=ecstatic-morse
Make some methods of `Pin` unstable const

Make the following methods unstable const under the `const_pin` feature:
- `new`
- `new_unchecked`
- `into_inner`
- `into_inner_unchecked`
- `get_ref`
- `into_ref`
- `get_mut`
- `get_unchecked_mut`

Of these, `into_inner` and `into_inner_unchecked` require the unstable `const_precise_live_drops`.

Also adds tests for these methods in a const context.

Tracking issue: #76654

r? @ecstatic-morse
2020-09-21 20:40:49 -07:00
..
fmt
hash
num Use T::BITS instead of size_of::<T> * 8. 2020-09-19 06:54:42 +02:00
alloc.rs
any.rs
array.rs Add drop check test & MaybeUninit::first_ptr_mut 2020-08-13 03:51:08 +00:00
ascii.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
atomic.rs
bool.rs
cell.rs
char.rs
clone.rs
cmp.rs Move const tests for Ordering to library\core 2020-09-04 00:40:11 +02:00
intrinsics.rs
iter.rs Use T::BITS instead of size_of::<T> * 8. 2020-09-19 06:54:42 +02:00
lazy.rs Make OnceCell<T> transparent to dropck 2020-08-18 00:34:54 +02:00
lib.rs Rollup merge of #76655 - CDirkx:const-pin, r=ecstatic-morse 2020-09-21 20:40:49 -07:00
manually_drop.rs
mem.rs
nonzero.rs Move various ui const tests to library 2020-09-04 02:35:27 +02:00
ops.rs
option.rs Move const tests for Option to library\core 2020-09-20 22:42:14 +02:00
pattern.rs
pin.rs Make some methods of Pin<&mut T> unstable const 2020-09-18 19:23:50 +02:00
ptr.rs enable align_to tests in Miri 2020-08-19 10:41:51 +02:00
result.rs Auto merge of #76136 - CDirkx:const-result, r=dtolnay 2020-09-20 13:07:11 +00:00
slice.rs Add array window fn 2020-09-16 14:52:20 +00:00
str_lossy.rs
str.rs
time.rs Make all methods of Duration const 2020-09-12 15:14:58 +02:00
tuple.rs