Skip to content

Commit 4cb492e

Browse files
committed
Do not use unneeded extra errors variable
1 parent ac0b6af commit 4cb492e

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compiler/rustc_trait_selection/src/traits/coherence.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,7 @@ fn resolve_negative_obligation<'cx, 'tcx>(
391391
};
392392

393393
let param_env = o.param_env;
394-
let errors = super::fully_solve_obligation(&infcx, o);
395-
if !errors.is_empty() {
394+
if !super::fully_solve_obligation(&infcx, o).is_empty() {
396395
return false;
397396
}
398397

0 commit comments

Comments
 (0)