-
Notifications
You must be signed in to change notification settings - Fork 504
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
Document desugarings that happen when creating hir #414
Conversation
src/expressions/loop-expr.md
Outdated
|
||
```rust | ||
{ | ||
let result = match IntoIterator::into_iter(iter_expr) { |
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.
IIRC there should be some note here about how into_iter
is looked up? It's not a lang item.
src/expressions/loop-expr.md
Outdated
{ | ||
let result = match IntoIterator::into_iter(iter_expr) { | ||
mut iter => 'label: loop { | ||
let next; |
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.
Could we simplify this by let PAT = match ...
?
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 can't work out how let mut next = ...
would be different, but let PAT = match
would have a different drop order when PAT
is something like (x, _)
.
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.
This is why it can't be simplified.
5eab25f
to
1d19008
Compare
Comments addressed |
1d19008
to
d659d0e
Compare
Closes #46
Closes #47