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 | b873fa6d42cf305131d2583d03b84686e5e40f2e (patch) | |
| tree | f26b56f7553401eee94a20f954031affd079389a /compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp | |
| parent | 41507ed0d57eba71adc20a021a19b64322162f04 (diff) | |
| parent | bf70e21a7e48008a8c1d82c3b0376e574f9bc91b (diff) | |
| download | rust-b873fa6d42cf305131d2583d03b84686e5e40f2e.tar.gz rust-b873fa6d42cf305131d2583d03b84686e5e40f2e.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 'compiler/rustc_llvm/llvm-wrapper/CoverageMappingWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
