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:
parent
b869e84e58
commit
312020ef6a
6 changed files with 8 additions and 8 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue