Skip to content

Commit a1a5130

Browse files
committed
Fix stability attribute of impl !Error for &str
It was introduced in bf7611d (#99917), which was included in Rust 1.65.0.
1 parent a971212 commit a1a5130

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/core/src/str/mod.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -2818,5 +2818,5 @@ impl_fn_for_zst! {
28182818
}
28192819

28202820
// This is required to make `impl From<&str> for Box<dyn Error>` and `impl<E> From<E> for Box<dyn Error>` not overlap.
2821-
#[stable(feature = "rust1", since = "1.0.0")]
2821+
#[stable(feature = "error_in_core", since = "1.65.0")]
28222822
impl !crate::error::Error for &str {}

0 commit comments

Comments
 (0)