]> git.proxmox.com Git - rustc.git/blob - src/test/ui/proc-macro/load-panic-backtrace.rs
New upstream version 1.49.0~beta.4+dfsg1
[rustc.git] / src / test / ui / proc-macro / load-panic-backtrace.rs
1 // aux-build:test-macros.rs
2 // compile-flags: -Z proc-macro-backtrace
3 // rustc-env:RUST_BACKTRACE=0
4
5 // FIXME https://github.com/rust-lang/rust/issues/59998
6 // normalize-stderr-test "thread '.*' panicked " -> ""
7 // normalize-stderr-test "note:.*RUST_BACKTRACE=1.*\n" -> ""
8 // normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> ""
9 // normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> ""
10 // normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
11 // normalize-stderr-test "note: compiler flags.*\n\n" -> ""
12 // normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
13 // normalize-stderr-test "query stack during panic:\n" -> ""
14 // normalize-stderr-test "we're just showing a limited slice of the query stack\n" -> ""
15 // normalize-stderr-test "end of query stack\n" -> ""
16
17 #[macro_use]
18 extern crate test_macros;
19
20 #[derive(Panic)]
21 //~^ ERROR: proc-macro derive panicked
22 struct Foo;
23
24 fn main() {}