-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove bound var hack in resolve
#101578
remove bound var hack in resolve
#101578
Conversation
@@ -35,8 +35,12 @@ pub fn codegen_fulfill_obligation<'tcx>( | |||
let mut selcx = SelectionContext::new(&infcx); | |||
|
|||
let obligation_cause = ObligationCause::dummy(); | |||
let obligation = | |||
Obligation::new(obligation_cause, param_env, trait_ref.to_poly_trait_predicate()); | |||
let predicate = ty::Binder::dummy(ty::TraitPredicate { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should still be passing in a PolyTraitRef. Rather than using Binder::dummy here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, not sure if we will ever end up calling codegen_select_candidate
with something higherranked, but changed it back ^^ it doesn't hurt
@bors r+ |
Rollup of 6 pull requests Successful merges: - rust-lang#101578 (remove bound var hack in `resolve`) - rust-lang#101606 (doc: fix minor typo) - rust-lang#101614 (Equate fn outputs when inferring RPITIT hidden types) - rust-lang#101631 (rustdoc: avoid cleaning modules with duplicate names) - rust-lang#101635 (Move `Queries::new` out of the macro) - rust-lang#101641 (Update browser-ui-test version to 0.9.8) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
somehow dropped that change from #98900.
r? @jackh726