Skip to content

Commit

Permalink
Unrolled build for rust-lang#129312
Browse files Browse the repository at this point in the history
Rollup merge of rust-lang#129312 - tbu-:pr_str_not_impl_error, r=Noratrieb

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
rust-timer authored Aug 21, 2024
2 parents 982c6f8 + 123bb58 commit 79fcead
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 79fcead

Please sign in to comment.