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 a971212 commit 123bb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/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 123bb58

Please sign in to comment.