Remove value_from_cycle_error specialization for type_of_opaque_hir_typeck

This commit is contained in:
John Kåre Alsaker
2026-03-12 15:55:28 +01:00
parent 0e4bafc47c
commit 791f4f9315
@@ -26,11 +26,6 @@ pub(crate) fn specialize_query_vtables<'tcx>(vtables: &mut QueryVTables<'tcx>) {
erase_val(ty::EarlyBinder::bind(Ty::new_error(tcx, guar)))
};
vtables.type_of_opaque_hir_typeck.value_from_cycle_error = |tcx, _, _, err| {
let guar = err.emit();
erase_val(ty::EarlyBinder::bind(Ty::new_error(tcx, guar)))
};
vtables.erase_and_anonymize_regions_ty.value_from_cycle_error = |tcx, _, _, err| {
let guar = err.emit();
erase_val(Ty::new_error(tcx, guar))