Skip to content

Commit 37bac9c

Browse files
Rollup merge of #97479 - JohnTitor:make-check-pass, r=compiler-errors
Make some tests check-pass This touches the tests related to lint, parser, and importing, all of them should be fine with `check-pass`. r? ``@compiler-errors``
2 parents a777d50 + 4444def commit 37bac9c

8 files changed

+11
-13
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
// check-pass
2+
13
// Tests the default for the unused_features lint
24

35
#![allow(stable_features)]
46
// FIXME(#44232) we should warn that this isn't used.
57
#![feature(rust1)]
68

7-
// build-pass (FIXME(62277): could be check-pass?)
8-
9-
10-
fn main() { }
9+
fn main() {}
+2-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
1+
// check-pass
2+
13
#![warn(unused_features)]
24

35
#![allow(stable_features)]
46
// FIXME(#44232) we should warn that this isn't used.
57
#![feature(rust1)]
68

7-
// build-pass (FIXME(62277): could be check-pass?)
8-
9-
109
fn main() {}

src/test/ui/parser/bounds-obj-parens.rs

+1-1
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(bare_trait_objects)]
44

src/test/ui/parser/impl-qpath.rs

+1-1
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: -Z parse-only
33

44
impl <*const u8>::AssocTy {} // OK

src/test/ui/parser/trailing-plus-in-bounds.rs

+1-1
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(bare_trait_objects)]
44

src/test/ui/parser/trait-plusequal-splitting.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Fixes issue where `+` in generics weren't parsed if they were part of a `+=`.
22

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

55
struct Whitespace<T: Clone + = ()> { t: T }
66
struct TokenSplit<T: Clone += ()> { t: T }

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

+1-1
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:duplicate.rs
33

44
extern crate duplicate;

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

+1-1
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
extern crate underscore_imports;

0 commit comments

Comments
 (0)