diff options
| author | Michael Goulet <michael@errs.io> | 2024-05-15 12:52:12 -0400 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-05-16 14:24:23 -0400 |
| commit | 7b3d6dad20e186a8e84d4ed5968149430580c6fe (patch) | |
| tree | be6e3d4e3acae4c2731b83c8b67854dac1a8254f /compiler/rustc_trait_selection/src/infer.rs | |
| parent | 6d817365e5125c17a8916cad356edc979e857eb7 (diff) | |
| download | rust-7b3d6dad20e186a8e84d4ed5968149430580c6fe.tar.gz rust-7b3d6dad20e186a8e84d4ed5968149430580c6fe.zip | |
Remove trivial Binder::dummy calls
Diffstat (limited to 'compiler/rustc_trait_selection/src/infer.rs')
| -rw-r--r-- | compiler/rustc_trait_selection/src/infer.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/infer.rs b/compiler/rustc_trait_selection/src/infer.rs index 6797be5cdd0..fc852293dff 100644 --- a/compiler/rustc_trait_selection/src/infer.rs +++ b/compiler/rustc_trait_selection/src/infer.rs @@ -63,7 +63,7 @@ impl<'tcx> InferCtxt<'tcx> { cause: traits::ObligationCause::dummy(), param_env, recursion_depth: 0, - predicate: ty::Binder::dummy(trait_ref).upcast(self.tcx), + predicate: trait_ref.upcast(self.tcx), }; self.evaluate_obligation(&obligation).unwrap_or(traits::EvaluationResult::EvaluatedToErr) } |
