@@ -269,7 +269,7 @@ pub trait AsMut<T: ?Sized> {
269269///
270270/// [`String`]: ../../std/string/struct.String.html
271271/// [`Vec`]: ../../std/vec/struct.Vec.html
272- #[ rustc_diagnostic_item = "into_trait " ]
272+ #[ rustc_diagnostic_item = "Into " ]
273273#[ stable( feature = "rust1" , since = "1.0.0" ) ]
274274pub trait Into < T > : Sized {
275275 /// Performs the conversion.
@@ -358,7 +358,7 @@ pub trait Into<T>: Sized {
358358/// [`String`]: ../../std/string/struct.String.html
359359/// [`from`]: From::from
360360/// [book]: ../../book/ch09-00-error-handling.html
361- #[ rustc_diagnostic_item = "from_trait " ]
361+ #[ rustc_diagnostic_item = "From " ]
362362#[ stable( feature = "rust1" , since = "1.0.0" ) ]
363363#[ rustc_on_unimplemented( on(
364364 all( _Self = "&str" , T = "std::string::String" ) ,
@@ -385,7 +385,7 @@ pub trait From<T>: Sized {
385385///
386386/// This suffers the same restrictions and reasoning as implementing
387387/// [`Into`], see there for details.
388- #[ rustc_diagnostic_item = "try_into_trait " ]
388+ #[ rustc_diagnostic_item = "TryInto " ]
389389#[ stable( feature = "try_from" , since = "1.34.0" ) ]
390390pub trait TryInto < T > : Sized {
391391 /// The type returned in the event of a conversion error.
@@ -465,7 +465,7 @@ pub trait TryInto<T>: Sized {
465465/// ```
466466///
467467/// [`try_from`]: TryFrom::try_from
468- #[ rustc_diagnostic_item = "try_from_trait " ]
468+ #[ rustc_diagnostic_item = "TryFrom " ]
469469#[ stable( feature = "try_from" , since = "1.34.0" ) ]
470470pub trait TryFrom < T > : Sized {
471471 /// The type returned in the event of a conversion error.
0 commit comments