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

Support raw_ref_op's raw reference operator #4648

Merged
merged 1 commit into from
May 29, 2020

Conversation

robojumper
Copy link
Contributor

Fixes #4642.

This syntax (and its semantics) are implemented in rustc behind the raw_ref_op feature.

It is not entirely clear whether this is the syntax that will become stable, but it seems like rust-analyzer must still support this unstable syntax to support future stable rust.

Also fixes a random inference failure involving a direct coercion from &[T, _] to *const [T].

@flodiebold
Copy link
Member

LGTM, @matklad might want to take a short look at the parser code though.

@flodiebold flodiebold requested a review from matklad May 29, 2020 14:10
@matklad
Copy link
Member

matklad commented May 29, 2020

bors r+

@bors
Copy link
Contributor

bors bot commented May 29, 2020

@bors bors bot merged commit 30658b2 into rust-lang:master May 29, 2020
@robojumper robojumper deleted the 4642-raw-ref-operator branch May 31, 2020 23:00
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.

&raw and &raw mut not recognised by parser
3 participants