about summary refs log tree commit diff
path: root/library/core/src/convert
diff options
context:
space:
mode:
authormejrs <59372212+mejrs@users.noreply.github.com>2025-05-17 12:50:37 +0200
committermejrs <59372212+mejrs@users.noreply.github.com>2025-05-17 12:50:37 +0200
commitc9b6ccc11ce82c753702716f57f786acf322e64f (patch)
tree4fb04c0d00754ab0b9c8974ecc7783d08f76abde /library/core/src/convert
parentc4e05e53d19b550a358ee8b2e29ecd5a11075800 (diff)
Switch library rustc_unimplemented to use `Self` and `This`
Diffstat (limited to 'library/core/src/convert')
-rw-r--r--library/core/src/convert/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/core/src/convert/mod.rs b/library/core/src/convert/mod.rs
index e1b10e1074d..aeafc1be359 100644
--- a/library/core/src/convert/mod.rs
+++ b/library/core/src/convert/mod.rs
@@ -575,7 +575,7 @@ pub trait Into<T>: Sized {
 #[rustc_diagnostic_item = "From"]
 #[stable(feature = "rust1", since = "1.0.0")]
 #[rustc_on_unimplemented(on(
-    all(_Self = "&str", T = "alloc::string::String"),
+    all(Self = "&str", T = "alloc::string::String"),
     note = "to coerce a `{T}` into a `{Self}`, use `&*` as a prefix",
 ))]
 #[doc(search_unbox)]