Fix transmute goal
This commit is contained in:
@@ -627,11 +627,16 @@ where
|
||||
}
|
||||
|
||||
ecx.probe_builtin_trait_candidate(BuiltinImplSource::Misc).enter(|ecx| {
|
||||
let assume = ecx.structurally_normalize_const(
|
||||
goal.param_env,
|
||||
goal.predicate.trait_ref.args.const_at(2),
|
||||
)?;
|
||||
|
||||
let certainty = ecx.is_transmutable(
|
||||
goal.param_env,
|
||||
goal.predicate.trait_ref.args.type_at(0),
|
||||
goal.predicate.trait_ref.args.type_at(1),
|
||||
goal.predicate.trait_ref.args.const_at(2),
|
||||
assume,
|
||||
)?;
|
||||
ecx.evaluate_added_goals_and_make_canonical_response(certainty)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user