[INFO] cloning repository https://github.com/hoangpq/lisp-llvm-ir [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/hoangpq/lisp-llvm-ir" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoangpq%2Flisp-llvm-ir", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoangpq%2Flisp-llvm-ir'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 01cb665fc59d4d23399e518ff78910a3440943a3 [INFO] checking hoangpq/lisp-llvm-ir against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoangpq%2Flisp-llvm-ir" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hoangpq/lisp-llvm-ir on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hoangpq/lisp-llvm-ir [INFO] finished tweaking git repo https://github.com/hoangpq/lisp-llvm-ir [INFO] tweaked toml for git repo https://github.com/hoangpq/lisp-llvm-ir written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/hoangpq/lisp-llvm-ir 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded semver-parser v0.10.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f0c2201b865ab3b05aa1961dafe2b2a7ac5d9e9e9133b681885bb8eac9474adb [INFO] running `Command { std: "docker" "start" "-a" "f0c2201b865ab3b05aa1961dafe2b2a7ac5d9e9e9133b681885bb8eac9474adb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f0c2201b865ab3b05aa1961dafe2b2a7ac5d9e9e9133b681885bb8eac9474adb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f0c2201b865ab3b05aa1961dafe2b2a7ac5d9e9e9133b681885bb8eac9474adb", kill_on_drop: false }` [INFO] [stdout] f0c2201b865ab3b05aa1961dafe2b2a7ac5d9e9e9133b681885bb8eac9474adb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 52301cd197c0da3757a40162298862bbfca19a4f7e1a4e6bca96a575e7306d9e [INFO] running `Command { std: "docker" "start" "-a" "52301cd197c0da3757a40162298862bbfca19a4f7e1a4e6bca96a575e7306d9e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling llvm-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Compiling semver-parser v0.10.1 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling llvm-sys v110.0.0 [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/builtin/env.rs:59:69 [INFO] [stdout] | [INFO] [stdout] 59 | LLVMPrintModuleToFile(self.llvm_module, c_string!(path).as_ptr() as *const _, buf) [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/builtin/env.rs:59:69 [INFO] [stdout] | [INFO] [stdout] 59 | LLVMPrintModuleToFile(self.llvm_module, c_string!(path).as_ptr() as *const _, buf) [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ir/block.rs:10:88 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe { LLVMAppendBasicBlockInContext(context, function, c_string!(function_name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/block.rs:10:88 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe { LLVMAppendBasicBlockInContext(context, function, c_string!(function_name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/llvm_type.rs:57:74 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { LLVMBuildBitCast(builder, value, dest_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/llvm_type.rs:57:74 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { LLVMBuildBitCast(builder, value, dest_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { LLVMBuildAlloca(builder, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { LLVMBuildAlloca(builder, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:50:65 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { LLVMBuildLoad(builder, llvm_value, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:50:65 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { LLVMBuildLoad(builder, llvm_value, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { LLVMAddFunction(target_module, c_string!(name).as_ptr(), function_type) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { LLVMAddFunction(target_module, c_string!(name).as_ptr(), function_type) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/scope.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { LLVMAddGlobal(module, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/scope.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { LLVMAddGlobal(module, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/string.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/string.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.27s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: semver-parser v0.10.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "52301cd197c0da3757a40162298862bbfca19a4f7e1a4e6bca96a575e7306d9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52301cd197c0da3757a40162298862bbfca19a4f7e1a4e6bca96a575e7306d9e", kill_on_drop: false }` [INFO] [stdout] 52301cd197c0da3757a40162298862bbfca19a4f7e1a4e6bca96a575e7306d9e [INFO] checking hoangpq/lisp-llvm-ir against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fhoangpq%2Flisp-llvm-ir" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/hoangpq/lisp-llvm-ir on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/hoangpq/lisp-llvm-ir [INFO] finished tweaking git repo https://github.com/hoangpq/lisp-llvm-ir [INFO] tweaked toml for git repo https://github.com/hoangpq/lisp-llvm-ir written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/hoangpq/lisp-llvm-ir 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 564f7d2638cbb7754f2f70143fc5f6a6d40379ef00ae41e24eb6aaf85d1ae533 [INFO] running `Command { std: "docker" "start" "-a" "564f7d2638cbb7754f2f70143fc5f6a6d40379ef00ae41e24eb6aaf85d1ae533", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "564f7d2638cbb7754f2f70143fc5f6a6d40379ef00ae41e24eb6aaf85d1ae533", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "564f7d2638cbb7754f2f70143fc5f6a6d40379ef00ae41e24eb6aaf85d1ae533", kill_on_drop: false }` [INFO] [stdout] 564f7d2638cbb7754f2f70143fc5f6a6d40379ef00ae41e24eb6aaf85d1ae533 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a1b2ead4a8d07f27b168b9c6681400b4b5c90ac972a13413025f41743c13e325 [INFO] running `Command { std: "docker" "start" "-a" "a1b2ead4a8d07f27b168b9c6681400b4b5c90ac972a13413025f41743c13e325", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling libc v0.2.80 [INFO] [stderr] Compiling regex-syntax v0.6.21 [INFO] [stderr] Compiling cc v1.0.65 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Compiling llvm-rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Checking strsim v0.8.0 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Compiling semver-parser v0.10.1 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling aho-corasick v0.7.15 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling regex v1.4.2 [INFO] [stderr] Compiling llvm-sys v110.0.0 [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/builtin/env.rs:59:69 [INFO] [stdout] | [INFO] [stdout] 59 | LLVMPrintModuleToFile(self.llvm_module, c_string!(path).as_ptr() as *const _, buf) [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ir/block.rs:10:88 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe { LLVMAppendBasicBlockInContext(context, function, c_string!(function_name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/llvm_type.rs:57:74 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { LLVMBuildBitCast(builder, value, dest_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { LLVMBuildAlloca(builder, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:50:65 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { LLVMBuildLoad(builder, llvm_value, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { LLVMAddFunction(target_module, c_string!(name).as_ptr(), function_type) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/scope.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { LLVMAddGlobal(module, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/string.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/builtin/env.rs:59:69 [INFO] [stdout] | [INFO] [stdout] 59 | LLVMPrintModuleToFile(self.llvm_module, c_string!(path).as_ptr() as *const _, buf) [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/ir/block.rs:10:88 [INFO] [stdout] | [INFO] [stdout] 10 | unsafe { LLVMAppendBasicBlockInContext(context, function, c_string!(function_name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/llvm_type.rs:57:74 [INFO] [stdout] | [INFO] [stdout] 57 | unsafe { LLVMBuildBitCast(builder, value, dest_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:33:66 [INFO] [stdout] | [INFO] [stdout] 33 | unsafe { LLVMBuildAlloca(builder, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:50:65 [INFO] [stdout] | [INFO] [stdout] 50 | unsafe { LLVMBuildLoad(builder, llvm_value, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:83:61 [INFO] [stdout] | [INFO] [stdout] 83 | unsafe { LLVMAddFunction(target_module, c_string!(name).as_ptr(), function_type) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/operate.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/scope.rs:6:63 [INFO] [stdout] | [INFO] [stdout] 6 | unsafe { LLVMAddGlobal(module, llvm_type, c_string!(name).as_ptr()) } [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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/ir/string.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | c_string!(name).as_ptr(), [INFO] [stdout] | ^^^^^^ this pointer will be invalid [INFO] [stdout] | [INFO] [stdout] ::: src/macros/mod.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | crate::CString::new($w).unwrap() [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: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.30s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: semver-parser v0.10.1 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "a1b2ead4a8d07f27b168b9c6681400b4b5c90ac972a13413025f41743c13e325", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a1b2ead4a8d07f27b168b9c6681400b4b5c90ac972a13413025f41743c13e325", kill_on_drop: false }` [INFO] [stdout] a1b2ead4a8d07f27b168b9c6681400b4b5c90ac972a13413025f41743c13e325