Add more commments
This commit is contained in:
parent
91846fe12a
commit
9c076f3f90
1 changed files with 2 additions and 0 deletions
|
@ -353,6 +353,7 @@ fn negative_impl<'cx, 'tcx>(
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Try to prove that a negative impl exist for the given obligation and their super predicates.
|
||||||
#[instrument(level = "debug", skip(selcx))]
|
#[instrument(level = "debug", skip(selcx))]
|
||||||
fn negative_impl_exists<'cx, 'tcx>(
|
fn negative_impl_exists<'cx, 'tcx>(
|
||||||
selcx: &SelectionContext<'cx, 'tcx>,
|
selcx: &SelectionContext<'cx, 'tcx>,
|
||||||
|
@ -366,6 +367,7 @@ fn negative_impl_exists<'cx, 'tcx>(
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Try to prove a negative obligation exist for super predicates
|
||||||
// FIXME we should implement an `assemble_neg_candidates` fn
|
// FIXME we should implement an `assemble_neg_candidates` fn
|
||||||
for o in util::elaborate_predicates(infcx.tcx, iter::once(o.predicate)) {
|
for o in util::elaborate_predicates(infcx.tcx, iter::once(o.predicate)) {
|
||||||
if resolve_negative_obligation(infcx, param_env, region_context, &o) {
|
if resolve_negative_obligation(infcx, param_env, region_context, &o) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue