-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Implement &P
patterns for borrowed ptrs
#2855
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
Labels
A-grammar
Area: The grammar of Rust
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
Milestone
Comments
Part of #3271. Isn't this already done, or is there some borrowck integration left? |
oops didn't mean to close it. |
This is basically done, except that there is no pattern for borrowed ptrs. |
I'll take this over. |
Yes, we need to implement |
celinval
pushed a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
`--visualize` option does not work, it needs to include `--enable-unstable` as well. By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 and MIT licenses.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-grammar
Area: The grammar of Rust
A-lifetimes
Area: Lifetimes / regions
A-type-system
Area: Type system
See conclusion of the saga of unsafe pointers trying on caret:
#2826 (comment)
Essentially we decided to leave
&
as borrowed-ptr, and*
as unsafe, and just add a keyword for capture-by-reference since we expect it'll be a rare-ish occurrence in the pattern language.(or * rather than ref. neither is in the pattern grammar at present. pick one.)
The text was updated successfully, but these errors were encountered: