about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChinedu Francis Nwafili <frankie.nwafili@gmail.com>2023-09-12 03:25:41 -0400
committerChinedu Francis Nwafili <frankie.nwafili@gmail.com>2023-09-12 07:55:39 -0400
commitfeb80025023a7cade71003309ae0806bda82f251 (patch)
treec2a93ddf733ec9d90467ed215b06f02eef008f0f
parent7db9c3c1a6ef12e3402c1cf439a203faeab1ca2c (diff)
downloadrust-feb80025023a7cade71003309ae0806bda82f251.tar.gz
rust-feb80025023a7cade71003309ae0806bda82f251.zip
Fix formatting
-rw-r--r--compiler/rustc_passes/src/dead.rs20
1 files changed, 8 insertions, 12 deletions
diff --git a/compiler/rustc_passes/src/dead.rs b/compiler/rustc_passes/src/dead.rs
index 3af34840af5..69079a2c1af 100644
--- a/compiler/rustc_passes/src/dead.rs
+++ b/compiler/rustc_passes/src/dead.rs
@@ -829,12 +829,7 @@ impl<'tcx> DeadVisitor<'tcx> {
             }
         };
 
-        self.tcx.emit_spanned_lint(
-            lint,
-            first_hir_id,
-            MultiSpan::from_spans(spans),
-            diag,
-        );
+        self.tcx.emit_spanned_lint(lint, first_hir_id, MultiSpan::from_spans(spans), diag);
     }
 
     fn warn_dead_code_grouped_by_lint_level(
@@ -915,11 +910,7 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
                     let hir = tcx.hir().local_def_id_to_hir_id(def_id);
                     let level = tcx.lint_level_at_node(lint::builtin::DEAD_CODE, hir).0;
 
-                    dead_items.push(DeadVariant {
-                        def_id,
-                        name,
-                        level,
-                    })
+                    dead_items.push(DeadVariant { def_id, name, level })
                 }
             }
             visitor.warn_dead_code_grouped_by_lint_level(
@@ -982,7 +973,12 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
                         }
                     })
                     .collect();
-                visitor.warn_dead_code_grouped_by_lint_level(def_id, "read", dead_fields, is_positional)
+                visitor.warn_dead_code_grouped_by_lint_level(
+                    def_id,
+                    "read",
+                    dead_fields,
+                    is_positional,
+                )
             }
 
             visitor.warn_dead_code_grouped_by_lint_level(