diff options
| author | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-26 11:19:35 -0600 |
|---|---|---|
| committer | Kyle Matsuda <kyle.yoshio.matsuda@gmail.com> | 2023-05-28 10:44:50 -0600 |
| commit | 03534ac8b70de1134ce7e91b172cd629048a6c8b (patch) | |
| tree | 3ad32332510ba0986bf9cdb52ac1901ec13813b7 /compiler/rustc_middle/src/ty/mod.rs | |
| parent | 39c03fb65268e3331f381714c664a581a6e86b8c (diff) | |
| download | rust-03534ac8b70de1134ce7e91b172cd629048a6c8b.tar.gz rust-03534ac8b70de1134ce7e91b172cd629048a6c8b.zip | |
Replace EarlyBinder(x) with EarlyBinder::new(x)
Diffstat (limited to 'compiler/rustc_middle/src/ty/mod.rs')
| -rw-r--r-- | compiler/rustc_middle/src/ty/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_middle/src/ty/mod.rs b/compiler/rustc_middle/src/ty/mod.rs index 96023a68cf6..4b2c7e8ef31 100644 --- a/compiler/rustc_middle/src/ty/mod.rs +++ b/compiler/rustc_middle/src/ty/mod.rs @@ -764,7 +764,7 @@ impl<'tcx> Predicate<'tcx> { let shifted_pred = tcx.shift_bound_var_indices(trait_bound_vars.len(), bound_pred.skip_binder()); // 2) Self: Bar1<'a, '^0.1> -> T: Bar1<'^0.0, '^0.1> - let new = EarlyBinder(shifted_pred).subst(tcx, trait_ref.skip_binder().substs); + let new = EarlyBinder::new(shifted_pred).subst(tcx, trait_ref.skip_binder().substs); // 3) ['x] + ['b] -> ['x, 'b] let bound_vars = tcx.mk_bound_variable_kinds_from_iter(trait_bound_vars.iter().chain(pred_bound_vars)); |
