mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 00:01:16 +00:00
Don't try to mem::forget a reference
This commit is contained in:
parent
4d11e7cbe6
commit
729aab21a1
1 changed files with 3 additions and 3 deletions
|
@ -467,7 +467,7 @@ pub fn build(matches: &ArgMatches, config: BuildConfig) -> io::Result<i32> {
|
|||
}
|
||||
|
||||
roc_run(
|
||||
&arena,
|
||||
arena,
|
||||
&original_cwd,
|
||||
triple,
|
||||
roc_file_arg_index,
|
||||
|
@ -491,7 +491,7 @@ pub fn build(matches: &ArgMatches, config: BuildConfig) -> io::Result<i32> {
|
|||
}
|
||||
|
||||
roc_run(
|
||||
&arena,
|
||||
arena,
|
||||
&original_cwd,
|
||||
triple,
|
||||
roc_file_arg_index,
|
||||
|
@ -544,7 +544,7 @@ pub fn build(matches: &ArgMatches, config: BuildConfig) -> io::Result<i32> {
|
|||
|
||||
#[cfg(target_family = "unix")]
|
||||
fn roc_run(
|
||||
arena: &Bump,
|
||||
arena: Bump, // This should be passed an owned value, not a reference, so we can usefully mem::forget it!
|
||||
cwd: &Path,
|
||||
triple: Triple,
|
||||
roc_file_arg_index: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue