Skip to content

Commit aebf331

Browse files
committed
Mention UFCS sadness in instability messages
1 parent f65ba38 commit aebf331

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/libstd/io/error.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ impl Error {
187187
///
188188
/// If this `Error` was constructed via `new` then this function will
189189
/// return `Some`, otherwise it will return `None`.
190-
#[unstable(feature = "io_error_inner", reason = "recently added")]
190+
#[unstable(feature = "io_error_inner",
191+
reason = "recently added and requires UFCS to downcast")]
191192
pub fn get_ref(&self) -> Option<&(error::Error+Send+Sync+'static)> {
192193
match self.repr {
193194
Repr::Os(..) => None,
@@ -200,7 +201,8 @@ impl Error {
200201
///
201202
/// If this `Error` was constructed via `new` then this function will
202203
/// return `Some`, otherwise it will return `None`.
203-
#[unstable(feature = "io_error_inner", reason = "recently added")]
204+
#[unstable(feature = "io_error_inner",
205+
reason = "recently added and requires UFCS to downcast")]
204206
pub fn get_mut(&mut self) -> Option<&mut (error::Error+Send+Sync+'static)> {
205207
match self.repr {
206208
Repr::Os(..) => None,
@@ -212,7 +214,8 @@ impl Error {
212214
///
213215
/// If this `Error` was constructed via `new` then this function will
214216
/// return `Some`, otherwise it will return `None`.
215-
#[unstable(feature = "io_error_inner", reason = "recently added")]
217+
#[unstable(feature = "io_error_inner",
218+
reason = "recently added and requires UFCS to downcast")]
216219
pub fn into_inner(self) -> Option<Box<error::Error+Send+Sync>> {
217220
match self.repr {
218221
Repr::Os(..) => None,

0 commit comments

Comments
 (0)