Skip to content

Commit 44022f7

Browse files
committed
Add clarifying comments
1 parent 1ad560b commit 44022f7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/main.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,8 @@ impl Runner {
286286
let sourcedir = make_sourcedir(source)?;
287287
let store = &*STORE;
288288
let (module, version) = lang.get_wasm(store)?;
289+
// This is very strange, but this exactly println in this exact place is necessary to avoid
290+
// error: "corrupted binary: misaligned metadata"
289291
println!("IT worked");
290292
Runner::new_wasm(store, module, version, &[], sourcedir).await
291293
}
@@ -636,6 +638,8 @@ impl Lang {
636638
}};
637639
}
638640
let lang = self;
641+
// This is very strange, but this exactly println in this exact place is necessary to avoid
642+
// error: "corrupted binary: misaligned metadata"
639643
println!("ATTEMPTING");
640644
Ok(include!(concat!(env!("OUT_DIR"), "/lang_runners.rs")))
641645
}

0 commit comments

Comments
 (0)