mirror of
https://github.com/rust-lang/rust
synced 2024-09-15 22:50:55 +00:00
Mention UFCS sadness in instability messages
This commit is contained in:
parent
f65ba38cc4
commit
aebf331431
|
@ -187,7 +187,8 @@ pub fn raw_os_error(&self) -> Option<i32> {
|
|||
///
|
||||
/// 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 @@ pub fn get_ref(&self) -> Option<&(error::Error+Send+Sync+'static)> {
|
|||
///
|
||||
/// 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 @@ pub fn get_mut(&mut self) -> Option<&mut (error::Error+Send+Sync+'static)> {
|
|||
///
|
||||
/// 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<Box<error::Error+Send+Sync>> {
|
||||
match self.repr {
|
||||
Repr::Os(..) => None,
|
||||
|
|
Loading…
Reference in a new issue