Use param's real type in try_eval_lit_or_param

This commit is contained in:
Michael Goulet 2023-03-09 20:49:05 +00:00
parent 39f2657d11
commit 9574f39c2d
10 changed files with 59 additions and 27 deletions

View file

@ -99,10 +99,10 @@ pub fn translate_substs<'tcx>(
}
fulfill_implication(infcx, param_env, source_trait_ref, target_impl).unwrap_or_else(
|_| {
|()| {
bug!(
"When translating substitutions for specialization, the expected \
specialization failed to hold"
"When translating substitutions from {source_impl:?} to {target_impl:?}, \
the expected specialization failed to hold"
)
},
)