Use check-pass mode for lint tests

This commit is contained in:
Tomasz Miąsko 2020-01-23 00:00:00 +00:00
parent 5c73d21eaa
commit d915c016c9
16 changed files with 16 additions and 16 deletions

View File

@ -1,5 +1,5 @@
// compile-flags: -A bad-style
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
fn main() {
let _InappropriateCamelCasing = true;

View File

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

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// run-rustfix
#![warn(ellipsis_inclusive_range_patterns)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// run-rustfix
#![warn(ellipsis_inclusive_range_patterns)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// Issue #7526: lowercase static constants in patterns look like bindings
// This is similar to lint-lowercase-static-const-pattern.rs, except it

View File

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

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![allow(dead_code)]
// This is ok because we often use the trailing underscore to mean 'prime'

View File

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

View File

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

View File

@ -1,7 +1,7 @@
// aux-build:lint_output_format.rs
#![feature(unstable_test_feature)]
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
extern crate lint_output_format;
use lint_output_format::{foo, bar};

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// aux-build:lint_stability.rs
// aux-build:inherited_stability.rs
// aux-build:stability_cfg1.rs

View File

@ -1,5 +1,5 @@
// aux-build:lints-in-foreign-macros.rs
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
#![warn(missing_docs)]

View File

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

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(overflowing_literals)]
fn main() {

View File

@ -2,7 +2,7 @@
// should also deal with the edge cases where a label is shadowed,
// within nested loops
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![feature(label_break_value)]
#![warn(unused_labels)]

View File

@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused_imports)]
use crate::foo::Bar;