Skip to content

Fix comment on ast::DefStruct #10866

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

Merged
merged 1 commit into from
Dec 9, 2013
Merged

Fix comment on ast::DefStruct #10866

merged 1 commit into from
Dec 9, 2013

Conversation

ktt3ja
Copy link
Contributor

@ktt3ja ktt3ja commented Dec 9, 2013

A comment that I previously added to ast::DefStruct is incorrect. Here's the modification.

bors added a commit that referenced this pull request Dec 9, 2013
A comment that I previously added to ast::DefStruct is incorrect. Here's the modification.
@bors bors closed this Dec 9, 2013
@bors bors merged commit 1f80ec4 into rust-lang:master Dec 9, 2013
@ktt3ja ktt3ja deleted the edit-doc branch December 9, 2013 06:02
flip1995 pushed a commit to flip1995/rust that referenced this pull request Jun 30, 2023
…shearth

manual_let_else: support struct patterns

This adds upon the improvements of rust-lang#10797 and:

* Only prints `()` around `Or` patterns at the top level (fixing a regression of rust-lang#10797)
* Supports multi-binding patterns: `let (u, v) = if let (Some(u_i), Ok(v_i)) = ex { (u_i, v_i) } else ...`
* Traverses through tuple patterns: `let v = if let (Some(v), None) = ex { v } else ...`
* Supports struct patterns: `let v = if let S { v, w, } = ex { (v, w) } else ...`

```
changelog: [`manual_let_else`]: improve pattern printing to support struct patterns
```

fixes rust-lang#10708
fixes rust-lang#10424
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants