From d627abc0fb45b352a8deb9157a1fe40d3ed9f0ce Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 31 Dec 2019 23:08:26 -0800 Subject: [PATCH] Make errorf macro available in benches Required for the logging in repo::clone_rust. This needs to get refactored... --- benches/file.rs | 7 +++++++ benches/rust.rs | 7 +++++++ 2 files changed, 14 insertions(+) diff --git a/benches/file.rs b/benches/file.rs index 08ecd909..58ab8df2 100644 --- a/benches/file.rs +++ b/benches/file.rs @@ -1,9 +1,16 @@ // $ cargo bench --features full --bench file #![feature(rustc_private, test)] +#![recursion_limit = "1024"] extern crate test; +#[macro_use] +#[path = "../tests/macros/mod.rs"] +mod macros; + +#[path = "../tests/common/mod.rs"] +mod common; #[path = "../tests/repo/mod.rs"] pub mod repo; diff --git a/benches/rust.rs b/benches/rust.rs index b6584cf8..941ecb90 100644 --- a/benches/rust.rs +++ b/benches/rust.rs @@ -4,7 +4,14 @@ // $ RUSTFLAGS='--cfg syn_only' cargo build --release --features full --bench rust #![cfg_attr(not(syn_only), feature(rustc_private))] +#![recursion_limit = "1024"] +#[macro_use] +#[path = "../tests/macros/mod.rs"] +mod macros; + +#[path = "../tests/common/mod.rs"] +mod common; #[path = "../tests/repo/mod.rs"] mod repo;