From 0676e40b258e5c219b35447ed589d0be10f27ca6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Harabie=C5=84?= Date: Mon, 11 Nov 2019 00:09:02 +0100 Subject: [PATCH] Try to fix CI for old rustc versions by pinning cfg-if to 0.1.9 This should fix error: non-ident macro paths are experimental (see issue #35896) --- .travis.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fc06716..25fe654 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ matrix: - rust: 1.24.0 script: # Build only the library (examples may fail) + - cargo update && cargo update -p cfg-if --precise 0.1.9 - cargo build - rust: stable - rust: beta @@ -16,7 +17,7 @@ matrix: # nostd build # byteorder crate version is configured here to fix build in old nightly compiler # See: https://github.com/BurntSushi/byteorder/pull/150 - - cargo update && cargo update -p byteorder --precise 1.2.7 + - cargo update && cargo update -p byteorder --precise 1.2.7 && cargo update -p cfg-if --precise 0.1.9 - cargo build --no-default-features --features core_io - cargo build --no-default-features --features core_io,alloc - rust: nightly-2019-07-01