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

internal: Parse unstable associated return type bounds #14746

Merged
merged 2 commits into from
May 15, 2023

Conversation

lowr
Copy link
Contributor

@lowr lowr commented May 6, 2023

This PR implements parser support for associated return type bounds: T: Foo<bar(): Send>. This PR does not implement associated return types (T::bar(): Send) because it's not implemented even in rustc, and also removes (..)-style return type notation because it has been removed in rust-lang/rust#110203 (effectively reverting #14465).

I don't plan to proactively follow this unstable feature unless an RFC is accepted and my main motivation here is to remove no-longer-valid syntax (..) from our parser, nevertheless adding minimal parser support so anyone interested (as can be seen in #14465) can experiment it without rust-analyzer's syntax errors.

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label May 6, 2023
@Veykril
Copy link
Member

Veykril commented May 15, 2023

@bors r+

@bors
Copy link
Contributor

bors commented May 15, 2023

📌 Commit fa2340a has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented May 15, 2023

⌛ Testing commit fa2340a with merge bc03418...

@bors
Copy link
Contributor

bors commented May 15, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing bc03418 to master...

1 similar comment
@bors
Copy link
Contributor

bors commented May 15, 2023

☀️ Test successful - checks-actions
Approved by: Veykril
Pushing bc03418 to master...

@bors
Copy link
Contributor

bors commented May 15, 2023

👀 Test was successful, but fast-forwarding failed: 422 Changes must be made through a pull request.

@bors bors merged commit bc03418 into rust-lang:master May 15, 2023
@lnicola lnicola changed the title Parse associated return type bounds internal: Parse unstable associated return type bounds May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants