From db7170cf4ad9e4c72e5c456891647d0e1b6355be Mon Sep 17 00:00:00 2001 From: ljedrz Date: Thu, 12 Jul 2018 10:35:53 +0200 Subject: [PATCH] Add missing dyn in driver.rs --- src/librustc_driver/driver.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/librustc_driver/driver.rs b/src/librustc_driver/driver.rs index b017cc649bb..3c3c56e6295 100644 --- a/src/librustc_driver/driver.rs +++ b/src/librustc_driver/driver.rs @@ -100,7 +100,7 @@ pub fn spawn_thread_pool R + sync::Send, R: sync:: // the thread local rustc uses. syntax_globals and syntax_pos_globals are // captured and set on the new threads. ty::tls::with_thread_locals sets up // thread local callbacks from libsyntax - let main_handler = move |worker: &mut FnMut()| { + let main_handler = move |worker: &mut dyn FnMut()| { syntax::GLOBALS.set(syntax_globals, || { syntax_pos::GLOBALS.set(syntax_pos_globals, || { ty::tls::with_thread_locals(|| {