Skip to content
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

borrow/ref: Update "The ref pattern" for pattern-binding-modes RFC #1166

Closed
nickolay opened this issue Mar 10, 2019 · 2 comments
Closed

borrow/ref: Update "The ref pattern" for pattern-binding-modes RFC #1166

nickolay opened this issue Mar 10, 2019 · 2 comments

Comments

@nickolay
Copy link
Contributor

As far as I can see, all the use-cases listed in https://doc.rust-lang.org/rust-by-example/scope/borrow/ref.html can avoid using ref when the "match ergonomics" feature from rust-lang/rfcs#2005 is available.

It would be good to mention that and to clarify when/if the "ref pattern" is still useful (I couldn't find the answer to that quickly).

@dschrempf
Copy link

@marioidival
Copy link
Member

Hi, I'm closing this issue just to clean up the items that already exist. If you think this issue makes sense to stay open, please create a new issue with updated information and mention this one.

thanks!

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

No branches or pull requests

3 participants