From 812656dc9543a16c27cf0a5aad1171ea3cc01a0d Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Mon, 2 Apr 2018 13:20:06 +0200 Subject: [PATCH] Rename must-compile-successfully into compile-pass --- src/test/COMPILER_TESTS.md | 4 ++-- .../expect-fn-supply-fn-multiple.rs | 2 +- ...expect-infer-var-supply-ty-with-bound-region.rs | 2 +- .../expect-infer-var-supply-ty-with-free-region.rs | 2 +- src/test/compile-fail/issue-47309.rs | 2 +- src/test/compile-fail/rmeta-lib-pass.rs | 2 +- src/test/compile-fail/rmeta-pass.rs | 2 +- src/test/compile-fail/rmeta-priv-warn.rs | 2 +- .../incremental-fulldeps/incremental_proc_macro.rs | 2 +- .../struct_point.rs | 2 +- .../incremental/change_add_field/struct_point.rs | 2 +- src/test/incremental/change_crate_dep_kind.rs | 2 +- .../incremental/change_private_fn/struct_point.rs | 2 +- .../change_private_fn_cc/struct_point.rs | 2 +- .../change_private_impl_method/struct_point.rs | 2 +- .../change_private_impl_method_cc/struct_point.rs | 2 +- .../struct_point.rs | 2 +- .../change_pub_inherent_method_sig/struct_point.rs | 2 +- src/test/incremental/hashes/call_expressions.rs | 2 +- src/test/incremental/hashes/closure_expressions.rs | 2 +- src/test/incremental/hashes/consts.rs | 2 +- src/test/incremental/hashes/enum_constructors.rs | 2 +- src/test/incremental/hashes/enum_defs.rs | 2 +- src/test/incremental/hashes/exported_vs_not.rs | 2 +- src/test/incremental/hashes/extern_mods.rs | 2 +- src/test/incremental/hashes/for_loops.rs | 2 +- src/test/incremental/hashes/function_interfaces.rs | 2 +- src/test/incremental/hashes/if_expressions.rs | 2 +- .../incremental/hashes/indexing_expressions.rs | 2 +- src/test/incremental/hashes/inherent_impls.rs | 2 +- src/test/incremental/hashes/inline_asm.rs | 2 +- src/test/incremental/hashes/let_expressions.rs | 2 +- src/test/incremental/hashes/loop_expressions.rs | 2 +- src/test/incremental/hashes/match_expressions.rs | 2 +- src/test/incremental/hashes/panic_exprs.rs | 2 +- src/test/incremental/hashes/statics.rs | 2 +- src/test/incremental/hashes/struct_constructors.rs | 2 +- src/test/incremental/hashes/struct_defs.rs | 2 +- src/test/incremental/hashes/trait_defs.rs | 2 +- src/test/incremental/hashes/trait_impls.rs | 2 +- src/test/incremental/hashes/type_defs.rs | 2 +- .../incremental/hashes/unary_and_binary_exprs.rs | 2 +- src/test/incremental/hashes/while_let_loops.rs | 2 +- src/test/incremental/hashes/while_loops.rs | 2 +- src/test/incremental/ich_nested_items.rs | 2 +- src/test/incremental/issue-42602.rs | 2 +- src/test/incremental/issue-49595/issue_49595.rs | 2 +- src/test/incremental/krate-inherent.rs | 2 +- src/test/incremental/macro_export.rs | 2 +- src/test/incremental/remove_source_file/main.rs | 2 +- src/test/incremental/string_constant.rs | 2 +- src/test/incremental/warnings-reemitted.rs | 2 +- .../termination-trait-for-box-dyn-error.rs | 2 +- .../termination-trait-for-result-box-error_err.rs | 2 +- src/test/ui/check_match/issue-43253.rs | 2 +- src/test/ui/codemap_tests/unicode_3.rs | 2 +- src/test/ui/const-eval/const_transmute.rs | 2 +- src/test/ui/const-eval/issue-47971.rs | 2 +- .../no_lint_for_statically_known_error.rs | 2 +- src/test/ui/const-expr-addr-operator.rs | 2 +- src/test/ui/const-pattern-not-const-evaluable.rs | 2 +- src/test/ui/explain.rs | 2 +- src/test/ui/feature-gate-const-indexing.rs | 2 +- .../issue-43106-gating-of-macro_escape.rs | 2 +- src/test/ui/generic-param-attrs.rs | 2 +- src/test/ui/hello_world/main.rs | 2 +- .../ui/inference-variable-behind-raw-pointer.rs | 2 +- src/test/ui/issue-38875/issue_38875.rs | 2 +- src/test/ui/issue-47094.rs | 2 +- src/test/ui/lint/command-line-lint-group-allow.rs | 2 +- src/test/ui/lint/command-line-lint-group-warn.rs | 2 +- ...ssue-47390-unused-variable-in-struct-pattern.rs | 2 +- ...ue-47775-nested-macro-unnecessary-parens-arg.rs | 2 +- src/test/ui/lint/not_found.rs | 2 +- src/test/ui/lint/type-overflow.rs | 2 +- src/test/ui/lint/unreachable_pub-pub_crate.rs | 2 +- src/test/ui/lint/unreachable_pub.rs | 2 +- src/test/ui/lint/unused_parens_json_suggestion.rs | 2 +- .../ui/lint/unused_parens_json_suggestion.stderr | 12 ++++++------ src/test/ui/macros/trace-macro.rs | 2 +- .../propagate-despite-same-free-region.rs | 2 +- ...lbr1-does-outlive-lbr2-because-implied-bound.rs | 2 +- src/test/ui/nll/constant.rs | 2 +- src/test/ui/nll/drop-may-dangle.rs | 2 +- src/test/ui/nll/generator-distinct-lifetime.rs | 2 +- src/test/ui/nll/issue-16223.rs | 2 +- src/test/ui/nll/issue-43058.rs | 2 +- src/test/ui/nll/issue-47022.rs | 2 +- .../ui/nll/maybe-initialized-drop-uninitialized.rs | 2 +- src/test/ui/nll/projection-return.rs | 2 +- ...ection-one-region-trait-bound-static-closure.rs | 2 +- .../ui/nll/ty-outlives/ty-param-implied-bounds.rs | 2 +- src/test/ui/print-fuel/print-fuel.rs | 2 +- src/test/ui/print_type_sizes/anonymous.rs | 2 +- src/test/ui/print_type_sizes/generics.rs | 2 +- src/test/ui/print_type_sizes/multiple_types.rs | 2 +- src/test/ui/print_type_sizes/niche-filling.rs | 2 +- src/test/ui/print_type_sizes/no_duplicates.rs | 2 +- src/test/ui/print_type_sizes/packed.rs | 2 +- src/test/ui/print_type_sizes/padding.rs | 2 +- src/test/ui/print_type_sizes/repr-align.rs | 2 +- src/test/ui/print_type_sizes/uninhabited.rs | 2 +- src/test/ui/print_type_sizes/variants.rs | 2 +- src/test/ui/reachable/expr_andand.rs | 2 +- src/test/ui/reachable/expr_oror.rs | 2 +- src/test/ui/rfc-2093-infer-outlives/enum-pass.rs | 2 +- .../explicit-impl-lifetime-pass.rs | 2 +- .../rfc-2093-infer-outlives/explicit-impl-pass.rs | 2 +- .../rfc-2093-infer-outlives/explicit-where-pass.rs | 2 +- .../multiple-regions-pass.rs | 2 +- .../rfc-2093-infer-outlives/nested-structs-pass.rs | 2 +- .../ui/rfc-2093-infer-outlives/projections-pass.rs | 2 +- .../ui/rfc-2093-infer-outlives/reference-pass.rs | 2 +- src/test/ui/rfc-2093-infer-outlives/union-pass.rs | 2 +- src/test/ui/rfc-2166-underscore-imports/basic.rs | 2 +- .../parse/in-trait-impl.rs | 2 +- .../parse/in-trait.rs | 2 +- .../rfc_1940-must_use_on_functions/fn_must_use.rs | 2 +- src/test/ui/span/macro-span-replacement.rs | 2 +- src/test/ui/span/multispan-import-lint.rs | 2 +- src/test/ui/type-alias-bounds.rs | 2 +- src/test/ui/union/union-const-eval.rs | 2 +- src/tools/compiletest/src/header.rs | 14 +++++++------- src/tools/compiletest/src/runtest.rs | 4 ++-- 124 files changed, 137 insertions(+), 137 deletions(-) diff --git a/src/test/COMPILER_TESTS.md b/src/test/COMPILER_TESTS.md index 8553665c01797..29f1e2e5b781e 100644 --- a/src/test/COMPILER_TESTS.md +++ b/src/test/COMPILER_TESTS.md @@ -68,7 +68,7 @@ Some examples of `X` in `ignore-X`: * `min-{gdb,lldb}-version` * `min-llvm-version` -* `must-compile-successfully` for UI tests, indicates that the test is supposed +* `compile-pass` for UI tests, indicates that the test is supposed to compile, as opposed to the default where the test is supposed to error out. * `compile-flags` passes extra command-line args to the compiler, e.g. `compile-flags -g` which forces debuginfo to be enabled. @@ -134,7 +134,7 @@ so forth. Normally, the test-runner checks that UI tests fail compilation. If you want to do a UI test for code that *compiles* (e.g. to test warnings, or if you have a collection of tests, only some of which error out), you can use the -`// must-compile-successfully` header command to have the test runner instead +`// compile-pass` header command to have the test runner instead check that the test compiles successfully. ### Editing and updating the reference files diff --git a/src/test/compile-fail/closure-expected-type/expect-fn-supply-fn-multiple.rs b/src/test/compile-fail/closure-expected-type/expect-fn-supply-fn-multiple.rs index 124e55ea23a00..32efb01c0fe81 100644 --- a/src/test/compile-fail/closure-expected-type/expect-fn-supply-fn-multiple.rs +++ b/src/test/compile-fail/closure-expected-type/expect-fn-supply-fn-multiple.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![allow(warnings)] diff --git a/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs b/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs index f8cb643c8d646..6767aa62f784d 100644 --- a/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs +++ b/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-bound-region.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass fn with_closure(_: F) where F: FnOnce(A, &u32) diff --git a/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs b/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs index d3c111c5daf15..aea5cb21e635e 100644 --- a/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs +++ b/src/test/compile-fail/closure-expected-type/expect-infer-var-supply-ty-with-free-region.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass fn with_closure(_: F) where F: FnOnce(A, &u32) diff --git a/src/test/compile-fail/issue-47309.rs b/src/test/compile-fail/issue-47309.rs index 7141bd62dc0d2..1b9ff36f7145d 100644 --- a/src/test/compile-fail/issue-47309.rs +++ b/src/test/compile-fail/issue-47309.rs @@ -13,7 +13,7 @@ // See https://github.com/rust-lang/rust/issues/47309 // compile-flags:-Clink-dead-code -// must-compile-successfully +// compile-pass #![crate_type="rlib"] diff --git a/src/test/compile-fail/rmeta-lib-pass.rs b/src/test/compile-fail/rmeta-lib-pass.rs index dde559b018cde..2df6a659724c6 100644 --- a/src/test/compile-fail/rmeta-lib-pass.rs +++ b/src/test/compile-fail/rmeta-lib-pass.rs @@ -11,7 +11,7 @@ // compile-flags: --emit=metadata // aux-build:rmeta_rlib.rs // no-prefer-dynamic -// must-compile-successfully +// compile-pass // Check that building a metadata crate works with a dependent, rlib crate. // This is a cfail test since there is no executable to run. diff --git a/src/test/compile-fail/rmeta-pass.rs b/src/test/compile-fail/rmeta-pass.rs index 5b24da79a7e63..6ee914c5e5b18 100644 --- a/src/test/compile-fail/rmeta-pass.rs +++ b/src/test/compile-fail/rmeta-pass.rs @@ -11,7 +11,7 @@ // compile-flags: --emit=metadata // aux-build:rmeta_meta.rs // no-prefer-dynamic -// must-compile-successfully +// compile-pass // Check that building a metadata crate works with a dependent, metadata-only // crate. diff --git a/src/test/compile-fail/rmeta-priv-warn.rs b/src/test/compile-fail/rmeta-priv-warn.rs index 3e7019e0ccc0e..bcf869c9432cb 100644 --- a/src/test/compile-fail/rmeta-priv-warn.rs +++ b/src/test/compile-fail/rmeta-priv-warn.rs @@ -10,7 +10,7 @@ // compile-flags: --emit=metadata // no-prefer-dynamic -// must-compile-successfully +// compile-pass #[deny(warnings)] diff --git a/src/test/incremental-fulldeps/incremental_proc_macro.rs b/src/test/incremental-fulldeps/incremental_proc_macro.rs index e434507085332..103ee30baba93 100644 --- a/src/test/incremental-fulldeps/incremental_proc_macro.rs +++ b/src/test/incremental-fulldeps/incremental_proc_macro.rs @@ -11,7 +11,7 @@ // aux-build:incremental_proc_macro_aux.rs // ignore-stage1 // revisions: cfail1 cfail2 -// must-compile-successfully +// compile-pass // This test makes sure that we still find the proc-macro registrar function // when we compile proc-macros incrementally (see #47292). diff --git a/src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs b/src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs index 067ce51d0f785..90a532a6cd6d4 100644 --- a/src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs +++ b/src/test/incremental/add_private_fn_at_krate_root_cc/struct_point.rs @@ -15,7 +15,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph // aux-build:point.rs -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/src/test/incremental/change_add_field/struct_point.rs b/src/test/incremental/change_add_field/struct_point.rs index b1c566e1739ef..da3b9e4d6d65f 100644 --- a/src/test/incremental/change_add_field/struct_point.rs +++ b/src/test/incremental/change_add_field/struct_point.rs @@ -15,7 +15,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/src/test/incremental/change_crate_dep_kind.rs b/src/test/incremental/change_crate_dep_kind.rs index 0dc5dbd38f527..2e418cc504875 100644 --- a/src/test/incremental/change_crate_dep_kind.rs +++ b/src/test/incremental/change_crate_dep_kind.rs @@ -13,7 +13,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -Cpanic=unwind -// must-compile-successfully +// compile-pass #![feature(panic_unwind)] diff --git a/src/test/incremental/change_private_fn/struct_point.rs b/src/test/incremental/change_private_fn/struct_point.rs index d8251a4fbcf6c..63e137a7e0bd3 100644 --- a/src/test/incremental/change_private_fn/struct_point.rs +++ b/src/test/incremental/change_private_fn/struct_point.rs @@ -13,7 +13,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/src/test/incremental/change_private_fn_cc/struct_point.rs b/src/test/incremental/change_private_fn_cc/struct_point.rs index b3816b90194e4..c79dc6e341815 100644 --- a/src/test/incremental/change_private_fn_cc/struct_point.rs +++ b/src/test/incremental/change_private_fn_cc/struct_point.rs @@ -14,7 +14,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph // aux-build:point.rs -// must-compile-successfully +// compile-pass #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/src/test/incremental/change_private_impl_method/struct_point.rs b/src/test/incremental/change_private_impl_method/struct_point.rs index c18f95a631205..7f2dd81d0ea13 100644 --- a/src/test/incremental/change_private_impl_method/struct_point.rs +++ b/src/test/incremental/change_private_impl_method/struct_point.rs @@ -13,7 +13,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![feature(stmt_expr_attributes)] diff --git a/src/test/incremental/change_private_impl_method_cc/struct_point.rs b/src/test/incremental/change_private_impl_method_cc/struct_point.rs index 55e1dffe9da41..f32ef9622f0d8 100644 --- a/src/test/incremental/change_private_impl_method_cc/struct_point.rs +++ b/src/test/incremental/change_private_impl_method_cc/struct_point.rs @@ -14,7 +14,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph // aux-build:point.rs -// must-compile-successfully +// compile-pass #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/src/test/incremental/change_pub_inherent_method_body/struct_point.rs b/src/test/incremental/change_pub_inherent_method_body/struct_point.rs index 2cb7ef13f8e52..412fe72e4e4be 100644 --- a/src/test/incremental/change_pub_inherent_method_body/struct_point.rs +++ b/src/test/incremental/change_pub_inherent_method_body/struct_point.rs @@ -12,7 +12,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs b/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs index f2485a876cc60..c82f4645caf64 100644 --- a/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs +++ b/src/test/incremental/change_pub_inherent_method_sig/struct_point.rs @@ -12,7 +12,7 @@ // revisions:cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/src/test/incremental/hashes/call_expressions.rs b/src/test/incremental/hashes/call_expressions.rs index da8a62a976508..3416669dbfa8d 100644 --- a/src/test/incremental/hashes/call_expressions.rs +++ b/src/test/incremental/hashes/call_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/closure_expressions.rs b/src/test/incremental/hashes/closure_expressions.rs index 73418f4886070..839e0ca8e01ae 100644 --- a/src/test/incremental/hashes/closure_expressions.rs +++ b/src/test/incremental/hashes/closure_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/consts.rs b/src/test/incremental/hashes/consts.rs index 47f5a2d2bbe85..d523752c0914a 100644 --- a/src/test/incremental/hashes/consts.rs +++ b/src/test/incremental/hashes/consts.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/enum_constructors.rs b/src/test/incremental/hashes/enum_constructors.rs index 541261f1d80dd..9e8a0a9027ba8 100644 --- a/src/test/incremental/hashes/enum_constructors.rs +++ b/src/test/incremental/hashes/enum_constructors.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/enum_defs.rs b/src/test/incremental/hashes/enum_defs.rs index 36cbd2239a052..0181ac3a24b77 100644 --- a/src/test/incremental/hashes/enum_defs.rs +++ b/src/test/incremental/hashes/enum_defs.rs @@ -21,7 +21,7 @@ // results in a change of the ICH for the enum's metadata, and that it stays // the same between rev2 and rev3. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/exported_vs_not.rs b/src/test/incremental/hashes/exported_vs_not.rs index a796c87f19bbf..f04f24a2ec7a2 100644 --- a/src/test/incremental/hashes/exported_vs_not.rs +++ b/src/test/incremental/hashes/exported_vs_not.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/extern_mods.rs b/src/test/incremental/hashes/extern_mods.rs index bcdd5661e7181..0e92c717643c4 100644 --- a/src/test/incremental/hashes/extern_mods.rs +++ b/src/test/incremental/hashes/extern_mods.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/for_loops.rs b/src/test/incremental/hashes/for_loops.rs index 105afd30d28ab..15546a5bacf4a 100644 --- a/src/test/incremental/hashes/for_loops.rs +++ b/src/test/incremental/hashes/for_loops.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/function_interfaces.rs b/src/test/incremental/hashes/function_interfaces.rs index 6c4e11be1e43e..09cc5380d276e 100644 --- a/src/test/incremental/hashes/function_interfaces.rs +++ b/src/test/incremental/hashes/function_interfaces.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/if_expressions.rs b/src/test/incremental/hashes/if_expressions.rs index 426c58c834def..6a1139f1e8ec1 100644 --- a/src/test/incremental/hashes/if_expressions.rs +++ b/src/test/incremental/hashes/if_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/indexing_expressions.rs b/src/test/incremental/hashes/indexing_expressions.rs index fb63aa857aa32..fa2d707c8a19c 100644 --- a/src/test/incremental/hashes/indexing_expressions.rs +++ b/src/test/incremental/hashes/indexing_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/inherent_impls.rs b/src/test/incremental/hashes/inherent_impls.rs index 93aba4a3ee11e..dd12fa2192f0b 100644 --- a/src/test/incremental/hashes/inherent_impls.rs +++ b/src/test/incremental/hashes/inherent_impls.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/inline_asm.rs b/src/test/incremental/hashes/inline_asm.rs index 3996e92e05a91..cc427f358580e 100644 --- a/src/test/incremental/hashes/inline_asm.rs +++ b/src/test/incremental/hashes/inline_asm.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/let_expressions.rs b/src/test/incremental/hashes/let_expressions.rs index 2f49500c3910b..957cb336d9e69 100644 --- a/src/test/incremental/hashes/let_expressions.rs +++ b/src/test/incremental/hashes/let_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/loop_expressions.rs b/src/test/incremental/hashes/loop_expressions.rs index 8599f8d7f9a00..bda8c5f16a06a 100644 --- a/src/test/incremental/hashes/loop_expressions.rs +++ b/src/test/incremental/hashes/loop_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/match_expressions.rs b/src/test/incremental/hashes/match_expressions.rs index 263901f402540..f21b1f31eef6a 100644 --- a/src/test/incremental/hashes/match_expressions.rs +++ b/src/test/incremental/hashes/match_expressions.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/panic_exprs.rs b/src/test/incremental/hashes/panic_exprs.rs index 2b6a140be32a9..ffb66c29219d3 100644 --- a/src/test/incremental/hashes/panic_exprs.rs +++ b/src/test/incremental/hashes/panic_exprs.rs @@ -18,7 +18,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -C debug-assertions diff --git a/src/test/incremental/hashes/statics.rs b/src/test/incremental/hashes/statics.rs index b9616d8c6b53e..95cec734f201c 100644 --- a/src/test/incremental/hashes/statics.rs +++ b/src/test/incremental/hashes/statics.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/struct_constructors.rs b/src/test/incremental/hashes/struct_constructors.rs index 3cdaf0e468a7a..09b661ba619f5 100644 --- a/src/test/incremental/hashes/struct_constructors.rs +++ b/src/test/incremental/hashes/struct_constructors.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/struct_defs.rs b/src/test/incremental/hashes/struct_defs.rs index d7b70720418d8..10b1beb04133f 100644 --- a/src/test/incremental/hashes/struct_defs.rs +++ b/src/test/incremental/hashes/struct_defs.rs @@ -21,7 +21,7 @@ // results in a change of the ICH for the struct's metadata, and that it stays // the same between rev2 and rev3. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/trait_defs.rs b/src/test/incremental/hashes/trait_defs.rs index 0816d6e5f452c..b089d7d1eaee1 100644 --- a/src/test/incremental/hashes/trait_defs.rs +++ b/src/test/incremental/hashes/trait_defs.rs @@ -21,7 +21,7 @@ // results in a change of the ICH for the trait's metadata, and that it stays // the same between rev2 and rev3. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/trait_impls.rs b/src/test/incremental/hashes/trait_impls.rs index a232883f7a9b4..346d14f9392ea 100644 --- a/src/test/incremental/hashes/trait_impls.rs +++ b/src/test/incremental/hashes/trait_impls.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/type_defs.rs b/src/test/incremental/hashes/type_defs.rs index c5521d2fae2eb..4dffaa424256a 100644 --- a/src/test/incremental/hashes/type_defs.rs +++ b/src/test/incremental/hashes/type_defs.rs @@ -21,7 +21,7 @@ // results in a change of the ICH for the enum's metadata, and that it stays // the same between rev2 and rev3. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/unary_and_binary_exprs.rs b/src/test/incremental/hashes/unary_and_binary_exprs.rs index 466690e7ca12b..be995a86b0ae6 100644 --- a/src/test/incremental/hashes/unary_and_binary_exprs.rs +++ b/src/test/incremental/hashes/unary_and_binary_exprs.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/while_let_loops.rs b/src/test/incremental/hashes/while_let_loops.rs index d04ed03eb6670..a15e239a6b159 100644 --- a/src/test/incremental/hashes/while_let_loops.rs +++ b/src/test/incremental/hashes/while_let_loops.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/hashes/while_loops.rs b/src/test/incremental/hashes/while_loops.rs index 7f2bbebde8047..4311cef28d142 100644 --- a/src/test/incremental/hashes/while_loops.rs +++ b/src/test/incremental/hashes/while_loops.rs @@ -16,7 +16,7 @@ // and make sure that the hash has changed, then change nothing between rev2 and // rev3 and make sure that the hash has not changed. -// must-compile-successfully +// compile-pass // revisions: cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph -Zincremental-ignore-spans diff --git a/src/test/incremental/ich_nested_items.rs b/src/test/incremental/ich_nested_items.rs index 8566a24c84b26..47369e95dcead 100644 --- a/src/test/incremental/ich_nested_items.rs +++ b/src/test/incremental/ich_nested_items.rs @@ -12,7 +12,7 @@ // the nested items (or even added new ones). // revisions: cfail1 cfail2 -// must-compile-successfully +// compile-pass #![crate_type = "rlib"] #![feature(rustc_attrs)] diff --git a/src/test/incremental/issue-42602.rs b/src/test/incremental/issue-42602.rs index 6afd794de8484..921c7c25a0626 100644 --- a/src/test/incremental/issue-42602.rs +++ b/src/test/incremental/issue-42602.rs @@ -18,7 +18,7 @@ // revisions:cfail1 cfail2 cfail3 // compile-flags:-Zquery-dep-graph -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] diff --git a/src/test/incremental/issue-49595/issue_49595.rs b/src/test/incremental/issue-49595/issue_49595.rs index b899e025ff796..a5b0101c68f22 100644 --- a/src/test/incremental/issue-49595/issue_49595.rs +++ b/src/test/incremental/issue-49595/issue_49595.rs @@ -10,7 +10,7 @@ // revisions:cfail1 cfail2 cfail3 // compile-flags: -Z query-dep-graph --test -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![crate_type = "rlib"] diff --git a/src/test/incremental/krate-inherent.rs b/src/test/incremental/krate-inherent.rs index bc3e3a78fd6b8..925538879aa3c 100644 --- a/src/test/incremental/krate-inherent.rs +++ b/src/test/incremental/krate-inherent.rs @@ -10,7 +10,7 @@ // revisions: cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/src/test/incremental/macro_export.rs b/src/test/incremental/macro_export.rs index 914632e96ba31..7c1a5c5c2e6be 100644 --- a/src/test/incremental/macro_export.rs +++ b/src/test/incremental/macro_export.rs @@ -9,7 +9,7 @@ // except according to those terms. // revisions: cfail1 cfail2 cfail3 -// must-compile-successfully +// compile-pass // This test case makes sure that we can compile with incremental compilation // enabled when there are macros exported from this crate. (See #37756) diff --git a/src/test/incremental/remove_source_file/main.rs b/src/test/incremental/remove_source_file/main.rs index 3ae26c6aa4517..a8c3f70f47bef 100644 --- a/src/test/incremental/remove_source_file/main.rs +++ b/src/test/incremental/remove_source_file/main.rs @@ -16,7 +16,7 @@ // Note that we specify -g so that the FileMaps actually get referenced by the // incr. comp. cache: // compile-flags: -Z query-dep-graph -g -// must-compile-successfully +// compile-pass #![crate_type= "rlib"] diff --git a/src/test/incremental/string_constant.rs b/src/test/incremental/string_constant.rs index 3e75fa985acb4..35c906525cbff 100644 --- a/src/test/incremental/string_constant.rs +++ b/src/test/incremental/string_constant.rs @@ -10,7 +10,7 @@ // revisions: cfail1 cfail2 // compile-flags: -Z query-dep-graph -// must-compile-successfully +// compile-pass #![allow(warnings)] #![feature(rustc_attrs)] diff --git a/src/test/incremental/warnings-reemitted.rs b/src/test/incremental/warnings-reemitted.rs index bf66ac7829c2e..d50ffff5c1e14 100644 --- a/src/test/incremental/warnings-reemitted.rs +++ b/src/test/incremental/warnings-reemitted.rs @@ -10,7 +10,7 @@ // revisions: cfail1 cfail2 cfail3 // compile-flags: -Coverflow-checks=on -// must-compile-successfully +// compile-pass #![allow(warnings)] diff --git a/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs b/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs index bd6bcf88a0caf..219eca6fd21e5 100644 --- a/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs +++ b/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-box-dyn-error.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // failure-status: 1 #![feature(dyn_trait)] diff --git a/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs b/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs index 0c6cb4de9567d..4fb7ae9c10c90 100644 --- a/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs +++ b/src/test/run-fail/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // failure-status: 1 use std::io::{Error, ErrorKind}; diff --git a/src/test/ui/check_match/issue-43253.rs b/src/test/ui/check_match/issue-43253.rs index 12ccba0ebf2f9..a01ebb768b49b 100644 --- a/src/test/ui/check_match/issue-43253.rs +++ b/src/test/ui/check_match/issue-43253.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(exclusive_range_pattern)] #![warn(unreachable_patterns)] diff --git a/src/test/ui/codemap_tests/unicode_3.rs b/src/test/ui/codemap_tests/unicode_3.rs index 81c3b5dde6d76..5e6dde7413bd7 100644 --- a/src/test/ui/codemap_tests/unicode_3.rs +++ b/src/test/ui/codemap_tests/unicode_3.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass fn main() { let s = "ZͨA͑ͦ͒͋ͤ͑̚L̄͑͋Ĝͨͥ̿͒̽̈́Oͥ͛ͭ!̏"; while true { break; } diff --git a/src/test/ui/const-eval/const_transmute.rs b/src/test/ui/const-eval/const_transmute.rs index a64a1d212abf3..e661444a7b47d 100644 --- a/src/test/ui/const-eval/const_transmute.rs +++ b/src/test/ui/const-eval/const_transmute.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // run-pass union Transmute { diff --git a/src/test/ui/const-eval/issue-47971.rs b/src/test/ui/const-eval/issue-47971.rs index 4a2f0a7f38cda..f6a2db31d371a 100644 --- a/src/test/ui/const-eval/issue-47971.rs +++ b/src/test/ui/const-eval/issue-47971.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(const_fn)] diff --git a/src/test/ui/const-eval/no_lint_for_statically_known_error.rs b/src/test/ui/const-eval/no_lint_for_statically_known_error.rs index 968a7de469107..41d5192d33db4 100644 --- a/src/test/ui/const-eval/no_lint_for_statically_known_error.rs +++ b/src/test/ui/const-eval/no_lint_for_statically_known_error.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // if `X` were used instead of `x`, `X - 10` would result in a lint. // This file should never produce a lint, no matter how the const diff --git a/src/test/ui/const-expr-addr-operator.rs b/src/test/ui/const-expr-addr-operator.rs index bfd6a4090649b..f51cce5d4e053 100644 --- a/src/test/ui/const-expr-addr-operator.rs +++ b/src/test/ui/const-expr-addr-operator.rs @@ -9,7 +9,7 @@ // except according to those terms. // Encountered while testing #44614. -// must-compile-successfully +// compile-pass pub fn main() { // Constant of generic type (int) diff --git a/src/test/ui/const-pattern-not-const-evaluable.rs b/src/test/ui/const-pattern-not-const-evaluable.rs index 09b24d1ffa208..87d5e13df6eb3 100644 --- a/src/test/ui/const-pattern-not-const-evaluable.rs +++ b/src/test/ui/const-pattern-not-const-evaluable.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(const_fn)] diff --git a/src/test/ui/explain.rs b/src/test/ui/explain.rs index 6305fbcffce4e..88fc3f7f01756 100644 --- a/src/test/ui/explain.rs +++ b/src/test/ui/explain.rs @@ -9,4 +9,4 @@ // except according to those terms. // compile-flags: --explain E0591 -// must-compile-successfully +// compile-pass diff --git a/src/test/ui/feature-gate-const-indexing.rs b/src/test/ui/feature-gate-const-indexing.rs index eb5f746774cf1..c89cbd0420dab 100644 --- a/src/test/ui/feature-gate-const-indexing.rs +++ b/src/test/ui/feature-gate-const-indexing.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass fn main() { const ARR: [i32; 6] = [42, 43, 44, 45, 46, 47]; diff --git a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs b/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs index ec3c97beab0f3..620874e5c2d85 100644 --- a/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs +++ b/src/test/ui/feature-gate/issue-43106-gating-of-macro_escape.rs @@ -13,7 +13,7 @@ // `#![macro_escape]` is incompatible with crate-level `#![macro_use]` // already present in issue-43106-gating-of-builtin-attrs. -// must-compile-successfully +// compile-pass #![macro_escape] //~^ WARN macro_escape is a deprecated synonym for macro_use diff --git a/src/test/ui/generic-param-attrs.rs b/src/test/ui/generic-param-attrs.rs index 37fabcd7e1e90..81113d949e173 100644 --- a/src/test/ui/generic-param-attrs.rs +++ b/src/test/ui/generic-param-attrs.rs @@ -16,7 +16,7 @@ // using `rustc_attrs` feature. There is a separate compile-fail/ test // ensuring that the attribute feature-gating works in this context.) -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] #![allow(dead_code)] diff --git a/src/test/ui/hello_world/main.rs b/src/test/ui/hello_world/main.rs index 4c53d19f719bf..bf6e5225124c7 100644 --- a/src/test/ui/hello_world/main.rs +++ b/src/test/ui/hello_world/main.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // Test that compiling hello world succeeds with no output of any kind. diff --git a/src/test/ui/inference-variable-behind-raw-pointer.rs b/src/test/ui/inference-variable-behind-raw-pointer.rs index 0ae027679fe31..88dc85f1620dd 100644 --- a/src/test/ui/inference-variable-behind-raw-pointer.rs +++ b/src/test/ui/inference-variable-behind-raw-pointer.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // tests that the following code compiles, but produces a future-compatibility warning diff --git a/src/test/ui/issue-38875/issue_38875.rs b/src/test/ui/issue-38875/issue_38875.rs index 24cd20a84a9fe..d9debe34c4d5a 100644 --- a/src/test/ui/issue-38875/issue_38875.rs +++ b/src/test/ui/issue-38875/issue_38875.rs @@ -9,7 +9,7 @@ // except according to those terms. // aux-build:issue_38875_b.rs -// must-compile-successfully +// compile-pass extern crate issue_38875_b; diff --git a/src/test/ui/issue-47094.rs b/src/test/ui/issue-47094.rs index 3ab9d4e6d5a8f..2b78c7d9b708d 100644 --- a/src/test/ui/issue-47094.rs +++ b/src/test/ui/issue-47094.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #[repr(C,u8)] enum Foo { diff --git a/src/test/ui/lint/command-line-lint-group-allow.rs b/src/test/ui/lint/command-line-lint-group-allow.rs index c1840f3d44c13..4e12067f9949b 100644 --- a/src/test/ui/lint/command-line-lint-group-allow.rs +++ b/src/test/ui/lint/command-line-lint-group-allow.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -A bad-style -// must-compile-successfully +// compile-pass fn main() { let _InappropriateCamelCasing = true; diff --git a/src/test/ui/lint/command-line-lint-group-warn.rs b/src/test/ui/lint/command-line-lint-group-warn.rs index 048c15b123045..76cee225b7c18 100644 --- a/src/test/ui/lint/command-line-lint-group-warn.rs +++ b/src/test/ui/lint/command-line-lint-group-warn.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -W bad-style -// must-compile-successfully +// compile-pass fn main() { let _InappropriateCamelCasing = true; diff --git a/src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.rs b/src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.rs index a68b4f7635292..18b83370355b6 100644 --- a/src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.rs +++ b/src/test/ui/lint/issue-47390-unused-variable-in-struct-pattern.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![warn(unused)] // UI tests pass `-A unused` (#43896) diff --git a/src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs b/src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs index b4e6c5074e3d3..7f623727aac63 100644 --- a/src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs +++ b/src/test/ui/lint/issue-47775-nested-macro-unnecessary-parens-arg.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![warn(unused_parens)] diff --git a/src/test/ui/lint/not_found.rs b/src/test/ui/lint/not_found.rs index 3de2cc0bfae04..fa3b491db6225 100644 --- a/src/test/ui/lint/not_found.rs +++ b/src/test/ui/lint/not_found.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass // this tests the `unknown_lint` lint, especially the suggestions diff --git a/src/test/ui/lint/type-overflow.rs b/src/test/ui/lint/type-overflow.rs index 30e6fb2883b8b..6e1e3ee8f437c 100644 --- a/src/test/ui/lint/type-overflow.rs +++ b/src/test/ui/lint/type-overflow.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass fn main() { let error = 255i8; //~WARNING literal out of range for i8 diff --git a/src/test/ui/lint/unreachable_pub-pub_crate.rs b/src/test/ui/lint/unreachable_pub-pub_crate.rs index 4192b7dceef20..f5e6b4d3b4862 100644 --- a/src/test/ui/lint/unreachable_pub-pub_crate.rs +++ b/src/test/ui/lint/unreachable_pub-pub_crate.rs @@ -14,7 +14,7 @@ // suggestions to use `crate` given when it is on). When that feature becomes // stable, this test can be deleted. -// must-compile-successfully +// compile-pass #![feature(macro_vis_matcher)] diff --git a/src/test/ui/lint/unreachable_pub.rs b/src/test/ui/lint/unreachable_pub.rs index 393bccf03a73a..347579c3e7bb9 100644 --- a/src/test/ui/lint/unreachable_pub.rs +++ b/src/test/ui/lint/unreachable_pub.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(crate_visibility_modifier)] #![feature(macro_vis_matcher)] diff --git a/src/test/ui/lint/unused_parens_json_suggestion.rs b/src/test/ui/lint/unused_parens_json_suggestion.rs index fdcd45c8314db..187e7f31dfd71 100644 --- a/src/test/ui/lint/unused_parens_json_suggestion.rs +++ b/src/test/ui/lint/unused_parens_json_suggestion.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: --error-format pretty-json -Zunstable-options -// must-compile-successfully +// compile-pass // The output for humans should just highlight the whole span without showing // the suggested replacement, but we also want to test that suggested diff --git a/src/test/ui/lint/unused_parens_json_suggestion.stderr b/src/test/ui/lint/unused_parens_json_suggestion.stderr index cd4379d90cf31..40d3758ded5c6 100644 --- a/src/test/ui/lint/unused_parens_json_suggestion.stderr +++ b/src/test/ui/lint/unused_parens_json_suggestion.stderr @@ -8,8 +8,8 @@ "spans": [ { "file_name": "$DIR/unused_parens_json_suggestion.rs", - "byte_start": 1056, - "byte_end": 1069, + "byte_start": 1043, + "byte_end": 1056, "line_start": 25, "line_end": 25, "column_start": 14, @@ -35,8 +35,8 @@ "spans": [ { "file_name": "$DIR/unused_parens_json_suggestion.rs", - "byte_start": 902, - "byte_end": 915, + "byte_start": 889, + "byte_end": 902, "line_start": 20, "line_end": 20, "column_start": 9, @@ -64,8 +64,8 @@ "spans": [ { "file_name": "$DIR/unused_parens_json_suggestion.rs", - "byte_start": 1056, - "byte_end": 1069, + "byte_start": 1043, + "byte_end": 1056, "line_start": 25, "line_end": 25, "column_start": 14, diff --git a/src/test/ui/macros/trace-macro.rs b/src/test/ui/macros/trace-macro.rs index 7e6da840900bc..996b172c87b01 100644 --- a/src/test/ui/macros/trace-macro.rs +++ b/src/test/ui/macros/trace-macro.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z trace-macros -// must-compile-successfully +// compile-pass fn main() { println!("Hello, World!"); diff --git a/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs b/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs index ba4c287592eb4..1ccfa61f4ce46 100644 --- a/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs +++ b/src/test/ui/nll/closure-requirements/propagate-despite-same-free-region.rs @@ -14,7 +14,7 @@ // regions is erased. // compile-flags:-Znll -Zborrowck=mir -Zverbose -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] diff --git a/src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs b/src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs index ffb1935e75e32..7454a8e71f270 100644 --- a/src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs +++ b/src/test/ui/nll/closure-requirements/region-lbr1-does-outlive-lbr2-because-implied-bound.rs @@ -12,7 +12,7 @@ // report an error because of the (implied) bound that `'b: 'a`. // compile-flags:-Znll -Zborrowck=mir -Zverbose -// must-compile-successfully +// compile-pass #![allow(warnings)] diff --git a/src/test/ui/nll/constant.rs b/src/test/ui/nll/constant.rs index ced06e5ea0504..589d8ffd28f0b 100644 --- a/src/test/ui/nll/constant.rs +++ b/src/test/ui/nll/constant.rs @@ -12,7 +12,7 @@ // arbitrary types without ICEs. // compile-flags:-Znll -Zborrowck=mir -Zverbose -// must-compile-successfully +// compile-pass const HI: &str = "hi"; diff --git a/src/test/ui/nll/drop-may-dangle.rs b/src/test/ui/nll/drop-may-dangle.rs index 55c9f5de30205..6dcbe0a528d90 100644 --- a/src/test/ui/nll/drop-may-dangle.rs +++ b/src/test/ui/nll/drop-may-dangle.rs @@ -13,7 +13,7 @@ // including) the call to `use_x`. The `else` branch is not included. // compile-flags:-Znll -Zborrowck=mir -// must-compile-successfully +// compile-pass #![allow(warnings)] #![feature(dropck_eyepatch)] diff --git a/src/test/ui/nll/generator-distinct-lifetime.rs b/src/test/ui/nll/generator-distinct-lifetime.rs index 60f67b1766c2c..64f98456991fd 100644 --- a/src/test/ui/nll/generator-distinct-lifetime.rs +++ b/src/test/ui/nll/generator-distinct-lifetime.rs @@ -16,7 +16,7 @@ // over a yield -- because the data that is borrowed (`*x`) is not // stored on the stack. -// must-compile-successfully +// compile-pass fn foo(x: &mut u32) { move || { diff --git a/src/test/ui/nll/issue-16223.rs b/src/test/ui/nll/issue-16223.rs index 64fc3df30b98c..b41376ef443d4 100644 --- a/src/test/ui/nll/issue-16223.rs +++ b/src/test/ui/nll/issue-16223.rs @@ -23,7 +23,7 @@ // | // = note: move occurs because the value has type `A`, which does not implement the `Copy` trait -// must-compile-successfully +// compile-pass #![feature(nll)] #![feature(box_patterns)] diff --git a/src/test/ui/nll/issue-43058.rs b/src/test/ui/nll/issue-43058.rs index 91ac7e4004260..aeb81636daf1f 100644 --- a/src/test/ui/nll/issue-43058.rs +++ b/src/test/ui/nll/issue-43058.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(nll)] diff --git a/src/test/ui/nll/issue-47022.rs b/src/test/ui/nll/issue-47022.rs index a7362c34c1751..685823b25c6cf 100644 --- a/src/test/ui/nll/issue-47022.rs +++ b/src/test/ui/nll/issue-47022.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![allow(warnings)] #![feature(nll)] diff --git a/src/test/ui/nll/maybe-initialized-drop-uninitialized.rs b/src/test/ui/nll/maybe-initialized-drop-uninitialized.rs index 92b29a98c1c49..7e8a4e0ec95fc 100644 --- a/src/test/ui/nll/maybe-initialized-drop-uninitialized.rs +++ b/src/test/ui/nll/maybe-initialized-drop-uninitialized.rs @@ -9,7 +9,7 @@ // except according to those terms. //compile-flags: -Z emit-end-regions -Zborrowck=mir -Z nll -// must-compile-successfully +// compile-pass #![allow(warnings)] diff --git a/src/test/ui/nll/projection-return.rs b/src/test/ui/nll/projection-return.rs index 31388cf50c558..1515911fe870e 100644 --- a/src/test/ui/nll/projection-return.rs +++ b/src/test/ui/nll/projection-return.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags:-Znll -Zborrowck=mir -// must-compile-successfully +// compile-pass #![feature(rustc_attrs)] diff --git a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs b/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs index 67e28af11469d..a1bdd1b89f9a9 100644 --- a/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs +++ b/src/test/ui/nll/ty-outlives/projection-one-region-trait-bound-static-closure.rs @@ -13,7 +13,7 @@ // we don't even propagate constraints from the closures to the callers. // compile-flags:-Znll -Zborrowck=mir -Zverbose -// must-compile-successfully +// compile-pass #![allow(warnings)] #![feature(dyn_trait)] diff --git a/src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs b/src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs index cab7ba7a50525..d4ae9b20e56ff 100644 --- a/src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs +++ b/src/test/ui/nll/ty-outlives/ty-param-implied-bounds.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags:-Znll -Zborrowck=mir -Zverbose -// must-compile-successfully +// compile-pass // Test that we assume that universal types like `T` outlive the // function body. diff --git a/src/test/ui/print-fuel/print-fuel.rs b/src/test/ui/print-fuel/print-fuel.rs index 2012a7d02eeb3..96b025128ee9a 100644 --- a/src/test/ui/print-fuel/print-fuel.rs +++ b/src/test/ui/print-fuel/print-fuel.rs @@ -12,7 +12,7 @@ #![allow(dead_code)] // compile-flags: -Z print-fuel=foo -// must-compile-successfully +// compile-pass struct S1(u8, u16, u8); struct S2(u8, u16, u8); diff --git a/src/test/ui/print_type_sizes/anonymous.rs b/src/test/ui/print_type_sizes/anonymous.rs index 56c05f566c9ab..aff06a20112e1 100644 --- a/src/test/ui/print_type_sizes/anonymous.rs +++ b/src/test/ui/print_type_sizes/anonymous.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // All of the types that occur in this function are uninteresting, in // that one cannot control the sizes of these types with the same sort diff --git a/src/test/ui/print_type_sizes/generics.rs b/src/test/ui/print_type_sizes/generics.rs index 21fdbb3f5a1cc..fa5921cfb1343 100644 --- a/src/test/ui/print_type_sizes/generics.rs +++ b/src/test/ui/print_type_sizes/generics.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates how generics are handled: types have to be // monomorphized, in the MIR of the original function in which they diff --git a/src/test/ui/print_type_sizes/multiple_types.rs b/src/test/ui/print_type_sizes/multiple_types.rs index a50b28f3c4952..3d6cb0d5f3c63 100644 --- a/src/test/ui/print_type_sizes/multiple_types.rs +++ b/src/test/ui/print_type_sizes/multiple_types.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates that when multiple structural types occur in // a function, every one of them is included in the output. diff --git a/src/test/ui/print_type_sizes/niche-filling.rs b/src/test/ui/print_type_sizes/niche-filling.rs index 875883a2cca7f..1aad0b760b17b 100644 --- a/src/test/ui/print_type_sizes/niche-filling.rs +++ b/src/test/ui/print_type_sizes/niche-filling.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates how niche-filling enums are handled, // modelled after cases like `Option<&u32>`, `Option` and such. diff --git a/src/test/ui/print_type_sizes/no_duplicates.rs b/src/test/ui/print_type_sizes/no_duplicates.rs index d9b90260364b2..17ba4df7f2029 100644 --- a/src/test/ui/print_type_sizes/no_duplicates.rs +++ b/src/test/ui/print_type_sizes/no_duplicates.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates that when the same type occurs repeatedly // (even if multiple functions), it is only printed once in the diff --git a/src/test/ui/print_type_sizes/packed.rs b/src/test/ui/print_type_sizes/packed.rs index 5d8c932625808..bc11146aa8516 100644 --- a/src/test/ui/print_type_sizes/packed.rs +++ b/src/test/ui/print_type_sizes/packed.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates how packing is handled; it should cause // the elimination of padding that would normally be introduced diff --git a/src/test/ui/print_type_sizes/padding.rs b/src/test/ui/print_type_sizes/padding.rs index b4661efdd27a2..335303afef96c 100644 --- a/src/test/ui/print_type_sizes/padding.rs +++ b/src/test/ui/print_type_sizes/padding.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates how padding is handled: alignment // requirements can lead to the introduction of padding, either before diff --git a/src/test/ui/print_type_sizes/repr-align.rs b/src/test/ui/print_type_sizes/repr-align.rs index 92928bba1c3ac..2e4c3ade92dde 100644 --- a/src/test/ui/print_type_sizes/repr-align.rs +++ b/src/test/ui/print_type_sizes/repr-align.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates how padding is handled: alignment // requirements can lead to the introduction of padding, either before diff --git a/src/test/ui/print_type_sizes/uninhabited.rs b/src/test/ui/print_type_sizes/uninhabited.rs index 7e8eff02c20a1..1908ef244cfea 100644 --- a/src/test/ui/print_type_sizes/uninhabited.rs +++ b/src/test/ui/print_type_sizes/uninhabited.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass #![feature(start)] diff --git a/src/test/ui/print_type_sizes/variants.rs b/src/test/ui/print_type_sizes/variants.rs index e4d54162e73af..52e951bd6843a 100644 --- a/src/test/ui/print_type_sizes/variants.rs +++ b/src/test/ui/print_type_sizes/variants.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z print-type-sizes -// must-compile-successfully +// compile-pass // This file illustrates two things: // diff --git a/src/test/ui/reachable/expr_andand.rs b/src/test/ui/reachable/expr_andand.rs index 7d74daaa6ee20..c5206eec67285 100644 --- a/src/test/ui/reachable/expr_andand.rs +++ b/src/test/ui/reachable/expr_andand.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![allow(unused_variables)] #![allow(dead_code)] diff --git a/src/test/ui/reachable/expr_oror.rs b/src/test/ui/reachable/expr_oror.rs index ab0b71f078186..0adec9999dc9e 100644 --- a/src/test/ui/reachable/expr_oror.rs +++ b/src/test/ui/reachable/expr_oror.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![allow(unused_variables)] #![allow(dead_code)] diff --git a/src/test/ui/rfc-2093-infer-outlives/enum-pass.rs b/src/test/ui/rfc-2093-infer-outlives/enum-pass.rs index 8c7275bb1a7e4..2a28bde78a85a 100644 --- a/src/test/ui/rfc-2093-infer-outlives/enum-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/enum-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-impl-lifetime-pass.rs b/src/test/ui/rfc-2093-infer-outlives/explicit-impl-lifetime-pass.rs index da578386adb14..45449fa0cf82d 100644 --- a/src/test/ui/rfc-2093-infer-outlives/explicit-impl-lifetime-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/explicit-impl-lifetime-pass.rs @@ -9,7 +9,7 @@ // except according to those terms. // ignore-test -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-impl-pass.rs b/src/test/ui/rfc-2093-infer-outlives/explicit-impl-pass.rs index fd74fe30bb6b0..bfd6db1eb5d4e 100644 --- a/src/test/ui/rfc-2093-infer-outlives/explicit-impl-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/explicit-impl-pass.rs @@ -9,7 +9,7 @@ // except according to those terms. // ignore-test -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/explicit-where-pass.rs b/src/test/ui/rfc-2093-infer-outlives/explicit-where-pass.rs index e51b5a16b4501..fd5fc79a2ab1e 100644 --- a/src/test/ui/rfc-2093-infer-outlives/explicit-where-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/explicit-where-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/multiple-regions-pass.rs b/src/test/ui/rfc-2093-infer-outlives/multiple-regions-pass.rs index be686a8004825..290dbd330a26c 100644 --- a/src/test/ui/rfc-2093-infer-outlives/multiple-regions-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/multiple-regions-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/nested-structs-pass.rs b/src/test/ui/rfc-2093-infer-outlives/nested-structs-pass.rs index 02581457fcc52..9432804cc42bf 100644 --- a/src/test/ui/rfc-2093-infer-outlives/nested-structs-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/nested-structs-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/projections-pass.rs b/src/test/ui/rfc-2093-infer-outlives/projections-pass.rs index 1234e27b866bc..9c6e84cdd6e02 100644 --- a/src/test/ui/rfc-2093-infer-outlives/projections-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/projections-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/reference-pass.rs b/src/test/ui/rfc-2093-infer-outlives/reference-pass.rs index f357685e1399f..903b8a9ddbf59 100644 --- a/src/test/ui/rfc-2093-infer-outlives/reference-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/reference-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] // Outlives requirementes are inferred (RFC 2093) diff --git a/src/test/ui/rfc-2093-infer-outlives/union-pass.rs b/src/test/ui/rfc-2093-infer-outlives/union-pass.rs index b4a61346b011b..5e46c2b7f5ca9 100644 --- a/src/test/ui/rfc-2093-infer-outlives/union-pass.rs +++ b/src/test/ui/rfc-2093-infer-outlives/union-pass.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(infer_outlives_requirements)] #![feature(untagged_unions)] diff --git a/src/test/ui/rfc-2166-underscore-imports/basic.rs b/src/test/ui/rfc-2166-underscore-imports/basic.rs index 06651a71d0c00..89771be7bc84f 100644 --- a/src/test/ui/rfc-2166-underscore-imports/basic.rs +++ b/src/test/ui/rfc-2166-underscore-imports/basic.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(underscore_imports)] #![warn(unused_imports, unused_extern_crates)] diff --git a/src/test/ui/rfc1598-generic-associated-types/parse/in-trait-impl.rs b/src/test/ui/rfc1598-generic-associated-types/parse/in-trait-impl.rs index 0e598fa14b198..90aaddecfe79b 100644 --- a/src/test/ui/rfc1598-generic-associated-types/parse/in-trait-impl.rs +++ b/src/test/ui/rfc1598-generic-associated-types/parse/in-trait-impl.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z parse-only -// must-compile-successfully +// compile-pass #![feature(generic_associated_types)] diff --git a/src/test/ui/rfc1598-generic-associated-types/parse/in-trait.rs b/src/test/ui/rfc1598-generic-associated-types/parse/in-trait.rs index 8ab519be630d4..8179bf263ed02 100644 --- a/src/test/ui/rfc1598-generic-associated-types/parse/in-trait.rs +++ b/src/test/ui/rfc1598-generic-associated-types/parse/in-trait.rs @@ -9,7 +9,7 @@ // except according to those terms. // compile-flags: -Z parse-only -// must-compile-successfully +// compile-pass #![feature(generic_associated_types)] diff --git a/src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs b/src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs index eb4753122f35c..d20ebf0b74042 100644 --- a/src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs +++ b/src/test/ui/rfc_1940-must_use_on_functions/fn_must_use.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![feature(fn_must_use)] #![warn(unused_must_use)] diff --git a/src/test/ui/span/macro-span-replacement.rs b/src/test/ui/span/macro-span-replacement.rs index 0baa4fb4fe2cd..4fe35042300e7 100644 --- a/src/test/ui/span/macro-span-replacement.rs +++ b/src/test/ui/span/macro-span-replacement.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![warn(unused)] diff --git a/src/test/ui/span/multispan-import-lint.rs b/src/test/ui/span/multispan-import-lint.rs index 5fb0ff7fb708a..a94fa1c895359 100644 --- a/src/test/ui/span/multispan-import-lint.rs +++ b/src/test/ui/span/multispan-import-lint.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass #![warn(unused)] diff --git a/src/test/ui/type-alias-bounds.rs b/src/test/ui/type-alias-bounds.rs index c1cdeef3a4638..a17bb9e952d3c 100644 --- a/src/test/ui/type-alias-bounds.rs +++ b/src/test/ui/type-alias-bounds.rs @@ -10,7 +10,7 @@ // Test ignored_generic_bounds lint warning about bounds in type aliases -// must-compile-successfully +// compile-pass #![allow(dead_code)] use std::rc::Rc; diff --git a/src/test/ui/union/union-const-eval.rs b/src/test/ui/union/union-const-eval.rs index aeafb45e6a552..3ae76e1a82a5c 100644 --- a/src/test/ui/union/union-const-eval.rs +++ b/src/test/ui/union/union-const-eval.rs @@ -8,7 +8,7 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -// must-compile-successfully +// compile-pass union U { a: usize, diff --git a/src/tools/compiletest/src/header.rs b/src/tools/compiletest/src/header.rs index 94a6353ad2431..3795704466a23 100644 --- a/src/tools/compiletest/src/header.rs +++ b/src/tools/compiletest/src/header.rs @@ -223,7 +223,7 @@ pub struct TestProps { // arguments. (In particular, it propagates to the aux-builds.) pub incremental_dir: Option, // Specifies that a test must actually compile without errors. - pub must_compile_successfully: bool, + pub compile_pass: bool, // rustdoc will test the output of the `--test` option pub check_test_line_numbers_match: bool, // The test must be compiled and run successfully. Only used in UI tests for now. @@ -257,7 +257,7 @@ impl TestProps { pretty_compare_only: false, forbid_output: vec![], incremental_dir: None, - must_compile_successfully: false, + compile_pass: false, check_test_line_numbers_match: false, run_pass: false, disable_ui_testing_normalization: false, @@ -375,10 +375,10 @@ impl TestProps { self.run_pass = config.parse_run_pass(ln); } - if !self.must_compile_successfully { + if !self.compile_pass { // run-pass implies must_compile_sucessfully - self.must_compile_successfully = - config.parse_must_compile_successfully(ln) || self.run_pass; + self.compile_pass = + config.parse_compile_pass(ln) || self.run_pass; } if !self.disable_ui_testing_normalization { @@ -508,8 +508,8 @@ impl Config { } } - fn parse_must_compile_successfully(&self, line: &str) -> bool { - self.parse_name_directive(line, "must-compile-successfully") + fn parse_compile_pass(&self, line: &str) -> bool { + self.parse_name_directive(line, "compile-pass") } fn parse_disable_ui_testing_normalization(&self, line: &str) -> bool { diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 0081c0ae69d67..db0ac9279046c 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -232,7 +232,7 @@ impl<'test> TestCx<'test> { } fn check_if_test_should_compile(&self, proc_res: &ProcRes) { - if self.props.must_compile_successfully { + if self.props.compile_pass { if !proc_res.status.success() { self.fatal_proc_rec("test compilation failed although it shouldn't!", proc_res); } @@ -1100,7 +1100,7 @@ impl<'test> TestCx<'test> { fn check_error_patterns(&self, output_to_check: &str, proc_res: &ProcRes) { if self.props.error_patterns.is_empty() { - if self.props.must_compile_successfully { + if self.props.compile_pass { return; } else { self.fatal(&format!(