Skip to content

Commit 0144bf6

Browse files
authored
Rollup merge of #71340 - Valloric:more-check-pass, r=nikomatsakis
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 --- <!-- Reviewable:start --> This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/rust-lang/rust/71340) <!-- Reviewable:end -->
2 parents b7bd7c1 + 2155adb commit 0144bf6

40 files changed

+40
-40
lines changed

src/test/incremental/warnings-reemitted.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// revisions: cfail1 cfail2 cfail3
22
// compile-flags: -Coverflow-checks=on
3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// build-pass
44

55
#![warn(arithmetic_overflow)]
66

src/test/ui/anon-params/anon-params-deprecated.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![warn(anonymous_parameters)]
22
// Test for the anonymous_parameters deprecation lint (RFC 1685)
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
// edition:2015
66
// run-rustfix
77

src/test/ui/anon-params/anon-params-deprecated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#![warn(anonymous_parameters)]
22
// Test for the anonymous_parameters deprecation lint (RFC 1685)
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55
// edition:2015
66
// run-rustfix
77

src/test/ui/async-await/issues/issue-55324.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// edition:2018
33

44
use std::future::Future;

src/test/ui/async-await/issues/issue-58885.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// edition:2018
33

44
struct Xyz {

src/test/ui/async-await/issues/issue-59001.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// edition:2018
33

44
use std::future::Future;

src/test/ui/async-await/issues/issue-60655-latebound-regions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Test that opaque `impl Trait` types are allowed to contain late-bound regions.
22

3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// check-pass
44
// edition:2018
55

66
#![feature(type_alias_impl_trait)]

src/test/ui/attributes/item-attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// for completeness since .rs files linked from .rc files support this
33
// notation to specify their module's attributes
44

5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66

77
#![feature(rustc_attrs)]
88

src/test/ui/bastion-of-the-turbofish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
// Bastion of the Turbofish
44
// ------------------------

src/test/ui/codemap_tests/unicode_3.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
fn main() {
44
let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; } //~ WARNING while_true

src/test/ui/const-generics/cannot-infer-type-for-const-param.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
#![feature(const_generics)]
33
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash
44

src/test/ui/const-generics/issues/issue-60818-struct-constructors.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![feature(const_generics)]
44
//~^ WARN the feature `const_generics` is incomplete and may cause the compiler to crash

src/test/ui/deprecation/atomic_initializers.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#[allow(deprecated, unused_imports)]
55
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

src/test/ui/deprecation/atomic_initializers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#[allow(deprecated, unused_imports)]
55
use std::sync::atomic::{AtomicIsize, ATOMIC_ISIZE_INIT};

src/test/ui/derive-uninhabited-enum-38885.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// compile-flags: -Wunused
33

44
// ensure there are no special warnings about uninhabited types

src/test/ui/editions/edition-extern-crate-allowed.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// aux-build:edition-extern-crate-allowed.rs
22
// edition:2015
3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// check-pass
44

55
#![warn(rust_2018_idioms)]
66

src/test/ui/editions/edition-feature-redundant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// edition:2018
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#![feature(rust_2018_preview)]
55
//~^ WARN the feature `rust_2018_preview` is included in the Rust 2018 edition

src/test/ui/emit-artifact-notifications.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// compile-flags:--emit=metadata --error-format=json --json artifacts
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// build-pass
33
// ignore-pass
44
// ^-- needed because `--pass check` does not emit the output needed.
55

src/test/ui/error-codes/E0705.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
// This is a stub feature that doesn't control anything, so to make tidy happy,
44
// gate-test-test_2018_feature

src/test/ui/explain.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// compile-flags: --explain E0591
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass

src/test/ui/fn_must_use.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![warn(unused_must_use)]
44

src/test/ui/if/if-let.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
fn macros() {
44
macro_rules! foo{

src/test/ui/loops/loops-reject-duplicate-labels-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
// ignore-tidy-linelength
44

src/test/ui/loops/loops-reject-duplicate-labels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
// ignore-tidy-linelength
44

src/test/ui/loops/loops-reject-labels-shadowing-lifetimes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Issue #21633: reject duplicate loop labels in function bodies.
22
// This is testing interaction between lifetime-params and labels.
33

4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55

66
#![allow(dead_code, unused_variables)]
77

src/test/ui/loops/loops-reject-lifetime-shadowing-label.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![allow(dead_code, unused_variables)]
44

src/test/ui/macros/must-use-in-macro-55516.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// compile-flags: -Wunused
33

44
// make sure write!() can't hide its unused Result

src/test/ui/parser/underscore-suffix-for-string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
fn main() {
44
let _ = "Foo"_;

src/test/ui/proc-macro/attributes-included.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// aux-build:attributes-included.rs
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#![warn(unused)]
55

src/test/ui/rust-2018/macro-use-warned-against.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// aux-build:macro-use-warned-against.rs
22
// aux-build:macro-use-warned-against2.rs
3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// check-pass
44

55
#![warn(macro_use_extern_crate, unused)]
66

src/test/ui/rust-2018/remove-extern-crate.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-rustfix
22
// edition:2018
3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// check-pass
44
// aux-build:remove-extern-crate.rs
55
// compile-flags:--extern remove_extern_crate
66

src/test/ui/rust-2018/remove-extern-crate.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// run-rustfix
22
// edition:2018
3-
// build-pass (FIXME(62277): could be check-pass?)
3+
// check-pass
44
// aux-build:remove-extern-crate.rs
55
// compile-flags:--extern remove_extern_crate
66

src/test/ui/rust-2018/suggestions-not-always-applicable.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// edition:2015
33
// run-rustfix
44
// rustfix-only-machine-applicable
5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66

77
#![feature(rust_2018_preview)]
88
#![warn(rust_2018_compatibility)]

src/test/ui/rust-2018/suggestions-not-always-applicable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// edition:2015
33
// run-rustfix
44
// rustfix-only-machine-applicable
5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66

77
#![feature(rust_2018_preview)]
88
#![warn(rust_2018_compatibility)]

src/test/ui/rust-2018/try-ident.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#![warn(rust_2018_compatibility)]
55

src/test/ui/rust-2018/try-ident.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// run-rustfix
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#![warn(rust_2018_compatibility)]
55

src/test/ui/span/macro-span-replacement.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![warn(unused)]
44

src/test/ui/span/multispan-import-lint.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![warn(unused)]
44

src/test/ui/test-attrs/test-should-panic-attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// compile-flags: --test
33

44
#[test]

src/test/ui/underscore-imports/basic.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// aux-build:underscore-imports.rs
33

44
#![warn(unused_imports, unused_extern_crates)]

0 commit comments

Comments
 (0)