mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-01 19:23:50 +00:00
5d1d384443
Because the corresponding `Level` is `DelayedBug` and `span_delayed_bug` follows the pattern used everywhere else: `span_err`, `span_warning`, etc.
13 lines
450 B
Rust
13 lines
450 B
Rust
// compile-flags: -Ztreat-err-as-bug
|
|
// failure-status: 101
|
|
// error-pattern: aborting due to `-Z treat-err-as-bug=1`
|
|
// error-pattern: [trigger_span_delayed_bug] triggering a span delayed bug for testing incremental
|
|
// normalize-stderr-test "note: .*\n\n" -> ""
|
|
// normalize-stderr-test "thread 'rustc' panicked.*:\n.*\n" -> ""
|
|
// rustc-env:RUST_BACKTRACE=0
|
|
|
|
#![feature(rustc_attrs)]
|
|
|
|
#[rustc_error(span_delayed_bug_from_inside_query)]
|
|
fn main() {}
|