-
Notifications
You must be signed in to change notification settings - Fork 13.4k
A few iterator-related improvements #55067
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -626,7 +626,7 @@ https://doc.rust-lang.org/reference/types.html#trait-objects"); | |
|
||
// Typecheck the patterns first, so that we get types for all the | ||
// bindings. | ||
let all_arm_pats_diverge: Vec<_> = arms.iter().map(|arm| { | ||
let all_arm_pats_diverge = arms.iter().map(|arm| { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think this change injected #55810, because it delayed our type-checking of the patterns. (Note the comment right above this line.) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Needs a stronger comment, heh. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I'll be fixing that. |
||
let mut all_pats_diverge = Diverges::WarnedAlways; | ||
for p in &arm.pats { | ||
self.diverges.set(Diverges::Maybe); | ||
|
@@ -642,7 +642,7 @@ https://doc.rust-lang.org/reference/types.html#trait-objects"); | |
Diverges::Maybe => Diverges::Maybe, | ||
Diverges::Always | Diverges::WarnedAlways => Diverges::WarnedAlways, | ||
} | ||
}).collect(); | ||
}); | ||
|
||
// Now typecheck the blocks. | ||
// | ||
|
Uh oh!
There was an error while loading. Please reload this page.