Bump Rust and add skeleton code for irgen.

This commit is contained in:
Janggun Lee
2022-12-19 18:50:22 +09:00
parent 6ae0e26197
commit c5946611a3
26 changed files with 913 additions and 176 deletions

View File

@@ -19,8 +19,8 @@ fn modify_c(path: &Path, rand_num: i32) -> String {
.expect("`src` must be converted to string");
drop(src);
let from = format!("int {} = 1", NONCE_NAME);
let to = format!("int {} = {}", NONCE_NAME, rand_num);
let from = format!("int {NONCE_NAME} = 1");
let to = format!("int {NONCE_NAME} = {rand_num}");
data.replace(&from, &to)
}