1
Fork 0

Document check_region_obligations_and_report_errors, simplify a call to resolve_regions

This commit is contained in:
Michael Goulet 2022-07-29 06:17:17 +00:00
parent 1694ea1873
commit 16f49800db
3 changed files with 11 additions and 7 deletions

View file

@ -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>(