about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorBO41 <botbob@disroot.org>2019-06-23 12:19:46 +0000
committerLzu Tao <taolzu@gmail.com>2019-08-09 02:29:44 +0000
commitfd7ac6b17ef98f63438f59edca40562c400d4128 (patch)
treecff821a785fc23a0c8e29df08793eb2215dc9bbb /src/libstd
parent2d1a551e144335e0d60a637d12f410cf65849876 (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.rs5
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]