Skip to content

Commit d915c01

Browse files
committed
Use check-pass mode for lint tests
1 parent 5c73d21 commit d915c01

16 files changed

+16
-16
lines changed

src/test/ui/lint/command-line-lint-group-allow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// compile-flags: -A bad-style
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
fn main() {
55
let _InappropriateCamelCasing = true;

src/test/ui/lint/dead-code/tuple-struct-field.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![deny(dead_code)]
44

src/test/ui/lint/inclusive-range-pattern-syntax.fixed

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// run-rustfix
33

44
#![warn(ellipsis_inclusive_range_patterns)]

src/test/ui/lint/inclusive-range-pattern-syntax.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// run-rustfix
33

44
#![warn(ellipsis_inclusive_range_patterns)]

src/test/ui/lint/lint-lowercase-static-const-pattern-rename.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// Issue #7526: lowercase static constants in patterns look like bindings
33

44
// This is similar to lint-lowercase-static-const-pattern.rs, except it

src/test/ui/lint/lint-non-camel-case-variant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![deny(non_camel_case_types)]
44

src/test/ui/lint/lint-non-camel-case-with-trailing-underscores.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![allow(dead_code)]
44
// This is ok because we often use the trailing underscore to mean 'prime'

src/test/ui/lint/lint-non-snake-case-no-lowercase-equivalent.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![allow(dead_code)]
44
// pretty-expanded FIXME #23616

src/test/ui/lint/lint-nonstandard-style-unicode.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![allow(dead_code)]
44

src/test/ui/lint/lint-output-format-2.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// aux-build:lint_output_format.rs
22

33
#![feature(unstable_test_feature)]
4-
// build-pass (FIXME(62277): could be check-pass?)
4+
// check-pass
55

66
extern crate lint_output_format;
77
use lint_output_format::{foo, bar};

src/test/ui/lint/lint-stability-deprecated.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
// aux-build:lint_stability.rs
33
// aux-build:inherited_stability.rs
44
// aux-build:stability_cfg1.rs

src/test/ui/lint/lints-in-foreign-macros.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// aux-build:lints-in-foreign-macros.rs
2-
// build-pass (FIXME(62277): could be check-pass?)
2+
// check-pass
33

44
#![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
55
#![warn(missing_docs)]

src/test/ui/lint/reasons.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22

33
#![feature(lint_reasons)]
44

src/test/ui/lint/type-overflow.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
#![warn(overflowing_literals)]
33

44
fn main() {

src/test/ui/lint/unused_labels.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
// should also deal with the edge cases where a label is shadowed,
33
// within nested loops
44

5-
// build-pass (FIXME(62277): could be check-pass?)
5+
// check-pass
66

77
#![feature(label_break_value)]
88
#![warn(unused_labels)]

src/test/ui/lint/use-redundant.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// build-pass (FIXME(62277): could be check-pass?)
1+
// check-pass
22
#![warn(unused_imports)]
33

44
use crate::foo::Bar;

0 commit comments

Comments
 (0)