about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-21 10:40:26 +0200
committerGitHub <noreply@github.com>2020-09-21 10:40:26 +0200
commitc3abb8290879d3b5f5a34aba243defbb74cfdc6c (patch)
tree798f998b9748fd5717cd4eb021d79a1c96ef99e4 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parenta409a233e02b1864d1b76495a1f946bb56c7aeb2 (diff)
parent43cba349bdf9472eafccbff2542287a1f6580c5e (diff)
downloadrust-c3abb8290879d3b5f5a34aba243defbb74cfdc6c.tar.gz
rust-c3abb8290879d3b5f5a34aba243defbb74cfdc6c.zip
Rollup merge of #76135 - CDirkx:const-option, r=dtolnay,oli-obk
Stabilize some Option methods as const

Stabilize the following methods of `Option` as const:
 - `is_some`
 - `is_none`
 - `as_ref`

These methods are currently const under the unstable feature `const_option` (tracking issue: #67441).
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).

Related: #76225
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions