mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 11:07:42 +00:00
review comments
This commit is contained in:
parent
55d50a974a
commit
e30e47fa68
@ -228,14 +228,8 @@ fn compare_predicate_entailment<'tcx>(
|
|||||||
traits::normalize(&mut selcx, param_env, normalize_cause, predicate);
|
traits::normalize(&mut selcx, param_env, normalize_cause, predicate);
|
||||||
|
|
||||||
inh.register_predicates(obligations);
|
inh.register_predicates(obligations);
|
||||||
let cause = ObligationCause::new(
|
let mut cause = cause.clone();
|
||||||
span,
|
cause.make_mut().span = span;
|
||||||
impl_m_hir_id,
|
|
||||||
ObligationCauseCode::CompareImplMethodObligation {
|
|
||||||
impl_item_def_id: impl_m.def_id,
|
|
||||||
trait_item_def_id: trait_m.def_id,
|
|
||||||
},
|
|
||||||
);
|
|
||||||
inh.register_predicate(traits::Obligation::new(cause, param_env, predicate));
|
inh.register_predicate(traits::Obligation::new(cause, param_env, predicate));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user