Fix clippy warning
This commit is contained in:
parent
2f2a834507
commit
0166bfc4fb
2 changed files with 2 additions and 1 deletions
|
|
@ -33,6 +33,7 @@ gccjit = "2.8"
|
|||
[dev-dependencies]
|
||||
boml = "0.3.1"
|
||||
lang_tester = "0.8.0"
|
||||
tempfile = "3.20.0"
|
||||
|
||||
[profile.dev]
|
||||
# By compiling dependencies with optimizations, performing tests gets much faster.
|
||||
|
|
|
|||
|
|
@ -205,7 +205,7 @@ impl CodegenBackend for GccCodegenBackend {
|
|||
// NOTE: try the LTO frontend and check if it errors out. If so, do not embed the bitcode.
|
||||
{
|
||||
let temp_dir = TempDir::new().expect("cannot create temporary directory");
|
||||
let temp_file = temp_dir.into_path().join("result.asm");
|
||||
let temp_file = temp_dir.keep().join("result.asm");
|
||||
let context = Context::default();
|
||||
let object_file_path = temp_file.to_str().expect("path to str");
|
||||
context.compile_to_file(gccjit::OutputKind::ObjectFile, object_file_path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue