From aebf331431eeac6e91eba5072e2ee7f171cd1244 Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 28 May 2015 10:34:40 -0700 Subject: Mention UFCS sadness in instability messages --- src/libstd/io/error.rs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/libstd') diff --git a/src/libstd/io/error.rs b/src/libstd/io/error.rs index 449e49c08e5..85b957640fd 100644 --- a/src/libstd/io/error.rs +++ b/src/libstd/io/error.rs @@ -187,7 +187,8 @@ impl Error { /// /// If this `Error` was constructed via `new` then this function will /// return `Some`, otherwise it will return `None`. - #[unstable(feature = "io_error_inner", reason = "recently added")] + #[unstable(feature = "io_error_inner", + reason = "recently added and requires UFCS to downcast")] pub fn get_ref(&self) -> Option<&(error::Error+Send+Sync+'static)> { match self.repr { Repr::Os(..) => None, @@ -200,7 +201,8 @@ impl Error { /// /// If this `Error` was constructed via `new` then this function will /// return `Some`, otherwise it will return `None`. - #[unstable(feature = "io_error_inner", reason = "recently added")] + #[unstable(feature = "io_error_inner", + reason = "recently added and requires UFCS to downcast")] pub fn get_mut(&mut self) -> Option<&mut (error::Error+Send+Sync+'static)> { match self.repr { Repr::Os(..) => None, @@ -212,7 +214,8 @@ impl Error { /// /// If this `Error` was constructed via `new` then this function will /// return `Some`, otherwise it will return `None`. - #[unstable(feature = "io_error_inner", reason = "recently added")] + #[unstable(feature = "io_error_inner", + reason = "recently added and requires UFCS to downcast")] pub fn into_inner(self) -> Option> { match self.repr { Repr::Os(..) => None, -- cgit 1.4.1-3-g733a5