Skip to content

Commit

Permalink
Remove trivial Binder::dummy calls
Browse files Browse the repository at this point in the history
  • Loading branch information
compiler-errors committed May 16, 2024
1 parent 6b37146 commit 4f589e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clippy_utils/src/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ pub fn implements_trait_with_env_from_iter<'tcx>(
cause: ObligationCause::dummy(),
param_env,
recursion_depth: 0,
predicate: Binder::dummy(trait_ref).upcast(tcx),
predicate: trait_ref.upcast(tcx),
};
infcx
.evaluate_obligation(&obligation)
Expand Down

0 comments on commit 4f589e3

Please sign in to comment.