rust/src/test
bors c977b8775d 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 🐳 #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
2020-06-28 20:47:52 +00:00
..
assembly Add initial asm!() support for hexagon 2020-06-16 08:58:13 -05:00
auxiliary test: Fix warnings in rust_test_helpers.c 2020-05-06 23:54:05 +03:00
codegen Rollup merge of #73525 - cuviper:llvm11, r=nikic 2020-06-27 22:29:54 -07:00
codegen-units Change how compiler-builtins gets many CGUs 2020-06-15 07:38:00 -07:00
compile-fail Update tests 2020-06-28 10:08:12 -07:00
debuginfo Implement new gdb/lldb pretty-printers 2020-06-09 16:13:11 +03:00
incremental Auto merge of #72520 - jonas-schievink:cleanup-userty, r=matthewjasper 2020-05-25 06:17:15 +00:00
mir-opt Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
pretty asm: Allow multiple template strings; interpret them as newline-separated 2020-06-15 12:35:27 -07:00
run-make Auto merge of #71858 - petrochenkov:env, r=Mark-Simulacrum 2020-06-25 22:52:59 +00:00
run-make-fulldeps compiletest: Add directives to detect sanitizer support 2020-06-13 14:24:30 +02:00
run-pass-valgrind
rustdoc Show the values and computation that would overflow a const evaluation or propagation 2020-06-26 10:08:52 +02:00
rustdoc-js rustdoc: Fix doc aliases with crate filtering 2020-06-23 09:27:37 +01:00
rustdoc-js-std Make current crate aliases go first 2020-05-14 11:36:02 +02:00
rustdoc-ui Generate docs for links to private items when passed --document-private 2020-06-26 07:23:39 -04:00
rustfix
ui Auto merge of #72437 - ecstatic-morse:stabilize-const-if-match, r=oli-obk 2020-06-28 20:47:52 +00:00
ui-fulldeps make all uses of ty::Error or ConstKind::Error delay a span bug 2020-06-15 18:25:58 -05:00
COMPILER_TESTS.md