Files
rust/src/tools
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
..
2020-09-15 14:52:18 -07:00
2020-08-22 01:50:47 +02:00
2020-09-08 10:50:52 +02:00
2020-09-05 15:40:07 -05:00
2020-09-14 16:11:06 +02:00
2020-06-26 07:47:19 -07:00
2019-12-22 17:42:47 -05:00
2019-12-22 17:42:47 -05:00
2020-09-05 15:40:07 -05:00