aboutsummaryrefslogtreecommitdiff
path: root/tests/compiletest.rs
diff options
context:
space:
mode:
Diffstat (limited to 'tests/compiletest.rs')
-rw-r--r--tests/compiletest.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/compiletest.rs b/tests/compiletest.rs
index d181491..af75bc5 100644
--- a/tests/compiletest.rs
+++ b/tests/compiletest.rs
@@ -1,8 +1,14 @@
#![warn(rust_2018_idioms, single_use_lifetimes)]
-#[rustversion::attr(not(nightly), ignore)]
+use std::env;
+
+#[rustversion::attr(before(2020-12-03), ignore)] // Note: This date is commit-date and the day before the toolchain date.
#[test]
fn ui() {
+ if env::var_os("CI").is_none() {
+ env::set_var("TRYBUILD", "overwrite");
+ }
+
let t = trybuild::TestCases::new();
t.compile_fail("tests/ui/*.rs");
}