From 17403105ffa39616ef9840c21b105175f5941162 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Dec 2018 15:27:28 -0500 Subject: [PATCH 1/3] Revert "Replace future deprecated call" This reverts commit 439305190ffbc32ed06f1f9db442f120d3cec7f4. --- src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib.rs b/src/lib.rs index 6a9081f..c3dd48a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1719,7 +1719,7 @@ impl Build { } else if self.get_host()? != target { // CROSS_COMPILE is of the form: "arm-linux-gnueabi-" let cc_env = self.getenv("CROSS_COMPILE"); - let cross_compile = cc_env.as_ref().map(|s| s.trim_end_matches('-')); + let cross_compile = cc_env.as_ref().map(|s| s.trim_right_matches('-')); let prefix = cross_compile.or(match &target[..] { "aarch64-unknown-linux-gnu" => Some("aarch64-linux-gnu"), "aarch64-unknown-linux-musl" => Some("aarch64-linux-musl"), From 93b154df88784f0c4d0547055c787bd29c7f2c3a Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Dec 2018 15:27:35 -0500 Subject: [PATCH 2/3] Revert "Update minimum version" This reverts commit 228513449f3e2674cdce0f53206c9449af9d3778. --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index b28b0e8..47bbfd8 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,7 +3,7 @@ sudo: false matrix: include: - - rust: 1.30.0 + - rust: 1.16.0 install: script: cargo build - rust: stable From 5f0a3e6ba81943a095a76102b4fe7fd3b9493bed Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 19 Dec 2018 15:36:07 -0500 Subject: [PATCH 3/3] Allow(deprecated) to avoid needlessly breaking the Rust ecosystem --- src/lib.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib.rs b/src/lib.rs index c3dd48a..5eebd07 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -55,6 +55,7 @@ #![doc(html_root_url = "https://docs.rs/cc/1.0")] #![cfg_attr(test, deny(warnings))] +#![allow(deprecated)] #![deny(missing_docs)] #[cfg(feature = "parallel")]