From b3ade68f270969d5f3fc2c332ad8adef675110cc Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Fri, 18 Mar 2016 09:13:55 -0700 Subject: [PATCH] Add a since to deprecations --- src/libstd/panic.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/panic.rs b/src/libstd/panic.rs index c29a57b096c4..ced778571882 100644 --- a/src/libstd/panic.rs +++ b/src/libstd/panic.rs @@ -216,14 +216,14 @@ impl RefRecoverSafe for AssertRecoverSafe {} impl AssertRecoverSafe { /// Creates a new `AssertRecoverSafe` wrapper around the provided type. #[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")] - #[rustc_deprecated(reason = "the type's field is now public, construct it directly")] + #[rustc_deprecated(reason = "the type's field is now public, construct it directly", since = "1.9.0")] pub fn new(t: T) -> AssertRecoverSafe { AssertRecoverSafe(t) } /// Consumes the `AssertRecoverSafe`, returning the wrapped value. #[unstable(feature = "recover", reason = "awaiting feedback", issue = "27719")] - #[rustc_deprecated(reason = "the type's field is now public, access it directly")] + #[rustc_deprecated(reason = "the type's field is now public, access it directly", since = "1.9.0)] pub fn into_inner(self) -> T { self.0 }