Skip to content

Commit

Permalink
Add test for delay_span_bug and -Ztrear-err-as-bug
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Apr 27, 2020
1 parent 230e406 commit 3fe2804
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/run-make-fulldeps/treat-err-as-bug/Makefile
Expand Up @@ -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\`'"
4 changes: 4 additions & 0 deletions src/test/run-make-fulldeps/treat-err-as-bug/delay_span_bug.rs
@@ -0,0 +1,4 @@
#![feature(rustc_attrs)]

#[rustc_error(delay_span_bug_from_inside_query)]
fn main() {}

0 comments on commit 3fe2804

Please sign in to comment.