1
Fork 0

Winnow specializing impls

This commit is contained in:
Michael Goulet 2023-07-04 18:06:41 +00:00
parent 9227ff28af
commit d2a1803d6f
3 changed files with 37 additions and 4 deletions

View file

@ -410,8 +410,8 @@ impl<'tcx> Instance<'tcx> {
) -> Instance<'tcx> {
match ty::Instance::resolve(tcx, param_env, def_id, substs) {
Ok(Some(instance)) => instance,
_ => bug!(
"failed to resolve instance for {}",
instance => bug!(
"failed to resolve instance for {}: {instance:#?}",
tcx.def_path_str_with_substs(def_id, substs)
),
}