-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Closed
Labels
T-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-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.
Description
I propose to mark the try! macro as deprecated.
Reasons for it:
?was stabilized in 1.13, November 2016. 2+years ago- there is an interest in having a lint for replacing
try!with?for 2+years tryis a keyword in rust 2018 and needs to be written asr#try!- ""The Rust Programming Language", 2nd edition (book) and "Rust by Example" have both already removed all mentions of
try!." - the doc of
try!literally names the definition of deprecation
The
?operator was added to replacetry!and should be used instead.
There are no real downsides 😃
(I am happy to wait for #37939 ;)
Kvikal, Aaron1011, sanmai-NL, scottmcm, RustyYato and 3 moreThiez
Metadata
Metadata
Assignees
Labels
T-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-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.Relevant to the library API team, which will review and decide on the PR/issue.