Skip to content

Commit

Permalink
Move some const-eval build-pass tests to check-pass
Browse files Browse the repository at this point in the history
  • Loading branch information
LeSeulArtichaut committed Mar 12, 2020
1 parent 23de827 commit 7326e53
Show file tree
Hide file tree
Showing 20 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/const_prop_errors.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 trait Foo {
fn foo(self) -> u32;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/const_signed_pat.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

fn main() {
const MIN: i8 = -5;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/double_check.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 {
A = 5,
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/double_promotion.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// build-pass

#![feature(const_fn, rustc_attrs)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/duration_conversion.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

use std::time::Duration;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/extern_fat_pointer.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

#![feature(extern_types)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/ice-generic-assoc-const.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 trait Nullable {
const NULL: Self;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/ice-packed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// build-pass
#[derive(Copy, Clone, PartialEq, Eq)]
#[repr(packed)]
pub struct Num(u64);
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-47971.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(pub &'static u32, pub u32);

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-50706.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 Stats;

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-51300.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// build-pass
// https://github.com/rust-lang/rust/issues/51300

#[derive(PartialEq, Eq, Clone, Copy)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-53157.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

macro_rules! m {
() => {{
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-53401.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 const STATIC_TRAIT: &dyn Test = &();

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/issue-55541.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

// Test that we can handle newtypes wrapping extern types

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

// if `X` were used instead of `x`, `X - 10` would result in a lint.
// This file should never produce a lint, no matter how the const
Expand Down
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 fn main() {
let y: &'static mut [u8; 0] = &mut [];
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/pub_const_err.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
#![warn(const_err)]

#![crate_type = "lib"]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/pub_const_err_bin.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
#![warn(const_err)]

pub const Z: u32 = 0 - 1;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/simple_with_undef.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 PARSE_BOOL: Option<&'static str> = None;
static FOO: (Option<&str>, u32) = (PARSE_BOOL, 42);
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/consts/const-eval/zst_operand_eval.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

static ASSERT: () = [()][!(std::mem::size_of::<u32>() == 4) as usize];

Expand Down

0 comments on commit 7326e53

Please sign in to comment.