From 4ad7eebf9e4de374eace6bb794dd96c41438e7bd Mon Sep 17 00:00:00 2001 From: Eric Huss Date: Wed, 8 May 2019 17:39:18 -0700 Subject: Remove rustc version checking. This is no longer necessary, as <1.20 is no longer supported. --- test-suite/Cargo.toml | 4 ---- test-suite/build.rs | 9 --------- test-suite/tests/float.rs | 1 - test-suite/tests/macros.rs | 1 - 4 files changed, 15 deletions(-) delete mode 100644 test-suite/build.rs (limited to 'test-suite') diff --git a/test-suite/Cargo.toml b/test-suite/Cargo.toml index 10ffbcb..7c37e29 100644 --- a/test-suite/Cargo.toml +++ b/test-suite/Cargo.toml @@ -2,12 +2,8 @@ name = "toml_test_suite" version = "0.0.0" authors = ["Alex Crichton "] -build = "build.rs" publish = false -[build-dependencies] -rustc_version = "0.2" - [dev-dependencies] toml = { path = ".." } serde = "1.0" diff --git a/test-suite/build.rs b/test-suite/build.rs deleted file mode 100644 index 5a9a55a..0000000 --- a/test-suite/build.rs +++ /dev/null @@ -1,9 +0,0 @@ -extern crate rustc_version; -use rustc_version::{version, Version}; - -fn main() { - if version().unwrap() >= Version::parse("1.20.0").unwrap() { - println!(r#"cargo:rustc-cfg=feature="test-quoted-keys-in-macro""#); - println!(r#"cargo:rustc-cfg=feature="test-nan-sign""#); - } -} diff --git a/test-suite/tests/float.rs b/test-suite/tests/float.rs index 6590fe4..1421220 100644 --- a/test-suite/tests/float.rs +++ b/test-suite/tests/float.rs @@ -72,7 +72,6 @@ sf8 = -0.0 } #[test] -#[cfg(feature = "test-nan-sign")] fn float_inf() { float_inf_tests!(f32); float_inf_tests!(f64); diff --git a/test-suite/tests/macros.rs b/test-suite/tests/macros.rs index 6b77c81..35bf186 100644 --- a/test-suite/tests/macros.rs +++ b/test-suite/tests/macros.rs @@ -279,7 +279,6 @@ fn test_datetime() { // This test requires rustc >= 1.20. #[test] -#[cfg(feature = "test-quoted-keys-in-macro")] fn test_quoted_key() { let actual = toml! { "quoted" = true -- cgit v1.2.3