Skip to content

Commit

Permalink
Update lib/compiler/src/artifact_builders/artifact_builder.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Christoph Herzog <[email protected]>
  • Loading branch information
Arshia001 and theduke authored Aug 10, 2023
1 parent a9fa1af commit 74dade1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/compiler/src/artifact_builders/artifact_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,9 +313,10 @@ impl ArtifactBuildFromArchive {
})?;

// Safety: we know the lambda will execute before getting here and assign both values
let compile_info = unsafe { compile_info.assume_init() };
Ok(Self {
cell,
compile_info: unsafe { compile_info.assume_init() },
compile_info,
})
}

Expand Down

0 comments on commit 74dade1

Please sign in to comment.