Skip to content

Commit

Permalink
Rollup merge of #97479 - JohnTitor:make-check-pass, r=compiler-errors
Browse files Browse the repository at this point in the history
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``
  • Loading branch information
GuillaumeGomez authored May 28, 2022
2 parents a777d50 + 4444def commit 37bac9c
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 13 deletions.
7 changes: 3 additions & 4 deletions src/test/ui/lint/lint-unknown-feature-default.rs
Original file line number Diff line number Diff line change
@@ -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() {}
5 changes: 2 additions & 3 deletions src/test/ui/lint/lint-unknown-feature.rs
Original file line number Diff line number Diff line change
@@ -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() {}
2 changes: 1 addition & 1 deletion src/test/ui/parser/bounds-obj-parens.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

#![allow(bare_trait_objects)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/impl-qpath.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
// compile-flags: -Z parse-only

impl <*const u8>::AssocTy {} // OK
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/trailing-plus-in-bounds.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

#![allow(bare_trait_objects)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/parser/trait-plusequal-splitting.rs
Original file line number Diff line number Diff line change
@@ -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: Clone + = ()> { t: T }
struct TokenSplit<T: Clone += ()> { t: T }
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/underscore-imports/duplicate.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
// aux-build:duplicate.rs

extern crate duplicate;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/underscore-imports/intercrate.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
// aux-build:underscore-imports.rs

extern crate underscore_imports;
Expand Down

0 comments on commit 37bac9c

Please sign in to comment.