1
Fork 0

Add conversion from IntrinsicDef to FnDef

This commit is contained in:
Mohammad Omidvar 2024-05-23 15:35:18 +00:00
parent 56ad5453f6
commit 6743fc7704
2 changed files with 16 additions and 6 deletions

View file

@ -653,6 +653,12 @@ impl IntrinsicDef {
}
}
impl From<IntrinsicDef> for FnDef {
fn from(def: IntrinsicDef) -> Self {
FnDef(def.0)
}
}
crate_def! {
pub ClosureDef;
}