about summary refs log tree commit diff
path: root/src/libstd/sys/windows/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-06-28 20:47:52 +0000
committerbors <bors@rust-lang.org>2020-06-28 20:47:52 +0000
commitc977b8775dd72d191ff1d8e8dceaf4b4cd5db86c (patch)
tree6c2daa59e240a4c245503456ae4fd2efd1ddfa2e /src/libstd/sys/windows/stack_overflow.rs
parent2f517ce6f28b5d638cce4c1eccdbe63255b11420 (diff)
parent8509b6951a6a4f29b9426227e1edff6d6484571f (diff)
downloadrust-c977b8775dd72d191ff1d8e8dceaf4b4cd5db86c.tar.gz
rust-c977b8775dd72d191ff1d8e8dceaf4b4cd5db86c.zip
Auto merge of #72437 - ecstatic-morse:stabilize-const-if-match, r=oli-obk
Stabilize `#![feature(const_if_match)]`

Quoting from the [stabilization report](https://github.com/rust-lang/rust/issues/49146#issuecomment-616301045):

> `if` and `match` expressions as well as the short-circuiting logic operators `&&` and `||` will become legal in all [const contexts](https://doc.rust-lang.org/reference/const_eval.html#const-context). A const context is any of the following:
>
> - The initializer of a `const`, `static`, `static mut` or enum discriminant.
> - The body of a `const fn`.
> - The value of a const generic (nightly only).
> - The length of an array type (`[u8; 3]`) or an array repeat expression (`[0u8; 3]`).
>
> Furthermore, the short-circuiting logic operators will no longer be lowered to their bitwise equivalents (`&` and `|` respectively) in `const` and `static` initializers (see #57175). As a result, `let` bindings can be used alongside short-circuiting logic in those initializers.

Resolves #49146.

Ideally, we would resolve :whale: #66753 before this lands on stable, so it might be worth pushing this back a release. Also, this means we should get the process started for #52000, otherwise people will have no recourse except recursion for iterative `const fn`.

r? @oli-obk
Diffstat (limited to 'src/libstd/sys/windows/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions