File tree Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Expand file tree Collapse file tree 2 files changed +4
-17
lines changed Original file line number Diff line number Diff line change @@ -1071,25 +1071,11 @@ impl HandlerInner {
10711071 // haven't already emitted an equivalent diagnostic.
10721072 if !( self . flags . deduplicate_diagnostics && already_emitted ( self ) ) {
10731073 self . emitter . emit_diagnostic ( diagnostic) ;
1074- if diagnostic. is_error ( ) {
1075- self . deduplicated_err_count += 1 ;
1076- } else if diagnostic. level == Warning {
1077- self . deduplicated_warn_count += 1 ;
1078- }
1074+ self . deduplicated_warn_count += 1 ;
10791075 }
1080- if diagnostic. is_error ( ) {
1081- if matches ! ( diagnostic. level, Level :: Error { lint: true } ) {
1082- self . bump_lint_err_count ( ) ;
1083- } else {
1084- self . bump_err_count ( ) ;
1085- }
1086-
1087- Some ( ErrorGuaranteed :: unchecked_claim_error_was_emitted ( ) )
1088- } else {
1089- self . bump_warn_count ( ) ;
1076+ self . bump_warn_count ( ) ;
10901077
1091- None
1092- }
1078+ None
10931079 }
10941080
10951081 fn emit_artifact_notification ( & mut self , path : & Path , artifact_type : & str ) {
Original file line number Diff line number Diff line change @@ -898,6 +898,7 @@ pub fn create_global_ctxt<'tcx>(
898898/// Runs the resolution, type-checking, region checking and other
899899/// miscellaneous analysis passes on the crate.
900900fn analysis ( tcx : TyCtxt < ' _ > , ( ) : ( ) ) -> Result < ( ) > {
901+ return Ok ( ( ) ) ;
901902 rustc_passes:: hir_id_validator:: check_crate ( tcx) ;
902903
903904 let sess = tcx. sess ;
You can’t perform that action at this time.
0 commit comments