Skip to content

Commit

Permalink
ignore errors lol
Browse files Browse the repository at this point in the history
  • Loading branch information
syvb committed Mar 21, 2022
1 parent 051d117 commit 709edf2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 17 deletions.
20 changes: 3 additions & 17 deletions compiler/rustc_errors/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,25 +1071,11 @@ impl HandlerInner {
// haven't already emitted an equivalent diagnostic.
if !(self.flags.deduplicate_diagnostics && already_emitted(self)) {
self.emitter.emit_diagnostic(diagnostic);
if diagnostic.is_error() {
self.deduplicated_err_count += 1;
} else if diagnostic.level == Warning {
self.deduplicated_warn_count += 1;
}
self.deduplicated_warn_count += 1;
}
if diagnostic.is_error() {
if matches!(diagnostic.level, Level::Error { lint: true }) {
self.bump_lint_err_count();
} else {
self.bump_err_count();
}

Some(ErrorGuaranteed::unchecked_claim_error_was_emitted())
} else {
self.bump_warn_count();
self.bump_warn_count();

None
}
None
}

fn emit_artifact_notification(&mut self, path: &Path, artifact_type: &str) {
Expand Down
1 change: 1 addition & 0 deletions compiler/rustc_interface/src/passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,7 @@ pub fn create_global_ctxt<'tcx>(
/// Runs the resolution, type-checking, region checking and other
/// miscellaneous analysis passes on the crate.
fn analysis(tcx: TyCtxt<'_>, (): ()) -> Result<()> {
return Ok(());
rustc_passes::hir_id_validator::check_crate(tcx);

let sess = tcx.sess;
Expand Down

0 comments on commit 709edf2

Please sign in to comment.