Fix stability attribute of impl !Error for &str
It was introduced in bf7611d55e
(#99917),
which was included in Rust 1.65.0.
This commit is contained in:
parent
a971212545
commit
123bb585f8
@ -2818,5 +2818,5 @@ struct UnsafeBytesToStr impl<'a> Fn = |bytes: &'a [u8]| -> &'a str {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
|
// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
|
||||||
#[stable(feature = "rust1", since = "1.0.0")]
|
#[stable(feature = "error_in_core_neg_impl", since = "1.65.0")]
|
||||||
impl !crate::error::Error for &str {}
|
impl !crate::error::Error for &str {}
|
||||||
|
Loading…
Reference in New Issue
Block a user