From c3f914381f080c75d519a6f5eb3043090026fddb Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 24 Apr 2022 15:14:40 -0700 Subject: [PATCH] Skip ui test on toolchains other than nightly --- tests/ui/Cargo.toml | 1 + tests/ui/compiletest.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/ui/Cargo.toml b/tests/ui/Cargo.toml index f68fdfcc..dbd580b3 100644 --- a/tests/ui/Cargo.toml +++ b/tests/ui/Cargo.toml @@ -10,4 +10,5 @@ path = "compiletest.rs" [dev-dependencies] proc-macro2 = { path = "../.." } +rustversion = "1.0" trybuild = { version = "1.0.49", features = ["diff"] } diff --git a/tests/ui/compiletest.rs b/tests/ui/compiletest.rs index d4fb6a5e..6f91ad36 100644 --- a/tests/ui/compiletest.rs +++ b/tests/ui/compiletest.rs @@ -1,3 +1,4 @@ +#[rustversion::attr(not(nightly), ignore)] #[test] fn ui() { let t = trybuild::TestCases::new();