diff options
| author | CDirkx <christiaan@dirkx.com> | 2020-08-31 02:11:48 +0200 |
|---|---|---|
| committer | Christiaan <christiaan@dirkx.email> | 2020-09-20 22:42:14 +0200 |
| commit | 9486f728790e1fb15bb88db672d2f164078a19eb (patch) | |
| tree | 16577702f0e9891da45a38f8e66a836fbe8ac6c5 /src | |
| parent | 81e02708f1f4760244756548981277d5199baa9a (diff) | |
Stabilize some Option methods as const
Stabilize the following methods of `Option` as const: - `is_some` - `is_none` - `as_ref` Possible because of stabilization of #49146 (Allow if and match in constants).
Diffstat (limited to 'src')
| -rw-r--r-- | src/test/ui/consts/const-option.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/test/ui/consts/const-option.rs b/src/test/ui/consts/const-option.rs index fbf20b9db67..793f78c8d20 100644 --- a/src/test/ui/consts/const-option.rs +++ b/src/test/ui/consts/const-option.rs @@ -1,7 +1,5 @@ // run-pass -#![feature(const_option)] - const X: Option<i32> = Some(32); const Y: Option<&i32> = X.as_ref(); |
