Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move some build-pass tests to check-pass #69460

Merged
merged 2 commits into from
Mar 13, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
RalfJung marked this conversation as resolved.
Show resolved Hide resolved
// 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