Skip to content

Commit

Permalink
Second attempt at workaround for docs.rs compiler
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed May 30, 2018
1 parent db2bafd commit 34a7108
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions serde/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ fn rustc_minor_version() -> Option<u32> {
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;
Expand Down

0 comments on commit 34a7108

Please sign in to comment.