-
Notifications
You must be signed in to change notification settings - Fork 13.3k
A lot of refactoring to remove more Binder::bind
s
#80106
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
Conversation
r? @varkor (rust-highfive has picked a reviewer for you, use r? to override) |
Probably either @lcnr, @matthewjasper, or @nikomatsakis are most interested/best to review this. But there aren't really any specific semantic changes here, so anyone should feel free to review. |
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/error_reporting/suggestions.rs
Outdated
Show resolved
Hide resolved
compiler/rustc_trait_selection/src/traits/select/confirmation.rs
Outdated
Show resolved
Hide resolved
r? @lcnr |
5f4dec5
to
5472be2
Compare
Was able to get away with not adding |
9362618
to
c60e2d0
Compare
The job Click to see the possible cause of the failure (guessed by this bot)
|
c60e2d0
to
2ac76ad
Compare
@bors r+ rollup=never |
📌 Commit 2ac76ad3fd3ce2b8e2c5714f0b4c3a0ee3991f16 has been approved by |
⌛ Testing commit 2ac76ad3fd3ce2b8e2c5714f0b4c3a0ee3991f16 with merge 5552e6dba4a042e086ba03a9c99218994810e93a... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
2ac76ad
to
29ae27c
Compare
@@ -1648,8 +1648,8 @@ impl<'cx, 'tcx> SelectionContext<'cx, 'tcx> { | |||
/// Bar<i32> where struct Bar<T> { x: T, y: u32 } -> [i32, u32] | |||
/// Zed<i32> where enum Zed { A(T), B(u32) } -> [i32, u32] | |||
/// ``` | |||
fn constituent_types_for_ty(&self, t: Ty<'tcx>) -> Vec<Ty<'tcx>> { | |||
match *t.kind() { | |||
fn constituent_types_for_ty(&self, t: ty::Binder<Ty<'tcx>>) -> ty::Binder<Vec<Ty<'tcx>>> { |
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.
@lcnr so as I was a little worried about, t
can have bound vars. Not sure why the ty::Binder::dummy
wasn't catching this. But now we're more explicit about this.
It looks like this only happens during cargo doc though and it seems relevant enough to pull out into a separate test. Do you have the time to extract a test case here? I sadly won't be able to in the next few weeks |
I can try this weekend, but I'd like to do that in separate PR. |
29ae27c
to
7991616
Compare
7991616
to
5e70958
Compare
@bors r+ rollup=never |
📌 Commit 5e70958 has been approved by |
☀️ Test successful - checks-actions |
Split out from #76814