Skip to content

Rollup of 6 pull requests #68526

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 13 commits into from
Jan 25, 2020
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Use check-pass mode for lint tests
  • Loading branch information
tmiasko committed Jan 23, 2020
commit d915c016c986d3060d6275f472b8a6e4c22b56ea
2 changes: 1 addition & 1 deletion src/test/ui/lint/command-line-lint-group-allow.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// compile-flags: -A bad-style
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

fn main() {
let _InappropriateCamelCasing = true;
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/dead-code/tuple-struct-field.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![deny(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/inclusive-range-pattern-syntax.fixed
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// run-rustfix

#![warn(ellipsis_inclusive_range_patterns)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/inclusive-range-pattern-syntax.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
// run-rustfix

#![warn(ellipsis_inclusive_range_patterns)]
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lint-non-camel-case-variant.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![deny(non_camel_case_types)]

Expand Down
Original file line number Diff line number Diff line change
@@ -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'
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![allow(dead_code)]
// pretty-expanded FIXME #23616
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lint-nonstandard-style-unicode.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![allow(dead_code)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lint-output-format-2.rs
Original file line number Diff line number Diff line change
@@ -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};
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lint-stability-deprecated.rs
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/lints-in-foreign-macros.rs
Original file line number Diff line number Diff line change
@@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/reasons.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass

#![feature(lint_reasons)]

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/type-overflow.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(overflowing_literals)]

fn main() {
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/unused_labels.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/lint/use-redundant.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// build-pass (FIXME(62277): could be check-pass?)
// check-pass
#![warn(unused_imports)]

use crate::foo::Bar;
Expand Down