about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLukas Markeffsky <@>2023-03-30 22:19:28 +0200
committerLukas Markeffsky <@>2023-03-30 22:19:28 +0200
commitbdb0c7f427c2be88e77b28cf21452cefc847b009 (patch)
tree9d203d104f08e08ea2922b2a4aadbbf4a643a93a
parent789ee5e4333a132cb58708ac5c341571c57d92ef (diff)
downloadrust-bdb0c7f427c2be88e77b28cf21452cefc847b009.tar.gz
rust-bdb0c7f427c2be88e77b28cf21452cefc847b009.zip
add comment to `impl !Error for &str`
-rw-r--r--library/core/src/str/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/str/mod.rs b/library/core/src/str/mod.rs
index 2b23f64732b..04169429949 100644
--- a/library/core/src/str/mod.rs
+++ b/library/core/src/str/mod.rs
@@ -2655,5 +2655,6 @@ 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")]
 impl !crate::error::Error for &str {}