Skip to content
This repository was archived by the owner on May 9, 2022. It is now read-only.

Commit 853988a

Browse files
committed
Fix build errors due to rust-lang/rust#60444
1 parent d5e11f9 commit 853988a

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

.travis.yml

+12
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,18 @@ matrix:
1919
sudo: required # Work around for travis-ci/travis-ci#9061
2020
env:
2121
- RUSTFLAGS="-C link-dead-code" # Enable better code coverage at the cost of binary size
22+
script:
23+
- cargo check --no-default-features
24+
# NB: don't run with the top-level feature enabled see rust-lang/rust#60444
25+
- cargo check --no-default-features --features 'conch-parser'
26+
# Retry with fewer cores if the initial `cargo test` fails to work around possible OOM errors
27+
# for more details see https://github.com/rust-lang/cargo/issues/4415
28+
- cargo test --no-fail-fast --no-default-features --features 'conch-parser' ||
29+
(
30+
echo 'initial `cargo test` failed, retrying with fewer cores to work around OOM issues' &&
31+
cargo test --no-fail-fast --verbose -j 1
32+
cargo test --no-fail-fast --no-default-features --features 'conch-parser' ||
33+
)
2234
after_success:
2335
- ./ci/install-kcov.sh && ./ci/coverage.sh
2436

src/lib.rs

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
3232
#![doc(html_root_url = "https://docs.rs/conch-runtime/0.1")]
3333

34+
#![cfg_attr(all(feature = "conch-parser", feature = "top-level"), recursion_limit="128")]
35+
3436
#![cfg_attr(feature = "clippy", feature(plugin))]
3537
#![cfg_attr(feature = "clippy", plugin(clippy))]
3638

0 commit comments

Comments
 (0)