-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate try! macro in favor of ? #61000
Comments
I did some investigation on the playground and it seems that the reason |
Thanks for the response @Centril . I thought you could deprecate any struct/function/etc 😬 |
The issue is #49912, someone (not me) needs to do the work. |
So I assume clippy can't check this either, or am I wrong? Otherwise we could make a general clippy lint for |
It can work at any point if name resolution results are available. |
Support stability and deprecation checking for all macros RELNOTES: Deprecation attributes on macros now have effect. Fixes rust-lang#34079 Fixes rust-lang#49912 Unblocks rust-lang#62086 Unblocks rust-lang#61000
Support stability and deprecation checking for all macros RELNOTES: Deprecation attributes on macros now have effect. Fixes rust-lang#34079 Fixes rust-lang#49912 Unblocks rust-lang#62086 Unblocks rust-lang#61000
I take this in #62672 . |
Deprecate `try!` macro Replaces rust-lang#62077 Fixes rust-lang/rust-clippy#1361 Fixes rust-lang#61000
I propose to mark the
try!
macro as deprecated.Reasons for it:
?
was stabilized in 1.13, November 2016. 2+years agotry!
with?
for 2+yearstry
is a keyword in rust 2018 and needs to be written asr#try!
try!
."try!
literally names the definition of deprecationThere are no real downsides 😃
(I am happy to wait for #37939 ;)
The text was updated successfully, but these errors were encountered: