Add test for delay_span_bug and -Ztrear-err-as-bug

This commit is contained in:
Santiago Pastorino 2020-04-24 16:08:22 -03:00
parent 230e40644b
commit 3fe280451b
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF
2 changed files with 6 additions and 0 deletions

View File

@ -3,3 +3,5 @@
all:
$(RUSTC) err.rs -Z treat-err-as-bug 2>&1 \
| $(CGREP) "panicked at 'aborting due to \`-Z treat-err-as-bug=1\`'"
$(RUSTC) delay_span_bug.rs -Z treat-err-as-bug 2>&1 \
| $(CGREP) "panicked at 'aborting due to \`-Z treat-err-as-bug=1\`'"

View File

@ -0,0 +1,4 @@
#![feature(rustc_attrs)]
#[rustc_error(delay_span_bug_from_inside_query)]
fn main() {}