Make some tests check-pass

This commit is contained in:
Yuki Okushi 2022-05-28 18:57:02 +09:00
parent ed76b773b5
commit 4444defc1b
No known key found for this signature in database
GPG key ID: 379CEEFDD63E5DD7
8 changed files with 11 additions and 13 deletions

View file

@ -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() {}

View file

@ -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() {}

View file

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(bare_trait_objects)]

View file

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags: -Z parse-only
impl <*const u8>::AssocTy {} // OK

View file

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(bare_trait_objects)]

View file

@ -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 }

View file

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:duplicate.rs
extern crate duplicate;

View file

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:underscore-imports.rs
extern crate underscore_imports;