rust/library/core
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
..
benches flt2dec: properly handle uninitialized memory 2020-09-02 12:41:38 +02:00
src Rollup merge of #76655 - CDirkx:const-pin, r=ecstatic-morse 2020-09-21 20:40:49 -07:00
tests Rollup merge of #76655 - CDirkx:const-pin, r=ecstatic-morse 2020-09-21 20:40:49 -07:00
Cargo.toml mv std libs to library/ 2020-07-27 19:51:13 -05:00