Skip to content

Commit

Permalink
Rollup merge of rust-lang#129312 - tbu-:pr_str_not_impl_error, r=Nora…
Browse files Browse the repository at this point in the history
…trieb

Fix stability attribute of `impl !Error for &str`

It was introduced in bf7611d (rust-lang#99917), which was included in Rust 1.65.0.
  • Loading branch information
matthiaskrgr authored Aug 21, 2024
2 parents 9bb17d3 + 123bb58 commit 349f299
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 349f299

Please sign in to comment.