Skip to content

Commit 203b433

Browse files
committed
Remove dead expect_error_or_delayed_bug method.
1 parent 1e16927 commit 203b433

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

Diff for: compiler/rustc_middle/src/ty/context.rs

-5
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,6 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
153153
) -> Self::Const {
154154
Const::new_bound(self, debruijn, var, ty)
155155
}
156-
157-
fn expect_error_or_delayed_bug() {
158-
let has_errors = ty::tls::with(|tcx| tcx.dcx().has_errors_or_lint_errors_or_delayed_bugs());
159-
assert!(has_errors.is_some());
160-
}
161156
}
162157

163158
type InternedSet<'tcx, T> = ShardedHashMap<InternedInSet<'tcx, T>, ()>;

Diff for: compiler/rustc_type_ir/src/interner.rs

-3
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ pub trait Interner: Sized {
9595
fn mk_bound_ty(self, debruijn: DebruijnIndex, var: BoundVar) -> Self::Ty;
9696
fn mk_bound_region(self, debruijn: DebruijnIndex, var: BoundVar) -> Self::Region;
9797
fn mk_bound_const(self, debruijn: DebruijnIndex, var: BoundVar, ty: Self::Ty) -> Self::Const;
98-
99-
/// Assert that an error has been delayed or emitted.
100-
fn expect_error_or_delayed_bug();
10198
}
10299

103100
/// Common capabilities of placeholder kinds

0 commit comments

Comments
 (0)