We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
from_fn
1 parent 5801873 commit 3084161Copy full SHA for 3084161
core/src/convert/mod.rs
@@ -542,7 +542,7 @@ pub trait Into<T>: Sized {
542
#[const_trait]
543
pub trait From<T>: Sized {
544
/// Converts to this type from the input type.
545
- #[lang = "from"]
+ #[rustc_diagnostic_item = "from_fn"]
546
#[must_use]
547
#[stable(feature = "rust1", since = "1.0.0")]
548
fn from(value: T) -> Self;
0 commit comments