]> git.lizzy.rs Git - rust.git/commitdiff
Add a since to deprecations
authorSteven Fackler <sfackler@gmail.com>
Fri, 18 Mar 2016 16:13:55 +0000 (09:13 -0700)
committerSteven Fackler <sfackler@gmail.com>
Fri, 18 Mar 2016 16:13:55 +0000 (09:13 -0700)
src/libstd/panic.rs

index c29a57b096c47b57e3cd7930b95ef283755d632a..ced778571882bb0986ebbec371d15cbb5e75c2c8 100644 (file)
@@ -216,14 +216,14 @@ impl<T> RefRecoverSafe for AssertRecoverSafe<T> {}
 impl<T> AssertRecoverSafe<T> {
     /// 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<T> {
         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
     }