Auto merge of #118470 - nnethercote:cleanup-error-handlers, r=compiler-errors
Cleanup error handlers Mostly by making function naming more consistent. More to do after this, but this is enough for one PR. r? compiler-errors
This commit is contained in:
commit
2da59b8676
170 changed files with 495 additions and 517 deletions
|
@ -1253,7 +1253,7 @@ impl<'tcx> Visitor<'tcx> for TypePrivacyVisitor<'tcx> {
|
|||
} else {
|
||||
self.tcx
|
||||
.sess
|
||||
.delay_span_bug(expr.span, "no type-dependent def for method call");
|
||||
.span_delayed_bug(expr.span, "no type-dependent def for method call");
|
||||
}
|
||||
}
|
||||
_ => {}
|
||||
|
@ -1828,7 +1828,7 @@ fn local_visibility(tcx: TyCtxt<'_>, def_id: LocalDefId) -> ty::Visibility {
|
|||
..
|
||||
}) => tr.path.res.opt_def_id().map_or_else(
|
||||
|| {
|
||||
tcx.sess.delay_span_bug(tr.path.span, "trait without a def-id");
|
||||
tcx.sess.span_delayed_bug(tr.path.span, "trait without a def-id");
|
||||
ty::Visibility::Public
|
||||
},
|
||||
|def_id| tcx.visibility(def_id).expect_local(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue