Make errorf macro available in benches

Required for the logging in repo::clone_rust. This needs to get
refactored...
This commit is contained in:
David Tolnay 2019-12-31 23:08:26 -08:00
parent 2d31b16cf0
commit d627abc0fb
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
2 changed files with 14 additions and 0 deletions

View File

@ -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;

View File

@ -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;