Do not use unneeded extra errors variable

This commit is contained in:
Santiago Pastorino 2022-08-22 15:54:02 -03:00
parent ac0b6af37b
commit 4cb492e740
No known key found for this signature in database
GPG Key ID: 8131A24E0C79EFAF

View File

@ -391,8 +391,7 @@ fn resolve_negative_obligation<'cx, 'tcx>(
};
let param_env = o.param_env;
let errors = super::fully_solve_obligation(&infcx, o);
if !errors.is_empty() {
if !super::fully_solve_obligation(&infcx, o).is_empty() {
return false;
}