1
Fork 0

Remove from_fn lang item

It was probably a leftover from the old `?` desugaring but anyways, it's
unused now except for clippy, which can just use a diagnostics item.
This commit is contained in:
Nilstrieb 2023-02-26 08:45:32 +00:00
parent b869e84e58
commit 312020ef6a
6 changed files with 8 additions and 8 deletions

View file

@ -542,7 +542,7 @@ pub trait Into<T>: Sized {
#[const_trait]
pub trait From<T>: Sized {
/// Converts to this type from the input type.
#[lang = "from"]
#[rustc_diagnostic_item = "from_fn"]
#[must_use]
#[stable(feature = "rust1", since = "1.0.0")]
fn from(value: T) -> Self;