-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
Tracking issue for RFC 2388, reserve the try keyword and resolve do catch { .. } syntax question with try { .. } #50412
Copy link
Copy link
Closed
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCP-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamWG-epochWorking group: Epoch (2018) managementWorking group: Epoch (2018) management
Milestone
Metadata
Metadata
Assignees
Labels
A-lintsArea: Lints (warnings about flaws in source code) such as unused_mut.Area: Lints (warnings about flaws in source code) such as unused_mut.B-RFC-approvedBlocker: Approved by a merged RFC but not yet implemented.Blocker: Approved by a merged RFC but not yet implemented.C-tracking-issueCategory: An issue tracking the progress of sth. like the implementation of an RFCCategory: An issue tracking the progress of sth. like the implementation of an RFCP-highHigh priorityHigh priorityT-compilerRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the compiler team, which will review and decide on the PR/issue.T-langRelevant to the language teamRelevant to the language teamWG-epochWorking group: Epoch (2018) managementWorking group: Epoch (2018) management
Type
Fields
Give feedbackNo fields configured for issues without a type.
This is a tracking issue for the RFC "Reserve
tryfortry { .. }block expressions" (rust-lang/rfcs#2388).This issue only tracks the keyword reservation in edition 2018,
and renaming
do catch { .. }totry { .. }.For the main issue, see #31436.
Steps:
cc @Manishearth, @scottmcm )
try { .. }is tracked via Tracking issue for?operator (RFC 243,question_mark) #31436.tryas an identifierEnsure thattry { .. } $ident { .. }does not parse(so that we have options for
try { .. } catch { .. }).?operator (RFC 243,question_mark) #31436 insteadUnresolved questions:
try!(expr)still work in edition 2018+? If so, how exactly should it?Resolution: it should not.