Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make some tests check-pass #97479

Merged
merged 1 commit into from
May 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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