Skip to content

Commit

Permalink
Rollup merge of #78669 - sasurau4:test/check-pass-consts, r=jyn514
Browse files Browse the repository at this point in the history
Use check-pass instead of build-pass in some consts ui test suits

Helps with #62277

Changed tests modified by #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.
  • Loading branch information
jonas-schievink committed Nov 10, 2020
2 parents 8c88c03 + d757ecd commit 3a2cbe6
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-block-non-item-statement.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

enum Foo {
Bar = { let x = 1; 3 }
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-fn-destructuring-arg.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

const fn i((a, b): (u32, u32)) -> u32 {
a + b
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const_let_assign.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

struct S(i32);

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const_let_assign2.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

pub struct AA {
pub data: [u8; 10],
Expand Down

0 comments on commit 3a2cbe6

Please sign in to comment.