Document check_region_obligations_and_report_errors, simplify a call to resolve_regions
This commit is contained in:
parent
1694ea1873
commit
16f49800db
3 changed files with 11 additions and 7 deletions
|
@ -398,13 +398,7 @@ fn resolve_negative_obligation<'cx, 'tcx>(
|
|||
let outlives_env = OutlivesEnvironment::new(param_env);
|
||||
infcx.process_registered_region_obligations(outlives_env.region_bound_pairs(), param_env);
|
||||
|
||||
let errors = infcx.resolve_regions(&outlives_env);
|
||||
|
||||
if !errors.is_empty() {
|
||||
return false;
|
||||
}
|
||||
|
||||
true
|
||||
infcx.resolve_regions(&outlives_env).is_empty()
|
||||
}
|
||||
|
||||
pub fn trait_ref_is_knowable<'tcx>(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue