Migrate compile-pass annotations to build-pass

This commit is contained in:
Yuki Okushi
2019-07-03 06:30:28 +09:00
parent 848e0a23f3
commit c004451a20
711 changed files with 716 additions and 716 deletions

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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

View File

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

View File

@@ -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'

View File

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

View File

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

View File

@@ -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};

View File

@@ -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

View File

@@ -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() { }

View File

@@ -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() {}

View File

@@ -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)]

View File

@@ -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)]

View File

@@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// this tests the `unknown_lint` lint, especially the suggestions

View File

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

View File

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

View File

@@ -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)]

View File

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

View File

@@ -1,4 +1,4 @@
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
#![warn(unused_imports)] // Warning explanation here, it's OK

View File

@@ -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)]

View File

@@ -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

View File

@@ -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,

View File

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