diff options
| author | BO41 <botbob@disroot.org> | 2019-06-23 12:19:46 +0000 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2019-08-09 02:29:44 +0000 |
| commit | fd7ac6b17ef98f63438f59edca40562c400d4128 (patch) | |
| tree | cff821a785fc23a0c8e29df08793eb2215dc9bbb /src/libstd | |
| parent | 2d1a551e144335e0d60a637d12f410cf65849876 (diff) | |
Deprecate `try!` macro
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com> Co-Authored-By: Oliver Middleton <olliemail27@gmail.com>
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/lib.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/libstd/lib.rs b/src/libstd/lib.rs index cfee49a7b55..34956fc8394 100644 --- a/src/libstd/lib.rs +++ b/src/libstd/lib.rs @@ -330,7 +330,10 @@ use prelude::v1::*; #[stable(feature = "rust1", since = "1.0.0")] pub use core::{assert_eq, assert_ne, debug_assert, debug_assert_eq, debug_assert_ne}; #[stable(feature = "rust1", since = "1.0.0")] -pub use core::{unreachable, unimplemented, write, writeln, r#try, todo}; +pub use core::{unreachable, unimplemented, write, writeln, todo}; +#[allow(deprecated)] +#[stable(feature = "rust1", since = "1.0.0")] +pub use core::r#try; #[allow(unused_imports)] // macros from `alloc` are not used on all platforms #[macro_use] |
