[INFO] cloning repository https://github.com/Phosphorus15/ruda [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Phosphorus15/ruda" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1634aa427e15c4eec03770c8508690618f5b882e [INFO] checking Phosphorus15/ruda/1634aa427e15c4eec03770c8508690618f5b882e against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Phosphorus15/ruda on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Phosphorus15/ruda [INFO] finished tweaking git repo https://github.com/Phosphorus15/ruda [INFO] tweaked toml for git repo https://github.com/Phosphorus15/ruda written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Phosphorus15/ruda 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded pest v2.1.1 [INFO] [stderr] Downloaded semver-parser v0.6.2 [INFO] [stderr] Downloaded pest_generator v2.1.0 [INFO] [stderr] Downloaded pest_meta v2.1.1 [INFO] [stderr] Downloaded semver v0.4.1 [INFO] [stderr] Downloaded llvm-sys v38.2.0 [INFO] [stderr] Downloaded strsim v0.9.2 [INFO] [stderr] Downloaded docopt v1.1.0 [INFO] [stderr] Downloaded lazy_static v0.2.11 [INFO] [stderr] Downloaded ucd-trie v0.1.2 [INFO] [stderr] Downloaded sha-1 v0.8.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 405b941c7646b9361a836f2f35b5b51a7ffd05d055779ac9bff990764ab874a6 [INFO] running `Command { std: "docker" "start" "-a" "405b941c7646b9361a836f2f35b5b51a7ffd05d055779ac9bff990764ab874a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "405b941c7646b9361a836f2f35b5b51a7ffd05d055779ac9bff990764ab874a6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "405b941c7646b9361a836f2f35b5b51a7ffd05d055779ac9bff990764ab874a6", kill_on_drop: false }` [INFO] [stdout] 405b941c7646b9361a836f2f35b5b51a7ffd05d055779ac9bff990764ab874a6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 40e00636a5659fed849caadfded701304224f1271a7bd09174cb16121f43b7c0 [INFO] running `Command { std: "docker" "start" "-a" "40e00636a5659fed849caadfded701304224f1271a7bd09174cb16121f43b7c0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Compiling winapi v0.2.8 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking regex-syntax v0.6.12 [INFO] [stderr] Checking strsim v0.9.2 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling pest v2.1.1 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling thread_local v0.2.7 [INFO] [stderr] Compiling aho-corasick v0.5.3 [INFO] [stderr] Compiling regex v0.1.80 [INFO] [stderr] Compiling pest_meta v2.1.1 [INFO] [stderr] Checking regex v1.3.1 [INFO] [stderr] Compiling semver-parser v0.6.2 [INFO] [stderr] Compiling semver v0.4.1 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling llvm-sys v38.2.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Checking docopt v1.1.0 [INFO] [stderr] Checking ruda v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `llvm::link_time_optimizer::llvm_create_optimizer` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use llvm::link_time_optimizer::llvm_create_optimizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `llvm::link_time_optimizer::llvm_create_optimizer` [INFO] [stdout] --> src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 27 | use llvm::link_time_optimizer::llvm_create_optimizer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/main.rs:155:46 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | fn walk_if_cond_branch(body: RuleList) -> TypedExpr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `body` [INFO] [stdout] --> src/parser.rs:191:24 [INFO] [stdout] | [INFO] [stdout] 191 | fn walk_if_cond_branch(body: RuleList) -> TypedExpr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `target_ref` is never read [INFO] [stdout] --> src/llvm_gen.rs:157:25 [INFO] [stdout] | [INFO] [stdout] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `ret_val` is never read [INFO] [stdout] --> src/llvm_gen.rs:158:25 [INFO] [stdout] | [INFO] [stdout] 158 | let mut ret_val = TyName::Unit; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/llvm_gen.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | let func = selected.into_iter().take(1).find(|v| true).unwrap_or_else(|| panic!("Identifier not in scope: `{}`", ident)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/llvm_gen.rs:181:63 [INFO] [stdout] | [INFO] [stdout] 181 | let func = selected.into_iter().take(1).find(|v| true).unwrap_or_else(|| panic!("Identifier not in scope: `{}`", ident)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/llvm_gen.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let mut params = typed_params.into_iter().map(|v| v.0).collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/llvm_gen.rs:209:9 [INFO] [stdout] | [INFO] [stdout] 209 | let mut params = typed_params.into_iter().map(|v| v.0).collect::>(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pool.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut this = unsafe { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/pool.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut this = unsafe { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut file_list = files.iter().map(|f| std::path::PathBuf::from(&f[..])); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let mut file_list = files.iter().map(|f| std::path::PathBuf::from(&f[..])); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut i8` does not permit being left uninitialized [INFO] [stdout] --> src/main.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `*mut i8` does not permit being left uninitialized [INFO] [stdout] --> src/main.rs:155:36 [INFO] [stdout] | [INFO] [stdout] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: raw pointers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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] = 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/llvm_gen.rs:241:76 [INFO] [stdout] | [INFO] [stdout] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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] = 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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:258:80 [INFO] [stdout] | [INFO] [stdout] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:267:84 [INFO] [stdout] | [INFO] [stdout] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_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/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_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/llvm_gen.rs:281:54 [INFO] [stdout] | [INFO] [stdout] 281 | LLVMSetValueName(val, param_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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/pool.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | &mut *(self as *const Self as *mut Self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: getting the inner pointer of a temporary `CString` [INFO] [stdout] --> src/llvm_gen.rs:328:58 [INFO] [stdout] | [INFO] [stdout] 328 | LLVMSetValueName(val, param_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/llvm_gen.rs:348:65 [INFO] [stdout] | [INFO] [stdout] 348 | }, [].as_mut_ptr(), 0, cstring.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: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/pool.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | &mut *(self as *const Self as *mut Self) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 16 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ruda` (bin "ruda") due to 2 previous errors; 16 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ruda` (bin "ruda" test) due to 2 previous errors; 16 warnings emitted [INFO] running `Command { std: "docker" "inspect" "40e00636a5659fed849caadfded701304224f1271a7bd09174cb16121f43b7c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "40e00636a5659fed849caadfded701304224f1271a7bd09174cb16121f43b7c0", kill_on_drop: false }` [INFO] [stdout] 40e00636a5659fed849caadfded701304224f1271a7bd09174cb16121f43b7c0