about summary refs log tree commit diff
path: root/tests/run-make-fulldeps/hotplug_codegen_backend
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2024-06-03 16:03:45 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2024-06-04 09:53:02 +1000
commitd161d06241af26d13ee22bddbfbd4e0e9c562757 (patch)
treeb8c518fba9ca8b3095d62bec2c5a114bf025bb29 /tests/run-make-fulldeps/hotplug_codegen_backend
parent5875f3fff39055f7e99b891bd18576f4edee4c92 (diff)
rustfmt `tests/run-make-fulldeps/`.
Note: I inserted blank lines between the items in
`pretty-expanded/input.rs` because it looked better that way.
Diffstat (limited to 'tests/run-make-fulldeps/hotplug_codegen_backend')
-rw-r--r--tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs b/tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs
index 28a1e27cccc..07466440aab 100644
--- a/tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs
+++ b/tests/run-make-fulldeps/hotplug_codegen_backend/the_backend.rs
@@ -27,7 +27,9 @@ use std::any::Any;
 struct TheBackend;
 
 impl CodegenBackend for TheBackend {
-    fn locale_resource(&self) -> &'static str { "" }
+    fn locale_resource(&self) -> &'static str {
+        ""
+    }
 
     fn codegen_crate<'a, 'tcx>(
         &self,
@@ -62,7 +64,10 @@ impl CodegenBackend for TheBackend {
         codegen_results: CodegenResults,
         outputs: &OutputFilenames,
     ) -> Result<(), ErrorGuaranteed> {
-        use rustc_session::{config::{CrateType, OutFileName}, output::out_filename};
+        use rustc_session::{
+            config::{CrateType, OutFileName},
+            output::out_filename,
+        };
         use std::io::Write;
         let crate_name = codegen_results.crate_info.local_crate_name;
         for &crate_type in sess.opts.crate_types.iter() {