Skip to content

Commit 67587af

Browse files
committed
test: audit consts tests
1 parent 20ebe31 commit 67587af

18 files changed

Lines changed: 18 additions & 18 deletions

tests/ui/consts/check_const-feature-gated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22

33
const ARR: [usize; 1] = [2];
44

tests/ui/consts/const-block-non-item-statement-3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
#![allow(dead_code, unused)]
33

44
type Array = [u32; { let x = 2; 5 }];

tests/ui/consts/const-byte-str-cast.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
#[deny(warnings)]
33

44
pub fn main() {

tests/ui/consts/const-eval/const_fn_ptr_fail.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
//@ compile-flags: -Zunleash-the-miri-inside-of-you
33
#![allow(unused)]
44

tests/ui/consts/const-eval/issue-64970.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22

33
fn main() {
44
foo(10);

tests/ui/consts/const-expr-in-vec-repeat.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
// Check that constant expressions can be used in vec repeat syntax.
33

44

tests/ui/consts/const-fn-const-eval.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
#![allow(dead_code)]
33

44
const fn add(x: usize, y: usize) -> usize {

tests/ui/consts/const-index-feature-gate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
#![allow(dead_code)]
33
const ARR: [usize; 1] = [2];
44
const ARR2: [i32; ARR[0]] = [5, 6];

tests/ui/consts/const-vec-syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22

33
fn f(_: &[isize]) {}
44

tests/ui/consts/issue-13902.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//@ run-pass
1+
//@ check-pass
22
#![allow(dead_code)]
33
#![allow(non_camel_case_types)]
44

0 commit comments

Comments
 (0)