未验证 提交 37bac9ca 编写于 作者: G Guillaume Gomez 提交者: GitHub

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``
// 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() {}
// 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() {}
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(bare_trait_objects)]
......
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// compile-flags: -Z parse-only
impl <*const u8>::AssocTy {} // OK
......
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(bare_trait_objects)]
......
// 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 }
......
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:duplicate.rs
extern crate duplicate;
......
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:underscore-imports.rs
extern crate underscore_imports;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册