aboutsummaryrefslogtreecommitdiff
path: root/tests/compiletest.rs
diff options
context:
space:
mode:
authorHaibo Huang <hhb@google.com>2020-11-18 15:37:31 -0800
committerHaibo Huang <hhb@google.com>2020-11-18 15:37:31 -0800
commit6c94c6bafeee5322a4502f48fd53bf0269f144cc (patch)
tree62e1173064643de076d5710596b3cd6d390f4d00 /tests/compiletest.rs
parentcd6b1713c13e53065c66512d3ba0a578bbf22830 (diff)
downloadpin-project-6c94c6bafeee5322a4502f48fd53bf0269f144cc.tar.gz
Upgrade rust/crates/pin-project to 1.0.2
Test: make Change-Id: Ia85e48e7fd669c568d9abc6a68934b8cfdb13f09
Diffstat (limited to 'tests/compiletest.rs')
-rw-r--r--tests/compiletest.rs9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/compiletest.rs b/tests/compiletest.rs
index be01ba8..057df7c 100644
--- a/tests/compiletest.rs
+++ b/tests/compiletest.rs
@@ -1,9 +1,16 @@
#![cfg(not(miri))]
#![warn(rust_2018_idioms, single_use_lifetimes)]
-#[rustversion::attr(not(nightly), ignore)]
+use std::env;
+
+// Run `./dev.sh +$toolchain test --test compiletest` to update this.
+#[rustversion::attr(before(2020-10-28), 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/cfg/*.rs");
t.compile_fail("tests/ui/not_unpin/*.rs");