File tree 4 files changed +23
-20
lines changed
4 files changed +23
-20
lines changed Original file line number Diff line number Diff line change 1
1
#![ feature( type_alias_impl_trait) ]
2
2
3
3
// edition:2021
4
- // unset-rustc-env:RUST_BACKTRACE
5
4
// 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`
7
6
// 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
12
10
13
11
use std:: future:: Future ;
14
12
Original file line number Diff line number Diff line change 1
1
error: unconstrained opaque type
2
- --> $DIR/issue-86800.rs:33 :34
2
+ --> $DIR/issue-86800.rs:31 :34
3
3
|
4
4
LL | type TransactionFuture<'__, O> = impl '__ + Future<Output = TransactionResult<O>>;
5
5
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
6
6
|
7
- =
8
-
9
-
10
- stack backtrace:
11
-
12
7
error: the compiler unexpectedly panicked. this is a bug.
13
8
14
-
15
-
16
-
17
-
18
-
19
-
20
9
query stack during panic:
21
10
#0 [type_of] computing type of `TransactionFuture::{opaque#0}`
22
11
#1 [check_mod_item_types] checking item types in top-level module
23
- #2 [analysis] running analysis passes on this crate
24
12
end of query stack
Original file line number Diff line number Diff line change 2
2
// compile-flags:-Z treat-err-as-bug=1
3
3
// error-pattern:stack backtrace:
4
4
// failure-status:101
5
+ // ignore-msvc
5
6
// normalize-stderr-test "note: .*" -> ""
6
7
// normalize-stderr-test "thread 'rustc' .*" -> ""
7
- // normalize-stderr-test " .*\n" -> ""
8
+ // normalize-stderr-test " +\d+:.*__rust_begin_short_backtrace.*" -> "(begin_short_backtrace)"
9
+ // normalize-stderr-test " +\d+:.*__rust_end_short_backtrace.*" -> "(end_short_backtrace)"
10
+ // normalize-stderr-test " +\d+:.*\n" -> ""
11
+ // normalize-stderr-test " +at .*\n" -> ""
12
+ //
13
+ // This test makes sure that full backtraces are used for ICEs when
14
+ // RUST_BACKTRACE is not set. It does this by checking for the presence of
15
+ // `__rust_{begin,end}_short_backtrace` markers, which only appear in full
16
+ // backtraces. The rest of the backtrace is filtered out.
17
+ //
18
+ // Ignored on msvc becaue the `__rust_{begin,end}_short_backtrace` symbols
19
+ // aren't reliable.
8
20
9
21
fn main ( ) { missing_ident; }
Original file line number Diff line number Diff line change 1
1
error[E0425]: cannot find value `missing_ident` in this scope
2
+ --> $DIR/default-backtrace-ice.rs:21:13
3
+ |
2
4
LL | fn main() { missing_ident; }
5
+ | ^^^^^^^^^^^^^ not found in this scope
3
6
4
7
5
8
stack backtrace:
9
+ (end_short_backtrace)
10
+ (begin_short_backtrace)
6
11
7
12
error: the compiler unexpectedly panicked. this is a bug.
8
13
You can’t perform that action at this time.
0 commit comments