-
Notifications
You must be signed in to change notification settings - Fork 13.6k
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
Description
This is a tracking issue for the RFC "Reserve try
for try { .. }
block expressions" (rust-lang/rfcs#2388).
This issue only tracks the keyword reservation in edition 2018,
and renaming do catch { .. }
to try { .. }
.
For the main issue, see #31436.
Steps:
- Implement the RFC (cc @rust-lang/compiler -- can anyone write up mentoring instructions?
cc @Manishearth, @scottmcm ) - Adjust documentation (see instructions on forge)
- Stabilization PR (see instructions on forge)
- note: stabilization of
try { .. }
is tracked via Tracking issue for?
operator andtry
blocks (RFC 243,question_mark
&try_blocks
features) #31436.
- note: stabilization of
- Lint for usage of
try
as an identifier -
Ensure thattry { .. } $ident { .. }
does not parse
(so that we have options fortry { .. } catch { .. }
).
Unresolved questions:
- Should
try!(expr)
still work in edition 2018+? If so, how exactly should it?
Resolution: it should not.
scottmcm, lcnr, JesseWright, Restioson, matthew-mcallister and 2 moreest31, warlord500, Thomasdezeeuw and fschutt
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