[INFO] cloning repository https://github.com/yunamari/RustyGenC [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yunamari/RustyGenC" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyunamari%2FRustyGenC", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyunamari%2FRustyGenC'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e8bf91062b0e1e90da200f2648aa2508ff5c7fc0 [INFO] checking yunamari/RustyGenC against master#d8810e3e2dab96778d20dd6d746ff95465515509 for pr-137033 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyunamari%2FRustyGenC" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yunamari/RustyGenC on toolchain d8810e3e2dab96778d20dd6d746ff95465515509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/yunamari/RustyGenC [INFO] finished tweaking git repo https://github.com/yunamari/RustyGenC [INFO] tweaked toml for git repo https://github.com/yunamari/RustyGenC written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/yunamari/RustyGenC already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8a21ce248806279884bbc16959ef43874a370bf57c95dbf69cc55057d3b5651e [INFO] running `Command { std: "docker" "start" "-a" "8a21ce248806279884bbc16959ef43874a370bf57c95dbf69cc55057d3b5651e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8a21ce248806279884bbc16959ef43874a370bf57c95dbf69cc55057d3b5651e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8a21ce248806279884bbc16959ef43874a370bf57c95dbf69cc55057d3b5651e", kill_on_drop: false }` [INFO] [stdout] 8a21ce248806279884bbc16959ef43874a370bf57c95dbf69cc55057d3b5651e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+d8810e3e2dab96778d20dd6d746ff95465515509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4c65307fe62b087be6897d2f3cbb6dd58afa81de71dea7e5714ef60daae38855 [INFO] running `Command { std: "docker" "start" "-a" "4c65307fe62b087be6897d2f3cbb6dd58afa81de71dea7e5714ef60daae38855", kill_on_drop: false }` [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Checking once_cell v1.19.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Checking RustyGenC v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let label = unsafe { label::LABEL.clone()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | c_code_final.push(format!(" \n{}{mnemonic}", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:117:39 [INFO] [stdout] | [INFO] [stdout] 117 | c_code_final.push(unsafe {IDENT.clone()} + "if (" + &sequence.join("") + ") {"); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:118:65 [INFO] [stdout] | [INFO] [stdout] 118 | c_code_final.push(format!("{}goto {name};", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:119:55 [INFO] [stdout] | [INFO] [stdout] 119 | c_code_final.push(format!("{}}}", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:248:39 [INFO] [stdout] | [INFO] [stdout] 248 | c_code_final.push(unsafe {IDENT.clone()} + &sequence.join("")); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:65 [INFO] [stdout] | [INFO] [stdout] 249 | ... if *vec_idxd.last().unwrap() == i as i32 { unsafe { IDENT.truncate(IDENT.len()-4); c_code_final.push(format!("{}}}\n", IDENT.clone(... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:80 [INFO] [stdout] | [INFO] [stdout] 249 | ... if *vec_idxd.last().unwrap() == i as i32 { unsafe { IDENT.truncate(IDENT.len()-4); c_code_final.push(format!("{}}}\n", IDENT.clone(... [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:132 [INFO] [stdout] | [INFO] [stdout] 249 | ...()-4); c_code_final.push(format!("{}}}\n", IDENT.clone())); } } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/logs.rs:100:95 [INFO] [stdout] | [INFO] [stdout] 100 | DebugMsg::Terminate => ("Finished", format!("the code was generated in {:?}", unsafe {TIME.elapsed()})) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/mod.rs:179:160 [INFO] [stdout] | [INFO] [stdout] 179 | ...fe {converter::LINE_COUNT}, unsafe {converter::LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/variable.rs:16:47 [INFO] [stdout] | [INFO] [stdout] 16 | if mnemonic.contains(":") && unsafe { label::LABEL.clone().contain_funcion(&mnemonic.replace(":", ""))} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/variable.rs:118:69 [INFO] [stdout] | [INFO] [stdout] 118 | for reg in reg_tr { c_code.push(format!("{}{} {reg};", unsafe { converter::IDENT.clone() }, unsafe {ARCH.get_expr_with_type()})) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/label.rs:113:36 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some(var) = unsafe {LABEL.clone().get_variable_with_name(name)}{ [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/types.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | } else if label::LABEL.clone().contains_with_name(op_content) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/types.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | }else if unsafe { label::LABEL.clone().contains_with_name(operand)} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/mod.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | ...) && unsafe { label::LABEL.contains(&LabelType::Function(mnemonic.replace(":", "")))} || mnemonic.replace(":", "") == "_start" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/arguments.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | if line.contains("ret")|| unsafe { label::LABEL.clone().contain_funcion(&mnemonic.replace(":", ""))}{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/return_func.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | if line.contains(":") && unsafe { label::LABEL.clone().contain_funcion(&line.replace(":", ""))} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:49:77 [INFO] [stdout] | [INFO] [stdout] 49 | ... sequence.push(format!(";\n{}*({}*)&{}", unsafe {IDENT.clone()}, operand_type.1.get_expr_with_type(), st_var.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | if unsafe { LINE_STR.split_whitespace().collect::>().first().unwrap() } == &"lea" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:131:118 [INFO] [stdout] | [INFO] [stdout] 131 | ... sequence.insert(0, format!("uint8_t {}[{}];\n{}", st_var.name, st_var.size, unsafe { IDENT.clone() })) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:133:135 [INFO] [stdout] | [INFO] [stdout] 133 | ...th_len(st_var.size), st_var.name, unsafe { IDENT.clone() })) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | ... if unsafe { *LINE_STR.split_whitespace().collect::>().first().unwrap() } == "lea" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:85:101 [INFO] [stdout] | [INFO] [stdout] 85 | print_msg!(LogLevel::CriticalErr(CriticalErr::StackPtrIsNotRsp), "instruction: {}", unsafe {converter::LINE_STR.clone()}) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:92:100 [INFO] [stdout] | [INFO] [stdout] 92 | print_msg!(LogLevel::Error(Error::Arithmetic(Box::new(e))), "instruction: {}", unsafe {converter::LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:106:101 [INFO] [stdout] | [INFO] [stdout] 106 | print_msg!(LogLevel::CriticalErr(CriticalErr::StackPtrIsNotRsp), "instruction: {}", unsafe {converter::LINE_STR.clone()}) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:113:31 [INFO] [stdout] | [INFO] [stdout] 113 | c_code_final.push(unsafe {converter::IDENT.clone()} + &"__builtin_trap();".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mov_movzx_lea.rs:7:78 [INFO] [stdout] | [INFO] [stdout] 7 | print_msg!(LogLevel::Error(Error::NotOp), "instruction: {}", unsafe {LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/xor.rs:7:82 [INFO] [stdout] | [INFO] [stdout] 7 | print_msg!(LogLevel::Error(Error::NotOp), "instruction: \"{}\"", unsafe {LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/xor.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | c_code_final.push(unsafe {IDENT.clone()} + &sequence.join("")); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/push.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | c_code.push(format!("{}{} {} = {op};", unsafe {IDENT.clone()}, unsafe {ARCH.get_expr_with_type()}, var.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/pop.rs:10:67 [INFO] [stdout] | [INFO] [stdout] 10 | c_code_final.push(format!("{}{op} = {};", unsafe {IDENT.clone()}, closed_stack.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/conditional_insn.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | *last_sequence = unsafe { LINE_STR.split_whitespace().map(|s| s.to_string()).collect::>() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/call.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | ... c_code_final.push(unsafe {IDENT.clone()} + function::arguments::target_arg(stack_ptr, stack_mem.clone(), op1, asm_code).as_str() + ... [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/call.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | ... c_code_final.push(format!("{}{};", unsafe {IDENT.clone()}, function::arguments::target_arg(stack_ptr, stack_mem.clone(), &name_form... [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/jmp.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | code.push(format!("{}goto {};", unsafe {converter::IDENT.clone()}, liner.last().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/idiv.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 15 | sequence.push(format!(" \n{}rdx = {op_actually} % rax;", unsafe {converter::IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:77:26 [INFO] [stdout] | [INFO] [stdout] 77 | let label = unsafe { label::LABEL.clone()}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:101:66 [INFO] [stdout] | [INFO] [stdout] 101 | c_code_final.push(format!(" \n{}{mnemonic}", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:117:39 [INFO] [stdout] | [INFO] [stdout] 117 | c_code_final.push(unsafe {IDENT.clone()} + "if (" + &sequence.join("") + ") {"); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:118:65 [INFO] [stdout] | [INFO] [stdout] 118 | c_code_final.push(format!("{}goto {name};", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:119:55 [INFO] [stdout] | [INFO] [stdout] 119 | c_code_final.push(format!("{}}}", unsafe {IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:248:39 [INFO] [stdout] | [INFO] [stdout] 248 | c_code_final.push(unsafe {IDENT.clone()} + &sequence.join("")); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:65 [INFO] [stdout] | [INFO] [stdout] 249 | ... if *vec_idxd.last().unwrap() == i as i32 { unsafe { IDENT.truncate(IDENT.len()-4); c_code_final.push(format!("{}}}\n", IDENT.clone(... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:80 [INFO] [stdout] | [INFO] [stdout] 249 | ... if *vec_idxd.last().unwrap() == i as i32 { unsafe { IDENT.truncate(IDENT.len()-4); c_code_final.push(format!("{}}}\n", IDENT.clone(... [INFO] [stdout] | ^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/converter.rs:249:132 [INFO] [stdout] | [INFO] [stdout] 249 | ...()-4); c_code_final.push(format!("{}}}\n", IDENT.clone())); } } [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/logs.rs:100:95 [INFO] [stdout] | [INFO] [stdout] 100 | DebugMsg::Terminate => ("Finished", format!("the code was generated in {:?}", unsafe {TIME.elapsed()})) [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/mod.rs:179:160 [INFO] [stdout] | [INFO] [stdout] 179 | ...fe {converter::LINE_COUNT}, unsafe {converter::LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/variable.rs:16:47 [INFO] [stdout] | [INFO] [stdout] 16 | if mnemonic.contains(":") && unsafe { label::LABEL.clone().contain_funcion(&mnemonic.replace(":", ""))} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/stack/variable.rs:118:69 [INFO] [stdout] | [INFO] [stdout] 118 | for reg in reg_tr { c_code.push(format!("{}{} {reg};", unsafe { converter::IDENT.clone() }, unsafe {ARCH.get_expr_with_type()})) } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/label.rs:113:36 [INFO] [stdout] | [INFO] [stdout] 113 | if let Some(var) = unsafe {LABEL.clone().get_variable_with_name(name)}{ [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/types.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | } else if label::LABEL.clone().contains_with_name(op_content) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/types.rs:142:27 [INFO] [stdout] | [INFO] [stdout] 142 | }else if unsafe { label::LABEL.clone().contains_with_name(operand)} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/mod.rs:20:43 [INFO] [stdout] | [INFO] [stdout] 20 | ...) && unsafe { label::LABEL.contains(&LabelType::Function(mnemonic.replace(":", "")))} || mnemonic.replace(":", "") == "_start" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/arguments.rs:48:44 [INFO] [stdout] | [INFO] [stdout] 48 | if line.contains("ret")|| unsafe { label::LABEL.clone().contain_funcion(&mnemonic.replace(":", ""))}{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/function/return_func.rs:11:43 [INFO] [stdout] | [INFO] [stdout] 11 | if line.contains(":") && unsafe { label::LABEL.clone().contain_funcion(&line.replace(":", ""))} { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:49:77 [INFO] [stdout] | [INFO] [stdout] 49 | ... sequence.push(format!(";\n{}*({}*)&{}", unsafe {IDENT.clone()}, operand_type.1.get_expr_with_type(), st_var.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:70:37 [INFO] [stdout] | [INFO] [stdout] 70 | if unsafe { LINE_STR.split_whitespace().collect::>().first().unwrap() } == &"lea" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:131:118 [INFO] [stdout] | [INFO] [stdout] 131 | ... sequence.insert(0, format!("uint8_t {}[{}];\n{}", st_var.name, st_var.size, unsafe { IDENT.clone() })) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:133:135 [INFO] [stdout] | [INFO] [stdout] 133 | ...th_len(st_var.size), st_var.name, unsafe { IDENT.clone() })) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/operand/memory_op/arthm.rs:168:42 [INFO] [stdout] | [INFO] [stdout] 168 | ... if unsafe { *LINE_STR.split_whitespace().collect::>().first().unwrap() } == "lea" { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:85:101 [INFO] [stdout] | [INFO] [stdout] 85 | print_msg!(LogLevel::CriticalErr(CriticalErr::StackPtrIsNotRsp), "instruction: {}", unsafe {converter::LINE_STR.clone()}) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:92:100 [INFO] [stdout] | [INFO] [stdout] 92 | print_msg!(LogLevel::Error(Error::Arithmetic(Box::new(e))), "instruction: {}", unsafe {converter::LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:106:101 [INFO] [stdout] | [INFO] [stdout] 106 | print_msg!(LogLevel::CriticalErr(CriticalErr::StackPtrIsNotRsp), "instruction: {}", unsafe {converter::LINE_STR.clone()}) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mod.rs:113:31 [INFO] [stdout] | [INFO] [stdout] 113 | c_code_final.push(unsafe {converter::IDENT.clone()} + &"__builtin_trap();".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/mov_movzx_lea.rs:7:78 [INFO] [stdout] | [INFO] [stdout] 7 | print_msg!(LogLevel::Error(Error::NotOp), "instruction: {}", unsafe {LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/xor.rs:7:82 [INFO] [stdout] | [INFO] [stdout] 7 | print_msg!(LogLevel::Error(Error::NotOp), "instruction: \"{}\"", unsafe {LINE_STR.clone()}); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/xor.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | c_code_final.push(unsafe {IDENT.clone()} + &sequence.join("")); [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/push.rs:11:64 [INFO] [stdout] | [INFO] [stdout] 11 | c_code.push(format!("{}{} {} = {op};", unsafe {IDENT.clone()}, unsafe {ARCH.get_expr_with_type()}, var.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/pop.rs:10:67 [INFO] [stdout] | [INFO] [stdout] 10 | c_code_final.push(format!("{}{op} = {};", unsafe {IDENT.clone()}, closed_stack.name)) [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/conditional_insn.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | *last_sequence = unsafe { LINE_STR.split_whitespace().map(|s| s.to_string()).collect::>() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/call.rs:9:35 [INFO] [stdout] | [INFO] [stdout] 9 | ... c_code_final.push(unsafe {IDENT.clone()} + function::arguments::target_arg(stack_ptr, stack_mem.clone(), op1, asm_code).as_str() + ... [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/call.rs:19:52 [INFO] [stdout] | [INFO] [stdout] 19 | ... c_code_final.push(format!("{}{};", unsafe {IDENT.clone()}, function::arguments::target_arg(stack_ptr, stack_mem.clone(), &name_form... [INFO] [stdout] | ^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/jmp.rs:4:45 [INFO] [stdout] | [INFO] [stdout] 4 | code.push(format!("{}goto {};", unsafe {converter::IDENT.clone()}, liner.last().unwrap())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/instruction/idiv.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 15 | sequence.push(format!(" \n{}rdx = {op_actually} % rax;", unsafe {converter::IDENT.clone()})); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.18s [INFO] running `Command { std: "docker" "inspect" "4c65307fe62b087be6897d2f3cbb6dd58afa81de71dea7e5714ef60daae38855", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c65307fe62b087be6897d2f3cbb6dd58afa81de71dea7e5714ef60daae38855", kill_on_drop: false }` [INFO] [stdout] 4c65307fe62b087be6897d2f3cbb6dd58afa81de71dea7e5714ef60daae38855