File tree 1 file changed +8
-12
lines changed
compiler/rustc_passes/src
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> {
829
829
}
830
830
} ;
831
831
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) ;
838
833
}
839
834
840
835
fn warn_dead_code_grouped_by_lint_level (
@@ -915,11 +910,7 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
915
910
let hir = tcx. hir ( ) . local_def_id_to_hir_id ( def_id) ;
916
911
let level = tcx. lint_level_at_node ( lint:: builtin:: DEAD_CODE , hir) . 0 ;
917
912
918
- dead_items. push ( DeadVariant {
919
- def_id,
920
- name,
921
- level,
922
- } )
913
+ dead_items. push ( DeadVariant { def_id, name, level } )
923
914
}
924
915
}
925
916
visitor. warn_dead_code_grouped_by_lint_level (
@@ -982,7 +973,12 @@ fn check_mod_deathness(tcx: TyCtxt<'_>, module: LocalDefId) {
982
973
}
983
974
} )
984
975
. 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
+ )
986
982
}
987
983
988
984
visitor. warn_dead_code_grouped_by_lint_level (
You can’t perform that action at this time.
0 commit comments