Merge pull request #307 from ehuss/remove-conditional-rustc

Remove rustc version checking.
This commit is contained in:
Alex Crichton 2019-05-09 06:47:06 -07:00 committed by GitHub
commit 895a039279
4 changed files with 0 additions and 15 deletions

View file

@ -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"

View file

@ -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""#);
}
}

View file

@ -72,7 +72,6 @@ sf8 = -0.0
}
#[test]
#[cfg(feature = "test-nan-sign")]
fn float_inf() {
float_inf_tests!(f32);
float_inf_tests!(f64);

View file

@ -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