Use param's real type in try_eval_lit_or_param
This commit is contained in:
parent
39f2657d11
commit
9574f39c2d
10 changed files with 59 additions and 27 deletions
|
@ -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"
|
||||
)
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue