mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
Revert "send panics to the repl more gracefully"
Now doesn't seem like the right time to do a change this invasive.
This reverts commit a36ddbf6cb
.
This commit is contained in:
parent
a36ddbf6cb
commit
0190787f7b
5 changed files with 14 additions and 31 deletions
|
@ -107,11 +107,7 @@ impl<'a> ReplApp<'a> for CliApp {
|
|||
|
||||
/// Run user code that returns a type with a `Builtin` layout
|
||||
/// Size of the return value is statically determined from its Rust type
|
||||
fn call_function<Return, F>(
|
||||
&mut self,
|
||||
main_fn_name: &str,
|
||||
mut transform: F,
|
||||
) -> Result<Expr<'a>, String>
|
||||
fn call_function<Return, F>(&mut self, main_fn_name: &str, mut transform: F) -> Expr<'a>
|
||||
where
|
||||
F: FnMut(&'a Self::Memory, Return) -> Expr<'a>,
|
||||
Self::Memory: 'a,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue