Skip to content

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
@davidsemakula davidsemakula force-pushed the trailing-return-diagnostic branch from 7cc6b86 to 8c63a32 Compare January 31, 2024 12:11
@davidsemakula davidsemakula requested a review from Veykril January 31, 2024 12:31
@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 davidsemakula force-pushed the trailing-return-diagnostic branch from 8c63a32 to 602acfc Compare February 8, 2024 16:37
@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