Support heterogeneous try blocks (try_blocks_heterogeneous) RFC#3953
Open
MusicalNinjaDad wants to merge 24 commits intorust-lang:masterfrom
Open
Support heterogeneous try blocks (try_blocks_heterogeneous) RFC#3953MusicalNinjaDad wants to merge 24 commits intorust-lang:masterfrom
try_blocks_heterogeneous) RFC#3953MusicalNinjaDad wants to merge 24 commits intorust-lang:masterfrom
Conversation
kennytm
reviewed
Apr 21, 2026
kennytm
reviewed
Apr 21, 2026
thanks @kennytm Co-authored-by: kennytm <kennytm@gmail.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC 3721 implemented default support for homogeneous
try {...}blocks, where all?s return the same error type. This RFC aims to provide support for explicit annotation of the returned error type from atry {...}block.Note
This RFC provides post-hoc documentation of the current status-quo to act as an anchor point for moving forwards and a consolidation point for historical comments across multiple tickets. The changes described are already implemented in nightly as described.
This is created at the request of the implementor (@scottmcm) based on a brief zulip chat and written in a way to mimic those RFCs that I, as a nightly user, find valuable.
Important
Since RFCs involve many conversations at once that can be difficult to follow, please use review comment threads on the text changes instead of direct comments on the RFC.
If you don't have a particular section of the RFC to comment on, you can click on the "Comment on this file" button on the top-right corner of the diff, to the right of the "Viewed" checkbox. This will create a separate thread even if others have commented on the file too.
r? @scottmcm
Rendered