Add conversion from IntrinsicDef to FnDef
This commit is contained in:
parent
56ad5453f6
commit
6743fc7704
2 changed files with 16 additions and 6 deletions
|
@ -653,6 +653,12 @@ impl IntrinsicDef {
|
|||
}
|
||||
}
|
||||
|
||||
impl From<IntrinsicDef> for FnDef {
|
||||
fn from(def: IntrinsicDef) -> Self {
|
||||
FnDef(def.0)
|
||||
}
|
||||
}
|
||||
|
||||
crate_def! {
|
||||
pub ClosureDef;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue