diff options
author | René Kijewski <kijewski@library.vetmed.fu-berlin.de> | 2021-11-30 13:54:29 +0100 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2021-12-01 01:13:09 -0800 |
commit | 671bc7f32fd150f04793d8d5dbe806e9d4cfe669 (patch) | |
tree | ae8db79ee0d9bd45de13b08972a046296dc1775b /testing/tests/ui.rs | |
parent | 3d82b59a2ae58e9c438315273f204fc2783eb0d3 (diff) | |
download | askama-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.rs | 18 |
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"); } } |