mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 21:39:07 +00:00
clippy
This commit is contained in:
parent
fc7b831285
commit
aa0e975845
6 changed files with 18 additions and 53 deletions
|
@ -20,8 +20,8 @@ use roc_types::pretty_print::{name_and_print_var, DebugPrint};
|
|||
use roc_types::subs::Subs;
|
||||
use target_lexicon::Triple;
|
||||
|
||||
pub fn eval_llvm<'a>(
|
||||
mut loaded: MonomorphizedModule<'a>,
|
||||
pub fn eval_llvm(
|
||||
mut loaded: MonomorphizedModule<'_>,
|
||||
target: &Triple,
|
||||
opt_level: OptLevel,
|
||||
) -> Option<ReplOutput> {
|
||||
|
@ -55,7 +55,7 @@ pub fn eval_llvm<'a>(
|
|||
let interns = loaded.interns.clone();
|
||||
|
||||
let (lib, main_fn_name, subs, layout_interner) =
|
||||
mono_module_to_dylib(&arena, &target, loaded, opt_level).expect("we produce a valid Dylib");
|
||||
mono_module_to_dylib(&arena, target, loaded, opt_level).expect("we produce a valid Dylib");
|
||||
|
||||
let mut app = CliApp { lib };
|
||||
|
||||
|
@ -256,6 +256,6 @@ fn mono_module_to_dylib<'a>(
|
|||
internal_error!("Errors defining module:\n{}", errors.to_string());
|
||||
}
|
||||
|
||||
llvm_module_to_dylib(env.module, &target, opt_level)
|
||||
llvm_module_to_dylib(env.module, target, opt_level)
|
||||
.map(|lib| (lib, main_fn_name, subs, layout_interner))
|
||||
}
|
||||
|
|
|
@ -95,8 +95,8 @@ pub fn main() -> i32 {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn evaluate<'a>(
|
||||
opt_mono: Option<MonomorphizedModule<'a>>,
|
||||
pub fn evaluate(
|
||||
opt_mono: Option<MonomorphizedModule<'_>>,
|
||||
problems: Problems,
|
||||
opt_var_name: Option<String>,
|
||||
target: &Triple,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue