Use check-pass mode for lint tests
This commit is contained in:
parent
5c73d21eaa
commit
d915c016c9
@ -1,5 +1,5 @@
|
|||||||
// compile-flags: -A bad-style
|
// compile-flags: -A bad-style
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
let _InappropriateCamelCasing = true;
|
let _InappropriateCamelCasing = true;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![deny(dead_code)]
|
#![deny(dead_code)]
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// run-rustfix
|
// run-rustfix
|
||||||
|
|
||||||
#![warn(ellipsis_inclusive_range_patterns)]
|
#![warn(ellipsis_inclusive_range_patterns)]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// run-rustfix
|
// run-rustfix
|
||||||
|
|
||||||
#![warn(ellipsis_inclusive_range_patterns)]
|
#![warn(ellipsis_inclusive_range_patterns)]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// Issue #7526: lowercase static constants in patterns look like bindings
|
// Issue #7526: lowercase static constants in patterns look like bindings
|
||||||
|
|
||||||
// This is similar to lint-lowercase-static-const-pattern.rs, except it
|
// This is similar to lint-lowercase-static-const-pattern.rs, except it
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![deny(non_camel_case_types)]
|
#![deny(non_camel_case_types)]
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
// This is ok because we often use the trailing underscore to mean 'prime'
|
// This is ok because we often use the trailing underscore to mean 'prime'
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
// pretty-expanded FIXME #23616
|
// pretty-expanded FIXME #23616
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
// aux-build:lint_output_format.rs
|
// aux-build:lint_output_format.rs
|
||||||
|
|
||||||
#![feature(unstable_test_feature)]
|
#![feature(unstable_test_feature)]
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
extern crate lint_output_format;
|
extern crate lint_output_format;
|
||||||
use lint_output_format::{foo, bar};
|
use lint_output_format::{foo, bar};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
// aux-build:lint_stability.rs
|
// aux-build:lint_stability.rs
|
||||||
// aux-build:inherited_stability.rs
|
// aux-build:inherited_stability.rs
|
||||||
// aux-build:stability_cfg1.rs
|
// aux-build:stability_cfg1.rs
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
// aux-build:lints-in-foreign-macros.rs
|
// 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(unused_imports)] //~ missing documentation for crate [missing_docs]
|
||||||
#![warn(missing_docs)]
|
#![warn(missing_docs)]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![feature(lint_reasons)]
|
#![feature(lint_reasons)]
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
#![warn(overflowing_literals)]
|
#![warn(overflowing_literals)]
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
// should also deal with the edge cases where a label is shadowed,
|
// should also deal with the edge cases where a label is shadowed,
|
||||||
// within nested loops
|
// within nested loops
|
||||||
|
|
||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
|
|
||||||
#![feature(label_break_value)]
|
#![feature(label_break_value)]
|
||||||
#![warn(unused_labels)]
|
#![warn(unused_labels)]
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
// build-pass (FIXME(62277): could be check-pass?)
|
// check-pass
|
||||||
#![warn(unused_imports)]
|
#![warn(unused_imports)]
|
||||||
|
|
||||||
use crate::foo::Bar;
|
use crate::foo::Bar;
|
||||||
|
Loading…
Reference in New Issue
Block a user