forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rollup merge of rust-lang#134840 - Zalathar:normalize, r=jieyouxu compiletest: Only pass the post-colon value to `parse_normalize_rule` Addresses one of the FIXMEs noted in rust-lang#134759. I started working on the other FIXME, but it became complex enough that I wanted to split it off from this PR. r? jieyouxu
- Loading branch information
Showing
5 changed files
with
49 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
tests/ui/compiletest-self-test/normalize-with-revision.a.run.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
1st emitted line | ||
second emitted line |
2 changes: 2 additions & 0 deletions
2
tests/ui/compiletest-self-test/normalize-with-revision.b.run.stderr
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
first emitted line | ||
2nd emitted line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
//! Checks that `[rev] normalize-*` directives affect the specified revision, | ||
//! and don't affect other revisions. | ||
//! | ||
//! This currently relies on the fact that `normalize-*` directives are | ||
//! applied to run output, not just compiler output. If that ever changes, | ||
//! this test might need to be adjusted. | ||
//@ edition: 2021 | ||
//@ revisions: a b | ||
//@ run-pass | ||
//@ check-run-results | ||
|
||
//@ normalize-stderr: "output" -> "emitted" | ||
//@[a] normalize-stderr: "first" -> "1st" | ||
//@[b] normalize-stderr: "second" -> "2nd" | ||
|
||
fn main() { | ||
eprintln!("first output line"); | ||
eprintln!("second output line"); | ||
} |