We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1890f8a commit 0ab59a3Copy full SHA for 0ab59a3
src/monomorph_pass.rs
@@ -48,8 +48,9 @@ impl MonomorphPass {
48
}
49
50
if let Decl::Func(fdecl) = &func_decls[0] {
51
+ let fdecl = fdecl.clone();
52
self.process_function(&fdecl, decls)?;
- self.out_decls.push(Decl::Func(fdecl.clone()));
53
+ self.out_decls.push(Decl::Func(fdecl));
54
} else {
55
return Err(format!(
56
"Entry point '{}' is not a function",
0 commit comments