Fix bad printing of const-eval queries
This commit is contained in:
20
src/test/ui/consts/const-eval/const-eval-query-stack.rs
Normal file
20
src/test/ui/consts/const-eval/const-eval-query-stack.rs
Normal file
@@ -0,0 +1,20 @@
|
||||
// compile-flags: -Ztreat-err-as-bug
|
||||
// build-fail
|
||||
// failure-status: 101
|
||||
// normalize-stderr-test "\nerror: internal compiler error.*\n\n" -> ""
|
||||
// normalize-stderr-test "note:.*unexpectedly panicked.*\n\n" -> ""
|
||||
// normalize-stderr-test "note: we would appreciate a bug report.*\n\n" -> ""
|
||||
// normalize-stderr-test "note: compiler flags.*\n\n" -> ""
|
||||
// normalize-stderr-test "note: rustc.*running on.*\n\n" -> ""
|
||||
// normalize-stderr-test "thread.*panicked.*\n" -> ""
|
||||
// normalize-stderr-test "stack backtrace:\n" -> ""
|
||||
// normalize-stderr-test " \d{1,}: .*\n" -> ""
|
||||
// normalize-stderr-test ".*note: Some details.*\n" -> ""
|
||||
|
||||
#![allow(unconditional_panic)]
|
||||
|
||||
fn main() {
|
||||
let x: &'static i32 = &(1 / 0);
|
||||
//~^ ERROR reaching this expression at runtime will panic or abort [const_err]
|
||||
println!("x={}", x);
|
||||
}
|
||||
Reference in New Issue
Block a user