/// This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
pub fn emit_fatal_program<'arena>(
    alloc: &'arena bumpalo::Bump,
    op: FatalOp,
    pos: &Pos,
    msg: impl AsRef<str> + 'arena,
) -> Result<HhasProgram<'arena>> {
    Ok(HhasProgram {
        fatal: Just((op, pos.clone().into(), Str::new_str(alloc, msg.as_ref())).into()),
        ..HhasProgram::default()
    })
}
pub fn emit_fatal_program < ' arena > ( alloc : & ' arena bumpalo :: Bump , op : FatalOp , pos : & Pos , msg : impl AsRef < str > + ' arena , ) -> Result < HhasProgram < ' arena > > { Ok ( HhasProgram { fatal : Just ( ( op , pos . clone ( ) . into ( ) , Str :: new_str ( alloc , msg . as_ref ( ) ) ) . into ( ) ) , .. HhasProgram :: default ( ) } ) }
This is the entry point from hh_single_compile & fuzzer
This is the entry point from hh_single_compile & fuzzer
alloc
&'arena bumpalo::Bump
op
FatalOp
pos
&Pos
msg
impl AsRef<str> + 'arena