about summary refs log tree commit diff
path: root/src/test/incremental
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-11-20 18:32:04 +0100
committerGitHub <noreply@github.com>2019-11-20 18:32:04 +0100
commite32397a75404d3e23701a727ebba753e391c1471 (patch)
treee0b1b353d1b6e6d185d96780fc85e92725ab8b57 /src/test/incremental
parentb9cf5417892ef242c783ef963deff5436205b0f6 (diff)
parente01d9415e26dfcdd31c182bec21049502f5477ff (diff)
downloadrust-e32397a75404d3e23701a727ebba753e391c1471.tar.gz
rust-e32397a75404d3e23701a727ebba753e391c1471.zip
Rollup merge of #66060 - traxys:test_65401, r=michaelwoerister
Making ICEs and test them in incremental

This adds:
 - A way to make the compiler ICE
 - A way to check for ICE in `cfail` tests with `should-ice`
 - A regression test for issue #65401

I am not sure the attribute added `should-ice` is the best for this job
Diffstat (limited to 'src/test/incremental')
-rw-r--r--src/test/incremental/delayed_span_bug.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/incremental/delayed_span_bug.rs b/src/test/incremental/delayed_span_bug.rs
new file mode 100644
index 00000000000..2529e531e30
--- /dev/null
+++ b/src/test/incremental/delayed_span_bug.rs
@@ -0,0 +1,8 @@
+// revisions: cfail1 cfail2
+// should-ice
+// error-pattern: delayed span bug triggered by #[rustc_error(delay_span_bug_from_inside_query)]
+
+#![feature(rustc_attrs)]
+
+#[rustc_error(delay_span_bug_from_inside_query)]
+fn main() {}