1
Fork 0

Implement const Destruct in old solver

This commit is contained in:
Michael Goulet 2024-12-29 04:42:21 +00:00
parent 6afee111c2
commit c64f859521
15 changed files with 222 additions and 133 deletions

View file

@ -712,6 +712,8 @@ pub(in crate::solve) fn extract_fn_def_from_const_callable<I: Interner>(
}
}
// NOTE: Keep this in sync with `evaluate_host_effect_for_destruct_goal` in
// the old solver, for as long as that exists.
pub(in crate::solve) fn const_conditions_for_destruct<I: Interner>(
cx: I,
self_ty: I::Ty,