mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-26 13:29:12 +00:00
clippy
This commit is contained in:
parent
40fff68dbc
commit
66d361d262
1 changed files with 4 additions and 3 deletions
|
@ -262,10 +262,11 @@ fn create_llvm_module<'a>(
|
|||
// Verify the module
|
||||
if let Err(errors) = env.module.verify() {
|
||||
let path = std::env::temp_dir().join("test.ll");
|
||||
env.module.print_to_file(path).unwrap();
|
||||
env.module.print_to_file(&path).unwrap();
|
||||
panic!(
|
||||
"Errors defining module:\n\n{}\n\nI have written the full module to `{path}`",
|
||||
errors.to_string()
|
||||
"Errors defining module:\n\n{}\n\nI have written the full module to `{:?}`",
|
||||
errors.to_string(),
|
||||
path
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue