From 34a7108b73475f3f4a5900019bd122a2c9c63085 Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Wed, 30 May 2018 00:17:02 -0700 Subject: [PATCH] Second attempt at workaround for docs.rs compiler --- serde/build.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/serde/build.rs b/serde/build.rs index ee1d6c3c..ac0549f9 100644 --- a/serde/build.rs +++ b/serde/build.rs @@ -53,6 +53,11 @@ fn rustc_minor_version() -> Option { Err(_) => return None, }; + // Temporary workaround to support the old 1.26-dev compiler on docs.rs. + if version.contains("0eb87c9bf") { + return Some(25); + } + let mut pieces = version.split('.'); if pieces.next() != Some("rustc 1") { return None;