Skip to content

Commit 6edb4ca

Browse files
committed
Don't print backtrace on ICEs in issue-86800.rs.
Because it then just has to be filtered out. This change makes this test more like these other tests: - tests/ui/treat-err-as-bug/err.rs - tests/ui/treat-err-as-bug/delay_span_bug.rs - tests/ui/mir/validate/storage-live.rs - tests/ui/associated-inherent-types/bugs/ice-substitution.rs - tests/ui/layout/valid_range_oob.rs
1 parent 9ecda8d commit 6edb4ca

File tree

2 files changed

+5
-19
lines changed

2 files changed

+5
-19
lines changed

tests/ui/impl-trait/issues/issue-86800.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
#![feature(type_alias_impl_trait)]
22

33
// edition:2021
4-
// unset-rustc-env:RUST_BACKTRACE
54
// compile-flags:-Z treat-err-as-bug=1
6-
// error-pattern:stack backtrace:
5+
// error-pattern: aborting due to `-Z treat-err-as-bug=1`
76
// failure-status:101
8-
// normalize-stderr-test "note: .*" -> ""
9-
// normalize-stderr-test "thread 'rustc' .*" -> ""
10-
// normalize-stderr-test " +[0-9]+:.*\n" -> ""
11-
// normalize-stderr-test " +at .*\n" -> ""
7+
// normalize-stderr-test ".*note: .*\n\n" -> ""
8+
// normalize-stderr-test "thread 'rustc' panicked.*\n" -> ""
9+
// rustc-env:RUST_BACKTRACE=0
1210

1311
use std::future::Future;
1412

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,12 @@
11
error: unconstrained opaque type
2-
--> $DIR/issue-86800.rs:33:34
2+
--> $DIR/issue-86800.rs:31:34
33
|
44
LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
55
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
66
|
7-
=
8-
9-
10-
stack backtrace:
11-
127
error: the compiler unexpectedly panicked. this is a bug.
138

14-
15-
16-
17-
18-
19-
209
query stack during panic:
2110
#0 [type_of] computing type of `TransactionFuture::{opaque#0}`
2211
#1 [check_mod_item_types] checking item types in top-level module
23-
#2 [analysis] running analysis passes on this crate
2412
end of query stack

0 commit comments

Comments
 (0)