Closed
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.
Metadata
Metadata
Assignees
Labels
Area: Lints (warnings about flaws in source code) such as unused_mut.Blocker: Approved by a merged RFC but not yet implemented.Category: An issue tracking the progress of sth. like the implementation of an RFCHigh priorityRelevant to the compiler team, which will review and decide on the PR/issue.Relevant to the language team, which will review and decide on the PR/issue.Working group: Epoch (2018) management