Skip to content

Commit db7170c

Browse files
committed
Add missing dyn in driver.rs
1 parent 58bf387 commit db7170c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/driver.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ pub fn spawn_thread_pool<F: FnOnce(config::Options) -> R + sync::Send, R: sync::
100100
// the thread local rustc uses. syntax_globals and syntax_pos_globals are
101101
// captured and set on the new threads. ty::tls::with_thread_locals sets up
102102
// thread local callbacks from libsyntax
103-
let main_handler = move |worker: &mut FnMut()| {
103+
let main_handler = move |worker: &mut dyn FnMut()| {
104104
syntax::GLOBALS.set(syntax_globals, || {
105105
syntax_pos::GLOBALS.set(syntax_pos_globals, || {
106106
ty::tls::with_thread_locals(|| {

0 commit comments

Comments
 (0)