File tree Expand file tree Collapse file tree 1 file changed +8
-12
lines changed
compiler/rustc_passes/src Expand file tree Collapse file tree 1 file changed +8
-12
lines changed Original file line number Diff line number Diff line change @@ -829,12 +829,7 @@ impl<'tcx> DeadVisitor<'tcx> {
829829 }
830830 } ;
831831
832- self . tcx . emit_spanned_lint (
833- lint,
834- first_hir_id,
835- MultiSpan :: from_spans ( spans) ,
836- diag,
837- ) ;
832+ self . tcx . emit_spanned_lint ( lint, first_hir_id, MultiSpan :: from_spans ( spans) , diag) ;
838833 }
839834
840835 fn warn_dead_code_grouped_by_lint_level (
@@ -915,11 +910,7 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
915910 let hir = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
916911 let level = tcx. lint_level_at_node ( lint:: builtin:: DEAD_CODE , hir) . 0 ;
917912
918- dead_items. push ( DeadVariant {
919- def_id,
920- name,
921- level,
922- } )
913+ dead_items. push ( DeadVariant { def_id, name, level } )
923914 }
924915 }
925916 visitor. warn_dead_code_grouped_by_lint_level (
@@ -982,7 +973,12 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
982973 }
983974 } )
984975 . collect ( ) ;
985- visitor. warn_dead_code_grouped_by_lint_level ( def_id, "read" , dead_fields, is_positional)
976+ visitor. warn_dead_code_grouped_by_lint_level (
977+ def_id,
978+ "read" ,
979+ dead_fields,
980+ is_positional,
981+ )
986982 }
987983
988984 visitor. warn_dead_code_grouped_by_lint_level (
You can’t perform that action at this time.
0 commit comments