Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

[module] Finalize definitions for the end-user #1290

Merged
merged 1 commit into from
Dec 16, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion cranelift-module/src/module.rs
Original file line number Diff line number Diff line change
Expand Up @@ -714,7 +714,8 @@ where
/// Consume the module and return the resulting `Product`. Some `Backend`
/// implementations may provide additional functionality available after
/// a `Module` is complete.
pub fn finish(self) -> B::Product {
pub fn finish(mut self) -> B::Product {
self.finalize_definitions();
self.backend.finish()
}
}