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:
Unresolved questions:
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.