Migrate compile-pass annotations to build-pass
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// compile-flags: -A bad-style
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
let _InappropriateCamelCasing = true;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// compile-flags: -W bad-style
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
fn main() {
|
||||
let _InappropriateCamelCasing = true;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// run-rustfix
|
||||
|
||||
#![warn(ellipsis_inclusive_range_patterns)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// run-rustfix
|
||||
|
||||
#![warn(ellipsis_inclusive_range_patterns)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(box_syntax)]
|
||||
#![feature(box_patterns)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![warn(unused_parens)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![forbid(non_camel_case_types)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(ellipsis_inclusive_range_patterns)]
|
||||
#![allow(unreachable_patterns)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// Issue #7526: lowercase static constants in patterns look like bindings
|
||||
|
||||
// This is similar to lint-lowercase-static-const-pattern.rs, except it
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![deny(non_camel_case_types)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(dead_code)]
|
||||
// This is ok because we often use the trailing underscore to mean 'prime'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(dead_code)]
|
||||
// pretty-expanded FIXME #23616
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![allow(dead_code)]
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// aux-build:lint_output_format.rs
|
||||
|
||||
#![feature(unstable_test_feature)]
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
extern crate lint_output_format;
|
||||
use lint_output_format::{foo, bar};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
// aux-build:lint_stability.rs
|
||||
// aux-build:inherited_stability.rs
|
||||
// aux-build:stability_cfg1.rs
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// FIXME(#44232) we should warn that this isn't used.
|
||||
#![feature(rust1)]
|
||||
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
|
||||
fn main() { }
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// FIXME(#44232) we should warn that this isn't used.
|
||||
#![feature(rust1)]
|
||||
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
|
||||
fn main() {}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// aux-build:lints-in-foreign-macros.rs
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![warn(unused_imports)] //~ missing documentation for crate [missing_docs]
|
||||
#![warn(missing_docs)]
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// Issue #50124 - Test warning for unused operator expressions
|
||||
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![warn(unused_must_use)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
// this tests the `unknown_lint` lint, especially the suggestions
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(lint_reasons)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
#![warn(overflowing_literals)]
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
// suggestions to use `crate` given when it is on). When that feature becomes
|
||||
// stable, this test can be deleted.
|
||||
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(crate_visibility_modifier)]
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![warn(unused_imports)] // Warning explanation here, it's OK
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// should also deal with the edge cases where a label is shadowed,
|
||||
// within nested loops
|
||||
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
#![feature(label_break_value)]
|
||||
#![warn(unused_labels)]
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// compile-flags: --error-format pretty-json -Zunstable-options
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
|
||||
// The output for humans should just highlight the whole span without showing
|
||||
// the suggested replacement, but we also want to test that suggested
|
||||
|
||||
@@ -8,8 +8,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 576,
|
||||
"byte_end": 589,
|
||||
"byte_start": 611,
|
||||
"byte_end": 624,
|
||||
"line_start": 15,
|
||||
"line_end": 15,
|
||||
"column_start": 14,
|
||||
@@ -36,8 +36,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 422,
|
||||
"byte_end": 435,
|
||||
"byte_start": 457,
|
||||
"byte_end": 470,
|
||||
"line_start": 10,
|
||||
"line_end": 10,
|
||||
"column_start": 9,
|
||||
@@ -66,8 +66,8 @@
|
||||
"spans": [
|
||||
{
|
||||
"file_name": "$DIR/unused_parens_json_suggestion.rs",
|
||||
"byte_start": 576,
|
||||
"byte_end": 589,
|
||||
"byte_start": 611,
|
||||
"byte_end": 624,
|
||||
"line_start": 15,
|
||||
"line_end": 15,
|
||||
"column_start": 14,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// compile-pass
|
||||
// build-pass (FIXME(62277): could be check-pass?)
|
||||
#![warn(unused_imports)]
|
||||
|
||||
use crate::foo::Bar; //~ WARNING first import
|
||||
|
||||
Reference in New Issue
Block a user