TODO => FIXME

This commit is contained in:
Deadbeef 2021-12-01 23:32:36 +08:00
parent 6b07cec05c
commit b64c40bc6f
No known key found for this signature in database
GPG Key ID: 6D017A96D8E6C2F9

View File

@ -300,7 +300,7 @@ fn compute_trait_ref(&mut self, trait_ref: &ty::TraitRef<'tcx>, elaborate: Elabo
let mut cause = cause.clone();
if let Some(parent_trait_ref) = obligation.predicate.to_opt_poly_trait_pred() {
let derived_cause = traits::DerivedObligationCause {
// TODO: sus
// FIXME(fee1-dead): when improving error messages, change this to PolyTraitPredicate
parent_trait_ref: parent_trait_ref.map_bound(|t| t.trait_ref),
parent_code: Lrc::new(obligation.cause.code.clone()),
};