Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create ui test for -Ztreat-err-as-bug delay_span_bug
- Loading branch information
1 parent
748b550
commit 1d35960
Showing
2 changed files
with
22 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
// compile-flags: -Ztreat-err-as-bug | ||
// failure-status: 101 | ||
// error-pattern: aborting due to `-Z treat-err-as-bug=1` | ||
// error-pattern: [trigger_delay_span_bug] trigger a delay span bug | ||
// normalize-stderr-test "note: .*\n\n" -> "" | ||
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> "" | ||
|
||
#![feature(rustc_attrs)] | ||
|
||
#[rustc_error(delay_span_bug_from_inside_query)] | ||
fn main() {} |
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,11 @@ | ||
error: internal compiler error: delayed span bug triggered by #[rustc_error(delay_span_bug_from_inside_query)] | ||
--> $DIR/delay_span_bug.rs:11:1 | ||
| | ||
LL | fn main() {} | ||
| ^^^^^^^^^ | ||
|
||
error: internal compiler error: unexpected panic | ||
|
||
query stack during panic: | ||
#0 [trigger_delay_span_bug] trigger a delay span bug | ||
end of query stack |