aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2019-05-09 06:47:06 -0700
committerGitHub <noreply@github.com>2019-05-09 06:47:06 -0700
commit320464be3b014deaaf9387583862b1d4a69d89f8 (patch)
tree424943ad5a0b169d9027f2f0a1eedba9065ffffc
parentd038a0bc5687cede01e626138868d83f487ba69c (diff)
parent4ad7eebf9e4de374eace6bb794dd96c41438e7bd (diff)
downloadmilf-rs-320464be3b014deaaf9387583862b1d4a69d89f8.tar.gz
milf-rs-320464be3b014deaaf9387583862b1d4a69d89f8.zip
Merge pull request #307 from ehuss/remove-conditional-rustc
Remove rustc version checking.
-rw-r--r--test-suite/Cargo.toml4
-rw-r--r--test-suite/build.rs9
-rw-r--r--test-suite/tests/float.rs1
-rw-r--r--test-suite/tests/macros.rs1
4 files changed, 0 insertions, 15 deletions
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 <alex@alexcrichton.com>"]
-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