about summary refs log tree commit diff
path: root/src/librustc_interface
diff options
context:
space:
mode:
authorJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-05-20 03:39:48 +0200
committerJohn Kåre Alsaker <john.kare.alsaker@gmail.com>2019-05-21 18:17:06 +0200
commit0b37900b40e8db004b2a13ff4c70fc363eba610b (patch)
treea66d8c17b0f0a613afe0c0407d5b5ce44b3180c9 /src/librustc_interface
parenta1f2dceaebd21a6f8a5f9341bf41724bb20e2a7d (diff)
downloadrust-0b37900b40e8db004b2a13ff4c70fc363eba610b.tar.gz
rust-0b37900b40e8db004b2a13ff4c70fc363eba610b.zip
Specify the edition for the rustdoc thread-pool
Diffstat (limited to 'src/librustc_interface')
-rw-r--r--src/librustc_interface/interface.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/librustc_interface/interface.rs b/src/librustc_interface/interface.rs
index d598a48649e..674b2b60e44 100644
--- a/src/librustc_interface/interface.rs
+++ b/src/librustc_interface/interface.rs
@@ -143,10 +143,10 @@ where
     )
 }
 
-pub fn default_thread_pool<F, R>(f: F) -> R
+pub fn default_thread_pool<F, R>(edition: edition::Edition, f: F) -> R
 where
     F: FnOnce() -> R + Send,
     R: Send,
 {
-    util::spawn_thread_pool(edition::DEFAULT_EDITION, None, &None, f)
+    util::spawn_thread_pool(edition, None, &None, f)
 }