Skip to content

Commit

Permalink
Do not use unneeded extra errors variable
Browse files Browse the repository at this point in the history
  • Loading branch information
spastorino committed Aug 23, 2022
1 parent ac0b6af commit 4cb492e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions compiler/rustc_trait_selection/src/traits/coherence.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4cb492e

Please sign in to comment.