]> git.lizzy.rs Git - rust.git/commit
Make `Option::unwrap` unstably const
authorDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 30 Jul 2020 19:30:56 +0000 (12:30 -0700)
committerDylan MacKenzie <ecstaticmorse@gmail.com>
Thu, 30 Jul 2020 19:30:58 +0000 (12:30 -0700)
commitfc2c1f8ddc9a460c558741ae44b894faf3967f7c
treeb0472fdbd8f18c9ef5b216a3f014103c154de76f
parent6b09c37ddc240e25748e53d7a8f81f252def6dee
Make `Option::unwrap` unstably const

`Result::unwrap` is not eligible becuase it formats the contents of the
`Err` variant. `unwrap_or`, `unwrap_or_else` and friends are not
eligible because they drop things or invoke closures.
library/core/src/lib.rs
library/core/src/option.rs