Skip to content

Commit

Permalink
Rollup merge of rust-lang#69460 - LeSeulArtichaut:move-compile-pass, …
Browse files Browse the repository at this point in the history
…r=RalfJung

Move some `build-pass` tests to `check-pass`

Helps with rust-lang#62277.

r? @cramertj cc @Centril
  • Loading branch information
Centril committed Mar 13, 2020
2 parents 737ed81 + 8f0fa24 commit 94cf531
Show file tree
Hide file tree
Showing 20 changed files with 23 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?)
// check-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
5 changes: 4 additions & 1 deletion src/test/ui/consts/const-eval/ice-packed.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
// build-pass (FIXME(62277): could be check-pass?)
// Regression test for #50356: Compiler panic when using repr(packed)
// associated constant in a match arm

// check-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?)
// check-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 94cf531

Please sign in to comment.