diff options
| author | bors <bors@rust-lang.org> | 2023-12-02 02:48:34 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-12-02 02:48:34 +0000 |
| commit | 2da59b867621eab2c8acb2d14223ddb57cbd86e9 (patch) | |
| tree | 940a360066f4aaf6fbf646270c69df3f3438b209 /compiler/rustc_privacy/src | |
| parent | bd3a22115fa3b7c572333783cd315c134b48e967 (diff) | |
| parent | 61f93563d8acd5c802ce9fb5f71e1c2af28a8f26 (diff) | |
| download | rust-2da59b867621eab2c8acb2d14223ddb57cbd86e9.tar.gz rust-2da59b867621eab2c8acb2d14223ddb57cbd86e9.zip | |
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
Diffstat (limited to 'compiler/rustc_privacy/src')
| -rw-r--r-- | compiler/rustc_privacy/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs index 95f631d2bca..e7ec4749efe 100644 --- a/compiler/rustc_privacy/src/lib.rs +++ b/compiler/rustc_privacy/src/lib.rs @@ -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(), |
