aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui.rs
diff options
context:
space:
mode:
authorLibravatar René Kijewski <kijewski@library.vetmed.fu-berlin.de>2021-11-30 13:54:29 +0100
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2021-12-01 01:13:09 -0800
commit671bc7f32fd150f04793d8d5dbe806e9d4cfe669 (patch)
treeae8db79ee0d9bd45de13b08972a046296dc1775b /testing/tests/ui.rs
parent3d82b59a2ae58e9c438315273f204fc2783eb0d3 (diff)
downloadaskama-671bc7f32fd150f04793d8d5dbe806e9d4cfe669.tar.gz
askama-671bc7f32fd150f04793d8d5dbe806e9d4cfe669.tar.bz2
askama-671bc7f32fd150f04793d8d5dbe806e9d4cfe669.zip
Fix tests for new error messages in Rust nightly
Diffstat (limited to 'testing/tests/ui.rs')
-rw-r--r--testing/tests/ui.rs18
1 files changed, 14 insertions, 4 deletions
diff --git a/testing/tests/ui.rs b/testing/tests/ui.rs
index 39a0b78..33848b2 100644
--- a/testing/tests/ui.rs
+++ b/testing/tests/ui.rs
@@ -6,9 +6,19 @@ fn ui() {
let t = TestCases::new();
t.compile_fail("tests/ui/*.rs");
- if rustc::is_min_version("1.54").unwrap() {
- t.compile_fail("tests/ui/since_1_54/*.rs");
- } else {
- t.compile_fail("tests/ui/before_1_54/*.rs");
+ if rustc::is_min_version("1.58").unwrap() {
+ t.compile_fail("tests/ui/since_1.58/*.rs");
+ }
+
+ if rustc::is_max_version("1.57").unwrap() {
+ t.compile_fail("tests/ui/before_1.58/*.rs");
+ }
+
+ if rustc::is_min_version("1.54").unwrap() && rustc::is_max_version("1.57").unwrap() {
+ t.compile_fail("tests/ui/1.54_to_1.57/*.rs");
+ }
+
+ if rustc::is_max_version("1.53").unwrap() {
+ t.compile_fail("tests/ui/before_1.54/*.rs");
}
}