about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNilstrieb <48135649+Nilstrieb@users.noreply.github.com>2023-05-30 12:57:40 +0200
committerGitHub <noreply@github.com>2023-05-30 12:57:40 +0200
commit04dca8f1b2a93177af5a7210b5ec223a63a163f2 (patch)
tree721fce7ea35da3bf6c27ab534d2cc73bdb515692
parenta2a8589a8a0db3ef91d0bcf2b2756c5a94311f31 (diff)
parentb4886251788ec79b7293ee5da347c17c8b1b0c23 (diff)
downloadrust-04dca8f1b2a93177af5a7210b5ec223a63a163f2.tar.gz
rust-04dca8f1b2a93177af5a7210b5ec223a63a163f2.zip
Rollup merge of #112060 - lcnr:early-binder, r=jackh726
`EarlyBinder::new` -> `EarlyBinder::bind`

for consistency with `Binder::bind`. it may make sense to also add `EarlyBinder::dummy` in places where we know that no parameters exist, but I left that out of this PR.

r? `@jackh726` `@kylematsuda`
-rw-r--r--src/common.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common.rs b/src/common.rs
index 70cb6dfd66f..67fd6d793e0 100644
--- a/src/common.rs
+++ b/src/common.rs
@@ -361,7 +361,7 @@ impl<'tcx> FunctionCx<'_, '_, 'tcx> {
         self.instance.subst_mir_and_normalize_erasing_regions(
             self.tcx,
             ty::ParamEnv::reveal_all(),
-            ty::EarlyBinder::new(value),
+            ty::EarlyBinder::bind(value),
         )
     }