Skip to content

Commit 3a2cbe6

Browse files
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 #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.
2 parents 8c88c03 + d757ecd commit 3a2cbe6

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/test/ui/consts/const-block-non-item-statement.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
enum Foo {
44
Bar = { let x = 1; 3 }

src/test/ui/consts/const-fn-destructuring-arg.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
const fn i((a, b): (u32, u32)) -> u32 {
44
a + b

src/test/ui/consts/const_let_assign.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
struct S(i32);
44

src/test/ui/consts/const_let_assign2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
pub struct AA {
44
pub data: [u8; 10],

0 commit comments

Comments
 (0)