diff options
| author | bors <bors@rust-lang.org> | 2020-09-20 13:07:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-09-20 13:07:11 +0000 |
| commit | a334ae658ba7ab1a82230afe2248557f4ef74ea6 (patch) | |
| tree | 92123da01b7fc361e38bbe565a8cf97c8e7b15b8 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs | |
| parent | 78f9ea543154b6a0d6b5b5a86e92d8cc1938b436 (diff) | |
| parent | ac0d0696169d0e69504dface45544132525244b6 (diff) | |
| download | rust-a334ae658ba7ab1a82230afe2248557f4ef74ea6.tar.gz rust-a334ae658ba7ab1a82230afe2248557f4ef74ea6.zip | |
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
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions
