Skip to content

Add the '@' subpattern binding to the documentation #11764

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 2 commits into from
Jan 25, 2014

Conversation

Armavica
Copy link
Contributor

I also removed the obsolete '*' wildcard from the manual.

bors added a commit that referenced this pull request Jan 25, 2014
I also removed the obsolete '*' wildcard from the manual.
@bors bors closed this Jan 25, 2014
@bors bors merged commit 7b1d124 into rust-lang:master Jan 25, 2014
@Armavica Armavica deleted the doc_patmatch branch January 25, 2014 16:32
flip1995 pushed a commit to flip1995/rust that referenced this pull request Nov 16, 2023
[`map_identity`]: respect match ergonomics

Fixes rust-lang#11764

Note: the original tests before this were slightly wrong themselves already and had to be changed. They were calling `map` on an iterator of `&(i32, i32)`s, so this PR would stop linting there, but they were meant to test something else unrelated to binding modes, so I just changed them to remove the references so that it iterates over owned values and they all bind by value. This way they continue to test what they checked for before: the identity function for tuple patterns.

changelog: [`map_identity`]: respect match ergonomics
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