-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Provide structured suggestion for binding needing type on E0594 #107646
Conversation
(rustbot has picked a reviewer for you, use r? to override) |
} | ||
let hir_map = self.infcx.tcx.hir(); | ||
let pat = loop { | ||
// Poor man's try block |
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.
Can we just use a try block here? This is the compiler after all. Or a closure (|| {})()
is typically what I see being used instead.
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.
#![feature(try_blocks)]
is already enabled in rustc_borrowck
too 😃
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.
Ended up doing let chains instead :)
r=me after the nits tho |
thanks @bors r+ rollup |
⌛ Testing commit e6c56cd with merge 54d8cbff5aaf4aec267f2f9b2c8c1096f15c351e... |
💔 Test failed - checks-actions |
@bors retry |
…iaskrgr Rollup of 3 pull requests Successful merges: - rust-lang#107116 (consolidate bootstrap docs) - rust-lang#107646 (Provide structured suggestion for binding needing type on E0594) - rust-lang#107661 (Remove Esteban from review queues for a while) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
The job Click to see the possible cause of the failure (guessed by this bot)
|
Partially address #45405.