about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-12-03 19:07:16 +0100
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2018-12-06 23:18:06 +0100
commit93294ea4565d209e43484cf9bb6ddd66bb7007ae (patch)
treee4df54d6268ffe93d9965b6965fe019b88657db2
parent4fac7396a2da7fdc663ff8b26cdbbfe40a0eb9bb (diff)
downloadrust-93294ea4565d209e43484cf9bb6ddd66bb7007ae.tar.gz
rust-93294ea4565d209e43484cf9bb6ddd66bb7007ae.zip
Fix
-rw-r--r--src/librustc_driver/test.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_driver/test.rs b/src/librustc_driver/test.rs
index b8cd9bda7f0..2b6bb34b146 100644
--- a/src/librustc_driver/test.rs
+++ b/src/librustc_driver/test.rs
@@ -98,7 +98,7 @@ fn errors(msgs: &[&str]) -> (Box<dyn Emitter + sync::Send>, usize) {
 
 fn test_env<F>(source_string: &str, args: (Box<dyn Emitter + sync::Send>, usize), body: F)
 where
-    F: FnOnce(Env),
+    F: FnOnce(Env) + sync::Send,
 {
     syntax::with_globals(|| {
         let mut options = config::Options::default();