Moving more build-pass tests to check-pass

One or two tests became build-pass without the FIXME because they really
needed build-pass (were failing without it).

Helps with #62277
This commit is contained in:
Val Markovic 2020-04-19 17:27:28 -07:00
parent 14b15521c5
commit 2155adbc3a
40 changed files with 40 additions and 40 deletions

View File

@ -1,6 +1,6 @@
// revisions: cfail1 cfail2 cfail3
// compile-flags: -Coverflow-checks=on
// build-pass (FIXME(62277): could be check-pass?)
// build-pass
#![warn(arithmetic_overflow)]

View File

@ -1,7 +1,7 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2015
// run-rustfix

View File

@ -1,7 +1,7 @@
#![warn(anonymous_parameters)]
// Test for the anonymous_parameters deprecation lint (RFC 1685)
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2015
// run-rustfix

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2018
use std::future::Future;

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2018
struct Xyz {

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2018
use std::future::Future;

View File

@ -1,6 +1,6 @@
// Test that opaque `impl Trait` types are allowed to contain late-bound regions.
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// edition:2018
#![feature(type_alias_impl_trait)]

View File

@ -2,7 +2,7 @@
// for completeness since .rs files linked from .rc files support this
// notation to specify their module's attributes
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(rustc_attrs)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// Bastion of the Turbofish
// ------------------------

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
fn main() {
let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; } //~ WARNING while_true

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(const_generics)]
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

View File

@ -1,5 +1,5 @@
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

View File

@ -1,5 +1,5 @@
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#[allow(deprecated, unused_imports)]
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags: -Wunused
// ensure there are no special warnings about uninhabited types

View File

@ -1,6 +1,6 @@
// aux-build:edition-extern-crate-allowed.rs
// edition:2015
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(rust_2018_idioms)]

View File

@ -1,5 +1,5 @@
// edition:2018
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(rust_2018_preview)]
//~^ WARN the feature `rust_2018_preview` is included in the Rust 2018 edition

View File

@ -1,5 +1,5 @@
// compile-flags:--emit=metadata --error-format=json --json artifacts
// build-pass (FIXME(62277): could be check-pass?)
// build-pass
// ignore-pass
// ^-- needed because `--pass check` does not emit the output needed.

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// This is a stub feature that doesn't control anything, so to make tidy happy,
// gate-test-test_2018_feature

View File

@ -1,2 +1,2 @@
// compile-flags: --explain E0591
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused_must_use)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
fn macros() {
macro_rules! foo{

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// ignore-tidy-linelength

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// ignore-tidy-linelength

View File

@ -1,7 +1,7 @@
// Issue #21633: reject duplicate loop labels in function bodies.
// This is testing interaction between lifetime-params and labels.
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(dead_code, unused_variables)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(dead_code, unused_variables)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags: -Wunused
// make sure write!() can't hide its unused Result

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
fn main() {
let _ = "Foo"_;

View File

@ -1,5 +1,5 @@
// aux-build:attributes-included.rs
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused)]

View File

@ -1,6 +1,6 @@
// aux-build:macro-use-warned-against.rs
// aux-build:macro-use-warned-against2.rs
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(macro_use_extern_crate, unused)]

View File

@ -1,6 +1,6 @@
// run-rustfix
// edition:2018
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:remove-extern-crate.rs
// compile-flags:--extern remove_extern_crate

View File

@ -1,6 +1,6 @@
// run-rustfix
// edition:2018
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:remove-extern-crate.rs
// compile-flags:--extern remove_extern_crate

View File

@ -2,7 +2,7 @@
// edition:2015
// run-rustfix
// rustfix-only-machine-applicable
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(rust_2018_preview)]
#![warn(rust_2018_compatibility)]

View File

@ -2,7 +2,7 @@
// edition:2015
// run-rustfix
// rustfix-only-machine-applicable
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(rust_2018_preview)]
#![warn(rust_2018_compatibility)]

View File

@ -1,5 +1,5 @@
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(rust_2018_compatibility)]

View File

@ -1,5 +1,5 @@
// run-rustfix
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(rust_2018_compatibility)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags: --test
#[test]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:underscore-imports.rs
#![warn(unused_imports, unused_extern_crates)]