rust/library/core/tests
bors b873fa6d42 Auto merge of #76136 - CDirkx:const-result, r=dtolnay
Stabilize some Result methods as const

Stabilize the following methods of Result as const:
 - `is_ok`
 - `is_err`
 - `as_ref`

A test is also included, analogous to the test for `const_option`.

These methods are currently const under the unstable feature `const_result` (tracking issue: #67520).
I believe these methods to be eligible for stabilization because of the stabilization of #49146 (Allow if and match in constants) and the trivial implementations, see also: [PR#75463](https://github.com/rust-lang/rust/pull/75463) and [PR#76135](https://github.com/rust-lang/rust/pull/76135).

Note: these methods are the only methods currently under the `const_result` feature, thus this PR results in the removal of the feature.

Related: #76225
2020-09-20 13:07:11 +00: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 Use T::BITS instead of size_of::<T> * 8. 2020-09-19 06:54:42 +02: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 Fix tests using FixedSizeArray methods (which are now shadowed) 2020-08-30 21:08:18 +02:00
pattern.rs
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