[INFO] cloning repository https://github.com/andreymgn/pascal-compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/andreymgn/pascal-compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreymgn%2Fpascal-compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreymgn%2Fpascal-compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7081fd980c3fd35581a64892fd99d420b7c28f03 [INFO] testing andreymgn/pascal-compiler against master#99e3aef02079e9c10583638520cd0c134dc3a01d for pr-85530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fandreymgn%2Fpascal-compiler" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/andreymgn/pascal-compiler on toolchain 99e3aef02079e9c10583638520cd0c134dc3a01d [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/andreymgn/pascal-compiler [INFO] finished tweaking git repo https://github.com/andreymgn/pascal-compiler [INFO] tweaked toml for git repo https://github.com/andreymgn/pascal-compiler written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/andreymgn/pascal-compiler already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 06bbc0a14f59c17a4968b027e5997f77d6f2da77bf611b116f71edd3a8dd4cd6 [INFO] running `Command { std: "docker" "start" "-a" "06bbc0a14f59c17a4968b027e5997f77d6f2da77bf611b116f71edd3a8dd4cd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "06bbc0a14f59c17a4968b027e5997f77d6f2da77bf611b116f71edd3a8dd4cd6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "06bbc0a14f59c17a4968b027e5997f77d6f2da77bf611b116f71edd3a8dd4cd6", kill_on_drop: false }` [INFO] [stdout] 06bbc0a14f59c17a4968b027e5997f77d6f2da77bf611b116f71edd3a8dd4cd6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+99e3aef02079e9c10583638520cd0c134dc3a01d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4ed30d8c10d7c09d9f265b25b3991ca13a53e3d351f764b9a281cce6a387217e [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" "4ed30d8c10d7c09d9f265b25b3991ca13a53e3d351f764b9a281cce6a387217e", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.2 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Compiling num-traits v0.2.6 [INFO] [stderr] Compiling typenum v1.10.0 [INFO] [stderr] Compiling syn v0.15.33 [INFO] [stderr] Compiling matrixmultiply v0.1.15 [INFO] [stderr] Compiling num-complex v0.2.1 [INFO] [stderr] Compiling either v1.5.2 [INFO] [stderr] Compiling ndarray v0.12.1 [INFO] [stderr] Compiling string_cache_shared v0.3.0 [INFO] [stderr] Compiling rawpointer v0.1.0 [INFO] [stderr] Compiling serde v1.0.90 [INFO] [stderr] Compiling scopeguard v0.3.3 [INFO] [stderr] Compiling byte-tools v0.3.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.3 [INFO] [stderr] Compiling fake-simd v0.1.2 [INFO] [stderr] Compiling ordermap v0.3.5 [INFO] [stderr] Compiling term v0.4.6 [INFO] [stderr] Compiling fixedbitset v0.1.9 [INFO] [stderr] Compiling lalrpop-util v0.16.3 [INFO] [stderr] Compiling diff v0.1.11 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling lalrpop-util v0.17.0 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling block-padding v0.1.4 [INFO] [stderr] Compiling itertools v0.7.11 [INFO] [stderr] Compiling itertools v0.8.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling proc-macro2 v0.4.29 [INFO] [stderr] Compiling ena v0.11.0 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling petgraph v0.4.13 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling ascii-canvas v1.0.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling hashbrown v0.1.8 [INFO] [stderr] Compiling generic-array v0.12.0 [INFO] [stderr] Compiling block-buffer v0.7.3 [INFO] [stderr] Compiling digest v0.8.0 [INFO] [stderr] Compiling sha2 v0.8.0 [INFO] [stderr] Compiling phf_generator v0.7.24 [INFO] [stderr] Compiling string_cache_codegen v0.4.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling string_cache v0.7.3 [INFO] [stderr] Compiling serde_derive v1.0.90 [INFO] [stderr] Compiling strsim v0.9.1 [INFO] [stderr] Compiling llvm-sys v60.4.0 [INFO] [stderr] Compiling docopt v1.1.0 [INFO] [stderr] Compiling lalrpop v0.16.3 [INFO] [stderr] Compiling pascal-kursach v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:13511:5 [INFO] [stdout] | [INFO] [stdout] 13511 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:14827:5 [INFO] [stdout] | [INFO] [stdout] 14827 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:15519:5 [INFO] [stdout] | [INFO] [stdout] 15519 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:15560:5 [INFO] [stdout] | [INFO] [stdout] 15560 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:15568:5 [INFO] [stdout] | [INFO] [stdout] 15568 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:15592:5 [INFO] [stdout] | [INFO] [stdout] 15592 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:15600:5 [INFO] [stdout] | [INFO] [stdout] 15600 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16375:5 [INFO] [stdout] | [INFO] [stdout] 16375 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16435:5 [INFO] [stdout] | [INFO] [stdout] 16435 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16461:5 [INFO] [stdout] | [INFO] [stdout] 16461 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16487:5 [INFO] [stdout] | [INFO] [stdout] 16487 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16513:5 [INFO] [stdout] | [INFO] [stdout] 16513 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16539:5 [INFO] [stdout] | [INFO] [stdout] 16539 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16565:5 [INFO] [stdout] | [INFO] [stdout] 16565 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16591:5 [INFO] [stdout] | [INFO] [stdout] 16591 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16617:5 [INFO] [stdout] | [INFO] [stdout] 16617 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16643:5 [INFO] [stdout] | [INFO] [stdout] 16643 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16669:5 [INFO] [stdout] | [INFO] [stdout] 16669 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16695:5 [INFO] [stdout] | [INFO] [stdout] 16695 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16721:5 [INFO] [stdout] | [INFO] [stdout] 16721 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16747:5 [INFO] [stdout] | [INFO] [stdout] 16747 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> /opt/rustwide/target/debug/build/pascal-kursach-a49dddb98d81b9a3/out/pascal.rs:16773:5 [INFO] [stdout] | [INFO] [stdout] 16773 | (__0) [INFO] [stdout] | ^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:76:78 [INFO] [stdout] | [INFO] [stdout] 76 | let printf = LLVMAddFunction(module, CString::new("printf").unwrap().as_ptr(), printf_typ); [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/codegen.rs:124:67 [INFO] [stdout] | [INFO] [stdout] 124 | CString::new(constant.name.as_str()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:141:67 [INFO] [stdout] | [INFO] [stdout] 141 | CString::new(constant.name.as_str()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:179:71 [INFO] [stdout] | [INFO] [stdout] 179 | CString::new(constant.name.as_str()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:243:54 [INFO] [stdout] | [INFO] [stdout] 243 | CString::new(proc.name.clone()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:264:45 [INFO] [stdout] | [INFO] [stdout] 264 | CString::new(filename).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:277:43 [INFO] [stdout] | [INFO] [stdout] 277 | CString::new("main").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:281:82 [INFO] [stdout] | [INFO] [stdout] 281 | let bb_entry = LLVMAppendBasicBlock(func, CString::new("entry").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:306:62 [INFO] [stdout] | [INFO] [stdout] 306 | CString::new(var.name.as_str()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:352:70 [INFO] [stdout] | [INFO] [stdout] 352 | ... CString::new(var.name.as_str()).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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:444:88 [INFO] [stdout] | [INFO] [stdout] 444 | let bb_then = LLVMAppendBasicBlock(func, CString::new("then").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:445:88 [INFO] [stdout] | [INFO] [stdout] 445 | let bb_else = LLVMAppendBasicBlock(func, CString::new("else").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:446:90 [INFO] [stdout] | [INFO] [stdout] 446 | let bb_merge = LLVMAppendBasicBlock(func, CString::new("merge").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:475:88 [INFO] [stdout] | [INFO] [stdout] 475 | let bb_then = LLVMAppendBasicBlock(func, CString::new("then").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:476:88 [INFO] [stdout] | [INFO] [stdout] 476 | let bb_else = LLVMAppendBasicBlock(func, CString::new("else").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:477:90 [INFO] [stdout] | [INFO] [stdout] 477 | let bb_merge = LLVMAppendBasicBlock(func, CString::new("merge").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:532:46 [INFO] [stdout] | [INFO] [stdout] 532 | CString::new("eql").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:539:45 [INFO] [stdout] | [INFO] [stdout] 539 | CString::new("gt").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:546:45 [INFO] [stdout] | [INFO] [stdout] 546 | CString::new("lt").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:579:46 [INFO] [stdout] | [INFO] [stdout] 579 | CString::new("add").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:585:46 [INFO] [stdout] | [INFO] [stdout] 585 | CString::new("sub").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:591:45 [INFO] [stdout] | [INFO] [stdout] 591 | CString::new("or").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:623:46 [INFO] [stdout] | [INFO] [stdout] 623 | CString::new("mul").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:629:46 [INFO] [stdout] | [INFO] [stdout] 629 | CString::new("div").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:635:46 [INFO] [stdout] | [INFO] [stdout] 635 | CString::new("and").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:658:46 [INFO] [stdout] | [INFO] [stdout] 658 | CString::new("neg").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:718:55 [INFO] [stdout] | [INFO] [stdout] 718 | CString::new("arrayidx").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:756:85 [INFO] [stdout] | [INFO] [stdout] 756 | let bb_init = LLVMAppendBasicBlock(func, CString::new("loop_init").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:757:85 [INFO] [stdout] | [INFO] [stdout] 757 | let bb_test = LLVMAppendBasicBlock(func, CString::new("loop_test").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:758:85 [INFO] [stdout] | [INFO] [stdout] 758 | let bb_body = LLVMAppendBasicBlock(func, CString::new("loop_body").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:759:85 [INFO] [stdout] | [INFO] [stdout] 759 | let bb_step = LLVMAppendBasicBlock(func, CString::new("loop_step").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:760:85 [INFO] [stdout] | [INFO] [stdout] 760 | let bb_exit = LLVMAppendBasicBlock(func, CString::new("loop_exit").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:786:55 [INFO] [stdout] | [INFO] [stdout] 786 | CString::new("loop_bound_check").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:972:61 [INFO] [stdout] | [INFO] [stdout] 972 | CString::new("float_cast").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:981:59 [INFO] [stdout] | [INFO] [stdout] 981 | CString::new("int_cast").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:995:54 [INFO] [stdout] | [INFO] [stdout] 995 | CString::new("cast_format").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:1018:54 [INFO] [stdout] | [INFO] [stdout] 1018 | CString::new("to_bool").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:1026:50 [INFO] [stdout] | [INFO] [stdout] 1026 | CString::new("to_bool").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: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/codegen.rs:1034:82 [INFO] [stdout] | [INFO] [stdout] 1034 | LLVMBuildLoad(self.builder, v, CString::new("load_ptr").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] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: "cc" "-m64" "-Wl,--eh-frame-hdr" "-Wl,-znoexecstack" "-Wl,--as-needed" "-L" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.0.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.1.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.10.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.11.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.12.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.13.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.14.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.15.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.2.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.3.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.4.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.5.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.6.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.7.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.8.rcgu.o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.pascal_kursach.2w2abnsp-cgu.9.rcgu.o" "-o" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3" "/opt/rustwide/target/debug/deps/pascal_kursach-a666be6c74a98fa3.7p5kl2bz2zttn2a.rcgu.o" "-Wl,--gc-sections" "-pie" "-Wl,-zrelro" "-Wl,-znow" "-nodefaultlibs" "-L" "/opt/rustwide/target/debug/deps" "-L" "/opt/rustwide/target/debug/build/llvm-sys-967c3df1c225376f/out" "-L" "/usr/lib/llvm-10/lib" "-L" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-Wl,-Bstatic" "/opt/rustwide/target/debug/deps/libregex-fafa8cb2210f1513.rlib" "/opt/rustwide/target/debug/deps/libutf8_ranges-34a93cb0f57de7bb.rlib" "/opt/rustwide/target/debug/deps/libregex_syntax-5c29288cae0d000c.rlib" "/opt/rustwide/target/debug/deps/libucd_util-dd49457a1bccdb32.rlib" "/opt/rustwide/target/debug/deps/libthread_local-cfdf414287c9064e.rlib" "/opt/rustwide/target/debug/deps/liblazy_static-6034a6970937b2b0.rlib" "/opt/rustwide/target/debug/deps/libaho_corasick-40730d871c9e37dc.rlib" "/opt/rustwide/target/debug/deps/libmemchr-9ecf7f71e8b143f4.rlib" "/opt/rustwide/target/debug/deps/liblalrpop_util-c52129a7d18a52ff.rlib" "/opt/rustwide/target/debug/deps/libclap-0763ac92221435dd.rlib" "/opt/rustwide/target/debug/deps/libyaml_rust-58d6ae9ddcb01a4a.rlib" "/opt/rustwide/target/debug/deps/libvec_map-1b378012469a33f8.rlib" "/opt/rustwide/target/debug/deps/libtextwrap-6d34e1e0485025a2.rlib" "/opt/rustwide/target/debug/deps/libunicode_width-d569fa77ffe46f20.rlib" "/opt/rustwide/target/debug/deps/libstrsim-66e58bd8aecd9c6e.rlib" "/opt/rustwide/target/debug/deps/libbitflags-3dc694161658240e.rlib" "/opt/rustwide/target/debug/deps/libatty-83fa1181279f5e49.rlib" "/opt/rustwide/target/debug/deps/libansi_term-b7c7e94976e9eae7.rlib" "/opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib" "/opt/rustwide/target/debug/deps/liblibc-1cd3a0c022fcc1b4.rlib" "-Wl,--start-group" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-21256c14e4504640.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libpanic_unwind-986e7fea4474d4d2.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libminiz_oxide-91d85f45babdb06e.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libadler-756509c31813f9a6.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libobject-5c2ef587e740c0cc.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libaddr2line-ad8f9371d31db1b3.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libgimli-402820fb3b4d3dd8.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd_detect-5e8e903f07dc8747.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_demangle-7ab9ae5080c07187.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libhashbrown-c8e8d47c6bf14de2.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_alloc-5a02dbb58abd015a.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libunwind-cedc8fec61444895.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcfg_if-a1c96351c52bc56a.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/liblibc-e41c6d24baeb2249.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/liballoc-62493b241881590c.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/librustc_std_workspace_core-a1fd7734706d5518.rlib" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcore-c8ded1707ad10767.rlib" "-Wl,--end-group" "/opt/rustwide/rustup-home/toolchains/99e3aef02079e9c10583638520cd0c134dc3a01d/lib/rustlib/x86_64-unknown-linux-gnu/lib/libcompiler_builtins-1eec8756baa5bc24.rlib" "-Wl,-Bdynamic" "-lz" "-lrt" "-ldl" "-ltinfo" "-lpthread" "-lm" "-lstdc++" "-lutil" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" [INFO] [stdout] = note: /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o): in function `llvm::Interpreter::callExternalFunction(llvm::Function*, llvm::ArrayRef)': [INFO] [stdout] (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0x93f): undefined reference to `ffi_type_void' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0x953): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0x9aa): undefined reference to `ffi_type_double' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0x9d1): undefined reference to `ffi_type_pointer' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xc6b): undefined reference to `ffi_type_void' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xc85): undefined reference to `ffi_type_double' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xcab): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xcb4): undefined reference to `ffi_type_pointer' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xcd6): undefined reference to `ffi_prep_cif' [INFO] [stdout] /usr/bin/ld: (.text._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE+0xdbc): undefined reference to `ffi_call' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x0): undefined reference to `ffi_type_sint8' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x8): undefined reference to `ffi_type_sint16' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x10): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x18): undefined reference to `ffi_type_sint32' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x20): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x28): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x30): undefined reference to `ffi_type_float' [INFO] [stdout] /usr/bin/ld: /opt/rustwide/target/debug/deps/libllvm_sys-6491f01f0d189fb0.rlib(ExternalFunctions.cpp.o):(.data.rel.ro..Lswitch.table._ZN4llvm11Interpreter20callExternalFunctionEPNS_8FunctionENS_8ArrayRefINS_12GenericValueEEE.33+0x38): undefined reference to `ffi_type_sint64' [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `pascal-kursach` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "4ed30d8c10d7c09d9f265b25b3991ca13a53e3d351f764b9a281cce6a387217e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ed30d8c10d7c09d9f265b25b3991ca13a53e3d351f764b9a281cce6a387217e", kill_on_drop: false }` [INFO] [stdout] 4ed30d8c10d7c09d9f265b25b3991ca13a53e3d351f764b9a281cce6a387217e