about summary refs log tree commit diff
path: root/compiler/rustc_driver
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2022-10-10 10:50:14 +1100
committerNicholas Nethercote <n.nethercote@gmail.com>2022-10-19 17:37:48 +1100
commitcf13d9143d2a907120682fe3d6e59249a21cb0ca (patch)
treeda0ad2c4d0e27b154265040874ee08e26198f2ff /compiler/rustc_driver
parent2efc90e7381721df57348b61518b15794b75d189 (diff)
downloadrust-cf13d9143d2a907120682fe3d6e59249a21cb0ca.tar.gz
rust-cf13d9143d2a907120682fe3d6e59249a21cb0ca.zip
Clarify `run_in_thread_pool_with_globals`.
- Make the structure of the two variants more similar.
- Add some comments.
- Move various conditional `use` items inside the function that uses
  them.
- Inline some closures.
Diffstat (limited to 'compiler/rustc_driver')
-rw-r--r--compiler/rustc_driver/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index f268d50e96e..7edbb6f757c 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -190,6 +190,7 @@ impl<'a, 'b> RunCompiler<'a, 'b> {
         run_compiler(self.at_args, self.callbacks, self.file_loader, self.make_codegen_backend)
     }
 }
+
 fn run_compiler(
     at_args: &[String],
     callbacks: &mut (dyn Callbacks + Send),