Remove rustc version checking.
This is no longer necessary, as <1.20 is no longer supported.
This commit is contained in:
parent
9842d61325
commit
1b062a9bac
|
@ -2,12 +2,8 @@
|
||||||
name = "toml_test_suite"
|
name = "toml_test_suite"
|
||||||
version = "0.0.0"
|
version = "0.0.0"
|
||||||
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
authors = ["Alex Crichton <alex@alexcrichton.com>"]
|
||||||
build = "build.rs"
|
|
||||||
publish = false
|
publish = false
|
||||||
|
|
||||||
[build-dependencies]
|
|
||||||
rustc_version = "0.2"
|
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
toml = { path = ".." }
|
toml = { path = ".." }
|
||||||
serde = "1.0"
|
serde = "1.0"
|
||||||
|
|
|
@ -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""#);
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -72,7 +72,6 @@ sf8 = -0.0
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "test-nan-sign")]
|
|
||||||
fn float_inf() {
|
fn float_inf() {
|
||||||
float_inf_tests!(f32);
|
float_inf_tests!(f32);
|
||||||
float_inf_tests!(f64);
|
float_inf_tests!(f64);
|
||||||
|
|
|
@ -279,7 +279,6 @@ fn test_datetime() {
|
||||||
|
|
||||||
// This test requires rustc >= 1.20.
|
// This test requires rustc >= 1.20.
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(feature = "test-quoted-keys-in-macro")]
|
|
||||||
fn test_quoted_key() {
|
fn test_quoted_key() {
|
||||||
let actual = toml! {
|
let actual = toml! {
|
||||||
"quoted" = true
|
"quoted" = true
|
||||||
|
|
Loading…
Reference in a new issue