1
Fork 0

Remove dead expect_error_or_delayed_bug method.

This commit is contained in:
Nicholas Nethercote 2024-02-16 14:50:07 +11:00
parent 1e16927ef3
commit 203b4332bb
2 changed files with 0 additions and 8 deletions

View file

@ -153,11 +153,6 @@ impl<'tcx> Interner for TyCtxt<'tcx> {
) -> Self::Const {
Const::new_bound(self, debruijn, var, ty)
}
fn expect_error_or_delayed_bug() {
let has_errors = ty::tls::with(|tcx| tcx.dcx().has_errors_or_lint_errors_or_delayed_bugs());
assert!(has_errors.is_some());
}
}
type InternedSet<'tcx, T> = ShardedHashMap<InternedInSet<'tcx, T>, ()>;