From db2bafd3f3db80f6fcae39d42dca3177d3636bda Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 30 May 2018 00:13:20 -0700 Subject: [PATCH] Revert "Work around docs.rs using an old 1.26-dev compiler" This reverts commit c81bab18ad76b4f753d06998619894271ad14c73. --- serde/Cargo.toml | 5 ----- serde/src/integer128.rs | 4 ++-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/serde/Cargo.toml b/serde/Cargo.toml index 7e807cbb..602f9a95 100644 --- a/serde/Cargo.toml +++ b/serde/Cargo.toml @@ -23,11 +23,6 @@ serde_derive = { version = "1.0", optional = true, path = "../serde_derive" } [dev-dependencies] serde_derive = { version = "1.0", path = "../serde_derive" } -[package.metadata.docs.rs] -# Temporary cfg to work around docs.rs using an old 1.26-dev compiler. -rustc-args = ["--cfg", "serde_docs_rs"] -rustdoc-args = ["--cfg", "serde_docs_rs"] - ### FEATURES ################################################################# diff --git a/serde/src/integer128.rs b/serde/src/integer128.rs index ce8834d4..71db2465 100644 --- a/serde/src/integer128.rs +++ b/serde/src/integer128.rs @@ -70,7 +70,7 @@ /// ($($tt:tt)*) => {}; /// } /// ``` -#[cfg(all(integer128, not(serde_docs_rs)))] +#[cfg(integer128)] #[macro_export] macro_rules! serde_if_integer128 { ($($tt:tt)*) => { @@ -78,7 +78,7 @@ macro_rules! serde_if_integer128 { }; } -#[cfg(any(not(integer128), serde_docs_rs))] +#[cfg(not(integer128))] #[macro_export] #[doc(hidden)] macro_rules! serde_if_integer128 {