From 4444defc1b4fbf66d234b0b68a43eb95be86e27f Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 28 May 2022 18:57:02 +0900 Subject: [PATCH] Make some tests check-pass --- src/test/ui/lint/lint-unknown-feature-default.rs | 7 +++---- src/test/ui/lint/lint-unknown-feature.rs | 5 ++--- src/test/ui/parser/bounds-obj-parens.rs | 2 +- src/test/ui/parser/impl-qpath.rs | 2 +- src/test/ui/parser/trailing-plus-in-bounds.rs | 2 +- src/test/ui/parser/trait-plusequal-splitting.rs | 2 +- src/test/ui/underscore-imports/duplicate.rs | 2 +- src/test/ui/underscore-imports/intercrate.rs | 2 +- 8 files changed, 11 insertions(+), 13 deletions(-) diff --git a/src/test/ui/lint/lint-unknown-feature-default.rs b/src/test/ui/lint/lint-unknown-feature-default.rs index aebc4f1808573..84a2e5a4b3549 100644 --- a/src/test/ui/lint/lint-unknown-feature-default.rs +++ b/src/test/ui/lint/lint-unknown-feature-default.rs @@ -1,10 +1,9 @@ +// check-pass + // Tests the default for the unused_features lint #![allow(stable_features)] // FIXME(#44232) we should warn that this isn't used. #![feature(rust1)] -// build-pass (FIXME(62277): could be check-pass?) - - -fn main() { } +fn main() {} diff --git a/src/test/ui/lint/lint-unknown-feature.rs b/src/test/ui/lint/lint-unknown-feature.rs index 93fa7a6e96e37..1af8d4ff8420f 100644 --- a/src/test/ui/lint/lint-unknown-feature.rs +++ b/src/test/ui/lint/lint-unknown-feature.rs @@ -1,10 +1,9 @@ +// check-pass + #![warn(unused_features)] #![allow(stable_features)] // FIXME(#44232) we should warn that this isn't used. #![feature(rust1)] -// build-pass (FIXME(62277): could be check-pass?) - - fn main() {} diff --git a/src/test/ui/parser/bounds-obj-parens.rs b/src/test/ui/parser/bounds-obj-parens.rs index ae8112b61c66f..8c446d27d0a94 100644 --- a/src/test/ui/parser/bounds-obj-parens.rs +++ b/src/test/ui/parser/bounds-obj-parens.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass #![allow(bare_trait_objects)] diff --git a/src/test/ui/parser/impl-qpath.rs b/src/test/ui/parser/impl-qpath.rs index ab45649f4de49..d1f0a02041bee 100644 --- a/src/test/ui/parser/impl-qpath.rs +++ b/src/test/ui/parser/impl-qpath.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass // compile-flags: -Z parse-only impl <*const u8>::AssocTy {} // OK diff --git a/src/test/ui/parser/trailing-plus-in-bounds.rs b/src/test/ui/parser/trailing-plus-in-bounds.rs index 61819cabdf178..400649bcf752f 100644 --- a/src/test/ui/parser/trailing-plus-in-bounds.rs +++ b/src/test/ui/parser/trailing-plus-in-bounds.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass #![allow(bare_trait_objects)] diff --git a/src/test/ui/parser/trait-plusequal-splitting.rs b/src/test/ui/parser/trait-plusequal-splitting.rs index 26ac3ead6a5a6..6ca6774507b88 100644 --- a/src/test/ui/parser/trait-plusequal-splitting.rs +++ b/src/test/ui/parser/trait-plusequal-splitting.rs @@ -1,6 +1,6 @@ // Fixes issue where `+` in generics weren't parsed if they were part of a `+=`. -// build-pass (FIXME(62277): could be check-pass?) +// check-pass struct Whitespace { t: T } struct TokenSplit { t: T } diff --git a/src/test/ui/underscore-imports/duplicate.rs b/src/test/ui/underscore-imports/duplicate.rs index 3662a466ded14..20bc7848acd66 100644 --- a/src/test/ui/underscore-imports/duplicate.rs +++ b/src/test/ui/underscore-imports/duplicate.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass // aux-build:duplicate.rs extern crate duplicate; diff --git a/src/test/ui/underscore-imports/intercrate.rs b/src/test/ui/underscore-imports/intercrate.rs index 1cccc67e9ab63..144f95bace1c0 100644 --- a/src/test/ui/underscore-imports/intercrate.rs +++ b/src/test/ui/underscore-imports/intercrate.rs @@ -1,4 +1,4 @@ -// build-pass (FIXME(62277): could be check-pass?) +// check-pass // aux-build:underscore-imports.rs extern crate underscore_imports;