about summary refs log tree commit diff
path: root/src/libcore/macros.rs
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/libcore/macros.rs
parent2d1a551e144335e0d60a637d12f410cf65849876 (diff)
downloadrust-fd7ac6b17ef98f63438f59edca40562c400d4128.tar.gz
rust-fd7ac6b17ef98f63438f59edca40562c400d4128.zip
Deprecate `try!` macro
Co-Authored-By: Mazdak Farrokhzad <twingoow@gmail.com>
Co-Authored-By: Oliver Middleton <olliemail27@gmail.com>
Diffstat (limited to 'src/libcore/macros.rs')
-rw-r--r--src/libcore/macros.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/macros.rs b/src/libcore/macros.rs
index 09d2331b60f..ba641f7dc5c 100644
--- a/src/libcore/macros.rs
+++ b/src/libcore/macros.rs
@@ -300,6 +300,7 @@ macro_rules! debug_assert_ne {
 ///     Ok(())
 /// }
 /// ```
+#[rustc_deprecated(since = "1.38.0", reason = "use the `?` operator instead")]
 #[macro_export]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[doc(alias = "?")]