From 7be6983e358782a6dc81901d44418ac66ac067b4 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Sun, 10 Aug 2025 16:30:11 -0700 Subject: [PATCH] Revert "Work around doc build failure due to docs.rs flags change" This reverts commit 13856719454bc02e090f0784c66a45558be0e9b8. --- build.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/build.rs b/build.rs index bced1e0a..e48ef564 100644 --- a/build.rs +++ b/build.rs @@ -29,8 +29,7 @@ fn main() { println!("cargo:rustc-check-cfg=cfg(wrap_proc_macro)"); } - let docs_rs = env::var_os("DOCS_RS").is_some(); - let semver_exempt = cfg!(procmacro2_semver_exempt) || docs_rs; + let semver_exempt = cfg!(procmacro2_semver_exempt); if semver_exempt { // https://github.com/dtolnay/proc-macro2/issues/147 println!("cargo:rustc-cfg=procmacro2_semver_exempt");