bors a334ae658b 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
..
2020-08-17 13:55:05 +01:00
2020-04-19 10:56:15 -04:00
2020-04-19 10:56:15 -04:00
2020-06-10 01:35:47 +00:00
2020-04-19 21:00:25 +02:00
2020-04-09 08:08:36 +02:00
2020-03-03 18:06:59 -08:00
2020-02-23 22:36:15 -08:00
2020-08-02 23:20:00 +08:00
2020-04-20 15:47:08 -04:00
2020-04-23 16:30:06 -07:00
2020-04-26 18:00:51 +03:00
2020-07-10 07:39:28 -04:00
2020-03-03 10:48:08 +01:00
2020-03-20 22:52:53 +00:00
2020-04-08 08:37:20 -07:00
2020-03-31 16:13:51 +05:30
2020-03-04 00:56:43 +01:00
2020-03-04 00:56:43 +01:00
2020-04-02 18:31:31 -07:00
2020-03-29 22:22:36 +02:00
2020-03-11 06:35:07 +09:00
2020-03-10 18:00:37 -04:00
2020-03-10 18:00:37 -04:00