Skip to content

Commit

Permalink
Fix stability attribute of impl !Error for &str
Browse files Browse the repository at this point in the history
It was introduced in bf7611d (rust-lang#99917),
which was included in Rust 1.65.0.
  • Loading branch information
tbu- committed Aug 21, 2024
1 parent 91439ce commit 93319c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/str/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2818,5 +2818,5 @@ impl_fn_for_zst! {
}

// 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 {}

0 comments on commit 93319c8

Please sign in to comment.