about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2024-08-21 18:15:03 +0200
committerGitHub <noreply@github.com>2024-08-21 18:15:03 +0200
commit349f29992ba36e821c3c317bafff5502f77a96ee (patch)
treee78b83c90da0a71ac9ba1c843d9bf02e29404e79
parent9bb17d345a79455e68c4be34e0522767869cdf90 (diff)
parent123bb585f88f21d1035a13f6ed65c4cc898b17a7 (diff)
downloadrust-349f29992ba36e821c3c317bafff5502f77a96ee.tar.gz
rust-349f29992ba36e821c3c317bafff5502f77a96ee.zip
Rollup merge of #129312 - tbu-:pr_str_not_impl_error, r=Noratrieb
Fix stability attribute of `impl !Error for &str`

It was introduced in bf7611d55ee6e24647aefc4d1c82b1dba0164536 (#99917), which was included in Rust 1.65.0.
-rw-r--r--library/core/src/str/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index 56517348dc7..cf9f1bfc0eb 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -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 {}