Skip to content

Commit 349f299

Browse files
authored
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.
2 parents 9bb17d3 + 123bb58 commit 349f299

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/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)