summary refs log tree commit diff
path: root/compiler/rustc_driver/src
diff options
context:
space:
mode:
authorJoshua Nelson <jyn514@gmail.com>2021-03-16 12:57:31 -0400
committerJoshua Nelson <jyn514@gmail.com>2021-03-27 22:16:34 -0400
commitde0fda9558e5b9eed94cd1e2c1599ea72115d744 (patch)
tree942ff681716427b047195805b3e7c578a5d012be /compiler/rustc_driver/src
parent441dc3640a408e612064464b0c6308bdca6c16ce (diff)
downloadrust-de0fda9558e5b9eed94cd1e2c1599ea72115d744.tar.gz
rust-de0fda9558e5b9eed94cd1e2c1599ea72115d744.zip
Address review comments
- Add back `HirIdVec`, with a comment that it will soon be used.
- Add back `*_region` functions, with a comment they may soon be used.
- Remove `-Z borrowck_stats` completely. It didn't do anything.
- Remove `make_nop` completely.
- Add back `current_loc`, which is used by an out-of-tree tool.
- Fix style nits
- Remove `AtomicCell` with `cfg(parallel_compiler)` for consistency.
Diffstat (limited to 'compiler/rustc_driver/src')
-rw-r--r--compiler/rustc_driver/src/lib.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/compiler/rustc_driver/src/lib.rs b/compiler/rustc_driver/src/lib.rs
index 2a61fb54772..c8891734cce 100644
--- a/compiler/rustc_driver/src/lib.rs
+++ b/compiler/rustc_driver/src/lib.rs
@@ -157,10 +157,9 @@ impl<'a, 'b> RunCompiler<'a, 'b> {
         self
     }
     /// Used by RLS.
-    pub fn set_emitter(&mut self, emitter: Option<Box<dyn Write + Send>>) -> &mut Self
-    {
-           self.emitter = emitter;
-           self
+    pub fn set_emitter(&mut self, emitter: Option<Box<dyn Write + Send>>) -> &mut Self {
+        self.emitter = emitter;
+        self
     }
     /// Used by RLS.
     pub fn set_file_loader(