[INFO] cloning repository https://github.com/adrianncovaci/rakiu [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/adrianncovaci/rakiu" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrianncovaci%2Frakiu", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrianncovaci%2Frakiu'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1bee1be6e321074ee9162975968ca4e7854c5992 [INFO] checking adrianncovaci/rakiu against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fadrianncovaci%2Frakiu" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/adrianncovaci/rakiu on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/adrianncovaci/rakiu [INFO] finished tweaking git repo https://github.com/adrianncovaci/rakiu [INFO] tweaked toml for git repo https://github.com/adrianncovaci/rakiu written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/adrianncovaci/rakiu already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded llvm-sys v100.0.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3b866eb95b0f88cb0f47eb23108a7a2a217cbdd2d2bc64453e758721062adbae [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3b866eb95b0f88cb0f47eb23108a7a2a217cbdd2d2bc64453e758721062adbae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3b866eb95b0f88cb0f47eb23108a7a2a217cbdd2d2bc64453e758721062adbae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3b866eb95b0f88cb0f47eb23108a7a2a217cbdd2d2bc64453e758721062adbae", kill_on_drop: false }` [INFO] [stdout] 3b866eb95b0f88cb0f47eb23108a7a2a217cbdd2d2bc64453e758721062adbae [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8c40f8310da2395d5775adad0da64dd0aa5314c9d3dd218b8ce1afa30994a833 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8c40f8310da2395d5775adad0da64dd0aa5314c9d3dd218b8ce1afa30994a833", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling aho-corasick v0.7.10 [INFO] [stderr] Compiling regex v1.3.7 [INFO] [stderr] Compiling llvm-sys v100.0.1 [INFO] [stderr] Checking rakiu v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/parser_mod/Parser.rs (1 fix) [INFO] [stderr] Fixed src/parser_mod/ParseItem.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/evaluation_mod/evaluate.rs (12 fixes) [INFO] [stderr] Fixed src/evaluation_mod/codegen.rs (4 fixes) [INFO] [stdout] warning: enum is never used: `Object` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_code` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe fn generate_code(input: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe fn codegen( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_allocations` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn insert_allocations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_function` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn call_function( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointer_type` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn pointer_type() -> *mut llvm::LLVMType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_printf` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | pub unsafe fn create_printf(module: *mut llvm::LLVMModule) -> *mut llvm::LLVMValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen_expr` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:120:11 [INFO] [stdout] | [INFO] [stdout] 120 | unsafe fn codegen_expr( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_by_ref` [INFO] [stdout] --> src/evaluation_mod/env.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_by_ref(&mut self, key: &str) -> Option<&Object> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Extern` [INFO] [stdout] --> src/lexer_mod/token.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | Extern, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Program` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Program { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_integer_literal` [INFO] [stdout] --> src/parser_mod/Parser.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:99:41 [INFO] [stdout] | [INFO] [stdout] 99 | CString::new(name).unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | CString::new("printf").unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ParseItem` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ParseItem; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Parser` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Parser; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Object` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_code` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe fn generate_code(input: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe fn codegen( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_allocations` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn insert_allocations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_function` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn call_function( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointer_type` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn pointer_type() -> *mut llvm::LLVMType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_printf` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | pub unsafe fn create_printf(module: *mut llvm::LLVMModule) -> *mut llvm::LLVMValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen_expr` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:120:11 [INFO] [stdout] | [INFO] [stdout] 120 | unsafe fn codegen_expr( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_by_ref` [INFO] [stdout] --> src/evaluation_mod/env.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_by_ref(&mut self, key: &str) -> Option<&Object> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Extern` [INFO] [stdout] --> src/lexer_mod/token.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | Extern, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Program` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Program { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_integer_literal` [INFO] [stdout] --> src/parser_mod/Parser.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:99:41 [INFO] [stdout] | [INFO] [stdout] 99 | CString::new(name).unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | CString::new("printf").unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ParseItem` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ParseItem; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Parser` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Parser; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 11.35s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking rakiu v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: enum is never used: `Object` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_code` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe fn generate_code(input: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe fn codegen( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_allocations` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn insert_allocations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_function` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn call_function( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointer_type` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn pointer_type() -> *mut llvm::LLVMType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_printf` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | pub unsafe fn create_printf(module: *mut llvm::LLVMModule) -> *mut llvm::LLVMValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen_expr` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:120:11 [INFO] [stdout] | [INFO] [stdout] 120 | unsafe fn codegen_expr( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_by_ref` [INFO] [stdout] --> src/evaluation_mod/env.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_by_ref(&mut self, key: &str) -> Option<&Object> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Extern` [INFO] [stdout] --> src/lexer_mod/token.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | Extern, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Program` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Program { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_integer_literal` [INFO] [stdout] --> src/parser_mod/Parser.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:99:41 [INFO] [stdout] | [INFO] [stdout] 99 | CString::new(name).unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | CString::new("printf").unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ParseItem` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ParseItem; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Parser` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Parser; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Object` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | pub enum Object { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_code` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 16 | pub unsafe fn generate_code(input: Vec) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:33:11 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe fn codegen( [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_allocations` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:61:11 [INFO] [stdout] | [INFO] [stdout] 61 | unsafe fn insert_allocations( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_function` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | pub fn call_function( [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `pointer_type` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 104 | pub fn pointer_type() -> *mut llvm::LLVMType { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_printf` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:108:15 [INFO] [stdout] | [INFO] [stdout] 108 | pub unsafe fn create_printf(module: *mut llvm::LLVMModule) -> *mut llvm::LLVMValue { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `codegen_expr` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:120:11 [INFO] [stdout] | [INFO] [stdout] 120 | unsafe fn codegen_expr( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_by_ref` [INFO] [stdout] --> src/evaluation_mod/env.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn get_by_ref(&mut self, key: &str) -> Option<&Object> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Extern` [INFO] [stdout] --> src/lexer_mod/token.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | Extern, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Program` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/parser_mod/ParseItem.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new() -> Program { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `parse_integer_literal` [INFO] [stdout] --> src/parser_mod/Parser.rs:349:8 [INFO] [stdout] | [INFO] [stdout] 349 | fn parse_integer_literal(&mut self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:99:41 [INFO] [stdout] | [INFO] [stdout] 99 | CString::new(name).unwrap().as_ptr(), [INFO] [stdout] | --------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/evaluation_mod/codegen.rs:115:41 [INFO] [stdout] | [INFO] [stdout] 115 | CString::new("printf").unwrap().as_ptr(), [INFO] [stdout] | ------------------------------- ^^^^^^ this pointer will be invalid [INFO] [stdout] | | [INFO] [stdout] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stdout] | [INFO] [stdout] = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned [INFO] [stdout] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `ParseItem` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub mod ParseItem; [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `parse_item` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Parser` should have a snake case name [INFO] [stdout] --> src/parser_mod.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub mod Parser; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `parser` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "8c40f8310da2395d5775adad0da64dd0aa5314c9d3dd218b8ce1afa30994a833", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c40f8310da2395d5775adad0da64dd0aa5314c9d3dd218b8ce1afa30994a833", kill_on_drop: false }` [INFO] [stdout] 8c40f8310da2395d5775adad0da64dd0aa5314c9d3dd218b8ce1afa30994a833