Skip to content

Commit

Permalink
tests: bless ui and rustdoc-ui tests for ICE messages
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Apr 8, 2024
1 parent 15a0a7c commit 5d8b8b8
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/rustdoc-ui/ice-bug-report-url.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ error: the compiler unexpectedly panicked. this is a bug.

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-rustdoc&template=ice.md

note: please make sure that you have updated to the latest nightly

note: rustc {version} running on {platform}

query stack during panic:
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/consts/const-eval/const-eval-query-stack.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ error: internal compiler error[E0080]: evaluation of constant value failed
LL | const X: i32 = 1 / 0;
| ^^^^^ attempt to divide `1_i32` by zero

note: please make sure that you have updated to the latest nightly

query stack during panic:
#0 [eval_to_allocation_raw] const-evaluating + checking `X`
#1 [eval_to_const_value_raw] simplifying constant for the type system `X`
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/impl-trait/equality-in-canonical-query.clone.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ LL | same_output(foo, rpit);
LL | same_output(foo, rpit);
| ^^^^^^^^^^^^^^^^^^^^^^

note: please make sure that you have updated to the latest nightly

query stack during panic:
end of query stack
2 changes: 2 additions & 0 deletions tests/ui/panics/default-backtrace-ice.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ error: the compiler unexpectedly panicked. this is a bug.





query stack during panic:
#0 [resolver_for_lowering_raw] getting the resolver for lowering
end of query stack
2 changes: 2 additions & 0 deletions tests/ui/track-diagnostics/track.stderr
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

note: we would appreciate a bug report: https://github.com/rust-lang/rust/issues/new?labels=C-bug%2C+I-ICE%2C+T-compiler&template=ice.md

note: please make sure that you have updated to the latest nightly

note: rustc $VERSION running on $TARGET

note: compiler flags: ... -Z ui-testing ... -Z track-diagnostics
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,7 @@ LL | query(get_rpit);
LL | query(get_rpit);
| ^^^^^^^^^^^^^^^

note: please make sure that you have updated to the latest nightly

query stack during panic:
end of query stack

0 comments on commit 5d8b8b8

Please sign in to comment.