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

feat: Add diagnostic with fix to replace trailing return <val>; with <val> #16460

Merged
merged 5 commits into from
Feb 8, 2024

Conversation

davidsemakula
Copy link
Contributor

Works for functions and closures.
Ignores desugared return expressions (e.g. from desugared try operators).

Fixes: #10970
Completes: #11020

@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 31, 2024
@davidsemakula davidsemakula changed the title feat: Add diagnostic with fix to replace trailing return <val>; with just <val> feat: Add diagnostic with fix to replace trailing return <val>; with<val> Jan 31, 2024
@davidsemakula davidsemakula changed the title feat: Add diagnostic with fix to replace trailing return <val>; with<val> feat: Add diagnostic with fix to replace trailing return <val>; with <val> Jan 31, 2024
@Veykril
Copy link
Member

Veykril commented Feb 8, 2024

Thanks, needs a rebase!
@bors delegate+

@bors
Copy link
Contributor

bors commented Feb 8, 2024

✌️ @davidsemakula, you can now approve this pull request!

If @Veykril told you to "r=me" after making some further change, please make that change, then do @bors r=@Veykril

@davidsemakula
Copy link
Contributor Author

@bors r=@Veykril

@bors
Copy link
Contributor

bors commented Feb 8, 2024

📌 Commit 602acfc has been approved by Veykril

It is now in the queue for this repository.

@bors
Copy link
Contributor

bors commented Feb 8, 2024

⌛ Testing commit 602acfc with merge e418c90...

@bors
Copy link
Contributor

bors commented Feb 8, 2024

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

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.

Feature Request: Diagnostic to replace trailing return <val>; with just <val>
4 participants