Skip to content

Commit 709edf2

Browse files
committed
ignore errors lol
1 parent 051d117 commit 709edf2

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

compiler/rustc_errors/src/lib.rs

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff 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) {

compiler/rustc_interface/src/passes.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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.
900900
fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
901+
return Ok(());
901902
rustc_passes::hir_id_validator::check_crate(tcx);
902903

903904
let sess = tcx.sess;

0 commit comments

Comments
 (0)