Skip to content
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

Remove compile-pass from compiletest #62369

Merged
merged 4 commits into from
Jul 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/doc/rustc-guide
4 changes: 2 additions & 2 deletions src/librustc_mir/error_codes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ An if-let pattern attempts to match the pattern, and enters the body if the
match was successful. If the match is irrefutable (when it cannot fail to
match), use a regular `let`-binding instead. For instance:

```compile_pass
```
struct Irrefutable(i32);
let irr = Irrefutable(0);

Expand Down Expand Up @@ -360,7 +360,7 @@ A while-let pattern attempts to match the pattern, and enters the body if the
match was successful. If the match is irrefutable (when it cannot fail to
match), use a regular `let`-binding inside a `loop` instead. For instance:

```compile_pass,no_run
```no_run
struct Irrefutable(i32);
let irr = Irrefutable(0);

Expand Down
2 changes: 1 addition & 1 deletion src/test/ui/async-await/async-closure-matches-expr.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// compile-pass
// build-pass
// edition:2018

#![feature(async_await, async_closure)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// edition:2018
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// revisions: migrate mir
//[mir]compile-flags: -Z borrowck=mir

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// edition:2018
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// revisions: migrate mir
//[mir]compile-flags: -Z borrowck=mir

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// edition:2018
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// revisions: migrate mir
//[mir]compile-flags: -Z borrowck=mir

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// edition:2018
// compile-pass
// build-pass (FIXME(62277): could be check-pass?)
// revisions: migrate mir
//[mir]compile-flags: -Z borrowck=mir

Expand Down
3 changes: 0 additions & 3 deletions src/tools/compiletest/src/header.rs
Original file line number Diff line number Diff line change
Expand Up @@ -591,9 +591,6 @@ impl TestProps {
} else if config.parse_name_directive(ln, "build-pass") {
check_no_run("build-pass");
Some(PassMode::Build)
} else if config.parse_name_directive(ln, "compile-pass") /* compatibility */ {
check_no_run("compile-pass");
Some(PassMode::Build)
} else if config.parse_name_directive(ln, "run-pass") {
if config.mode != Mode::Ui && config.mode != Mode::RunPass /* compatibility */ {
panic!("`run-pass` header is only supported in UI tests")
Expand Down