diff options
| author | Jonas Schievink <jonasschievink@gmail.com> | 2020-11-10 14:45:15 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-10 14:45:15 +0100 |
| commit | 3a2cbe6b830c28709076a5ce632fbfd447c5fe31 (patch) | |
| tree | a72a6f12bd661dd767574078e5731219379365f1 | |
| parent | 8c88c0324bde6133486b5e26a2c85fbe13df3793 (diff) | |
| parent | d757ecdc0c8cfc55983712c395a25259b6f09de7 (diff) | |
| download | rust-3a2cbe6b830c28709076a5ce632fbfd447c5fe31.tar.gz rust-3a2cbe6b830c28709076a5ce632fbfd447c5fe31.zip | |
Rollup merge of #78669 - sasurau4:test/check-pass-consts, r=jyn514
Use check-pass instead of build-pass in some consts ui test suits Helps with #62277 Changed tests modified by https://github.com/rust-lang/rust/pull/57175 because of the stabilization `#![feature(const_let)]`. They should be compile-fail because the feature gate checking disallow the feature before stabilization. So the feature gate checking have nothing to do with codegen according to https://rustc-dev-guide.rust-lang.org/feature-gate-ck.html.
| -rw-r--r-- | src/test/ui/consts/const-block-non-item-statement.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/const-fn-destructuring-arg.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/const_let_assign.rs | 2 | ||||
| -rw-r--r-- | src/test/ui/consts/const_let_assign2.rs | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/test/ui/consts/const-block-non-item-statement.rs b/src/test/ui/consts/const-block-non-item-statement.rs index 9aec8552695..07970b457a3 100644 --- a/src/test/ui/consts/const-block-non-item-statement.rs +++ b/src/test/ui/consts/const-block-non-item-statement.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass enum Foo { Bar = { let x = 1; 3 } diff --git a/src/test/ui/consts/const-fn-destructuring-arg.rs b/src/test/ui/consts/const-fn-destructuring-arg.rs index d2c89cb54a0..ea5c9ddc7ce 100644 --- a/src/test/ui/consts/const-fn-destructuring-arg.rs +++ b/src/test/ui/consts/const-fn-destructuring-arg.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass const fn i((a, b): (u32, u32)) -> u32 { a + b diff --git a/src/test/ui/consts/const_let_assign.rs b/src/test/ui/consts/const_let_assign.rs index 343fcb4859b..b83acfb73cf 100644 --- a/src/test/ui/consts/const_let_assign.rs +++ b/src/test/ui/consts/const_let_assign.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass struct S(i32); diff --git a/src/test/ui/consts/const_let_assign2.rs b/src/test/ui/consts/const_let_assign2.rs index 4787c1750d2..28265c85dd1 100644 --- a/src/test/ui/consts/const_let_assign2.rs +++ b/src/test/ui/consts/const_let_assign2.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass pub struct AA { pub data: [u8; 10], |
