Skip to content

Commit 93319c8

Browse files
committed
Fix stability attribute of impl !Error for &str
It was introduced in bf7611d (rust-lang#99917), which was included in Rust 1.65.0.
1 parent 91439ce commit 93319c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: 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_neg_impl", since = "1.65.0")]
28222822
impl !crate::error::Error for &str {}

0 commit comments

Comments
 (0)