Rollup merge of #110299 - kylematsuda:earlybinder-impl-subject, r=compiler-errors
Switch to `EarlyBinder` for `impl_subject` query Part of the work to finish https://github.com/rust-lang/rust/issues/105779. Several queries `X` have a `bound_X` variant that wraps the output in `EarlyBinder`. This adds `EarlyBinder` to the return type of the `impl_subject` query and removes `bound_impl_subject`. r? ```@lcnr```
This commit is contained in:
commit
610bc68675
4 changed files with 8 additions and 12 deletions
|
@ -306,7 +306,7 @@ fn negative_impl(tcx: TyCtxt<'_>, impl1_def_id: DefId, impl2_def_id: DefId) -> b
|
|||
&infcx,
|
||||
ObligationCause::dummy(),
|
||||
impl_env,
|
||||
tcx.impl_subject(impl1_def_id),
|
||||
tcx.impl_subject(impl1_def_id).subst_identity(),
|
||||
) {
|
||||
Ok(s) => s,
|
||||
Err(err) => {
|
||||
|
|
|
@ -198,7 +198,7 @@ pub fn impl_subject_and_oblig<'a, 'tcx>(
|
|||
impl_def_id: DefId,
|
||||
impl_substs: SubstsRef<'tcx>,
|
||||
) -> (ImplSubject<'tcx>, impl Iterator<Item = PredicateObligation<'tcx>>) {
|
||||
let subject = selcx.tcx().bound_impl_subject(impl_def_id);
|
||||
let subject = selcx.tcx().impl_subject(impl_def_id);
|
||||
let subject = subject.subst(selcx.tcx(), impl_substs);
|
||||
|
||||
let InferOk { value: subject, obligations: normalization_obligations1 } =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue