Skip to content

Commit

Permalink
Rollup merge of rust-lang#112060 - lcnr:early-binder, r=jackh726
Browse files Browse the repository at this point in the history
`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`
  • Loading branch information
Noratrieb authored May 30, 2023
2 parents a2a8589 + b488625 commit 04dca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
)
}

Expand Down

0 comments on commit 04dca8f

Please sign in to comment.