[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] testing Phosphorus15/ruda against beta-2022-02-22 for beta-1.60-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FPhosphorus15%2Fruda" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Phosphorus15/ruda on toolchain beta-2022-02-22 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "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-11/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-02-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded docopt v1.1.0 [INFO] [stderr] Downloaded strsim v0.9.2 [INFO] [stderr] Downloaded pest_meta v2.1.1 [INFO] [stderr] Downloaded pest v2.1.1 [INFO] [stderr] Downloaded semver-parser v0.6.2 [INFO] [stderr] Downloaded semver v0.4.1 [INFO] [stderr] Downloaded llvm-sys v38.2.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fa7f0387277c0ff8c01c0280e6ab588d6786a6558a0abf13ccc6919deced49c0 [INFO] running `Command { std: "docker" "start" "-a" "fa7f0387277c0ff8c01c0280e6ab588d6786a6558a0abf13ccc6919deced49c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa7f0387277c0ff8c01c0280e6ab588d6786a6558a0abf13ccc6919deced49c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa7f0387277c0ff8c01c0280e6ab588d6786a6558a0abf13ccc6919deced49c0", kill_on_drop: false }` [INFO] [stdout] fa7f0387277c0ff8c01c0280e6ab588d6786a6558a0abf13ccc6919deced49c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ff905e3bf9a5c5be9ec609019c194a8c20b37740817ddb9e3eac6f69200c008f [INFO] running `Command { std: "docker" "start" "-a" "ff905e3bf9a5c5be9ec609019c194a8c20b37740817ddb9e3eac6f69200c008f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling regex-syntax v0.3.9 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling utf8-ranges v0.1.3 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling syn v1.0.5 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling ucd-trie v0.1.2 [INFO] [stderr] Compiling maplit v1.0.2 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Compiling serde v1.0.101 [INFO] [stderr] Compiling regex-syntax v0.6.12 [INFO] [stderr] Compiling bitflags v0.7.0 [INFO] [stderr] Compiling strsim v0.9.2 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling pest v2.1.1 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling aho-corasick v0.7.6 [INFO] [stderr] Compiling thread-id v2.0.0 [INFO] [stderr] Compiling memchr v0.1.11 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling pest_meta v2.1.1 [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 regex v1.3.1 [INFO] [stderr] Compiling semver-parser v0.6.2 [INFO] [stderr] Compiling pest_generator v2.1.0 [INFO] [stderr] Compiling semver v0.4.1 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling llvm-sys v38.2.0 [INFO] [stderr] Compiling serde_derive v1.0.101 [INFO] [stderr] Compiling docopt v1.1.0 [INFO] [stderr] Compiling 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: 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: `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: 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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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/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: 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: `#[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/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: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: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] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 19.95s [INFO] running `Command { std: "docker" "inspect" "ff905e3bf9a5c5be9ec609019c194a8c20b37740817ddb9e3eac6f69200c008f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ff905e3bf9a5c5be9ec609019c194a8c20b37740817ddb9e3eac6f69200c008f", kill_on_drop: false }` [INFO] [stdout] ff905e3bf9a5c5be9ec609019c194a8c20b37740817ddb9e3eac6f69200c008f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 48f15542d27c270ad83a92bfe8ce0f43781a5de174d65b174d61741e38ae7bad [INFO] running `Command { std: "docker" "start" "-a" "48f15542d27c270ad83a92bfe8ce0f43781a5de174d65b174d61741e38ae7bad", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling 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: 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: `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: 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] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [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: 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/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: 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: `#[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/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: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: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] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.35s [INFO] running `Command { std: "docker" "inspect" "48f15542d27c270ad83a92bfe8ce0f43781a5de174d65b174d61741e38ae7bad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "48f15542d27c270ad83a92bfe8ce0f43781a5de174d65b174d61741e38ae7bad", kill_on_drop: false }` [INFO] [stdout] 48f15542d27c270ad83a92bfe8ce0f43781a5de174d65b174d61741e38ae7bad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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=warn" "-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:0cd99ca24d8e8c98e67c542213511d985b8778b5bdcbb160e038429496686047" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-02-22" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 32593bdbacc43c6eed6e384407a307adde738c7b8aa3fa022799443c2aa38c07 [INFO] running `Command { std: "docker" "start" "-a" "32593bdbacc43c6eed6e384407a307adde738c7b8aa3fa022799443c2aa38c07", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `llvm::link_time_optimizer::llvm_create_optimizer` [INFO] [stderr] --> src/main.rs:27:5 [INFO] [stderr] | [INFO] [stderr] 27 | use llvm::link_time_optimizer::llvm_create_optimizer; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/main.rs:155:46 [INFO] [stderr] | [INFO] [stderr] 155 | let mut ptr: *mut c_char = std::mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `body` [INFO] [stderr] --> src/parser.rs:191:24 [INFO] [stderr] | [INFO] [stderr] 191 | fn walk_if_cond_branch(body: RuleList) -> TypedExpr { [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_body` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `v` [INFO] [stderr] --> src/llvm_gen.rs:181:63 [INFO] [stderr] | [INFO] [stderr] 181 | let func = selected.into_iter().take(1).find(|v| true).unwrap_or_else(|| panic!("Identifier not in scope: `{}`", ident)); [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stderr] [INFO] [stderr] warning: value assigned to `target_ref` is never read [INFO] [stderr] --> src/llvm_gen.rs:157:25 [INFO] [stderr] | [INFO] [stderr] 157 | let mut target_ref: LLVMValueRef = null_mut(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: value assigned to `ret_val` is never read [INFO] [stderr] --> src/llvm_gen.rs:158:25 [INFO] [stderr] | [INFO] [stderr] 158 | let mut ret_val = TyName::Unit; [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/llvm_gen.rs:209:9 [INFO] [stderr] | [INFO] [stderr] 209 | let mut params = typed_params.into_iter().map(|v| v.0).collect::>(); [INFO] [stderr] | ----^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/pool.rs:16:13 [INFO] [stderr] | [INFO] [stderr] 16 | let mut this = unsafe { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/main.rs:68:9 [INFO] [stderr] | [INFO] [stderr] 68 | let mut file_list = files.iter().map(|f| std::path::PathBuf::from(&f[..])); [INFO] [stderr] | ----^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:241:76 [INFO] [stderr] | [INFO] [stderr] 241 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [INFO] [stderr] | ------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(temporary_cstring_as_ptr)]` on by default [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:258:80 [INFO] [stderr] | [INFO] [stderr] 258 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [INFO] [stderr] | ------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:267:84 [INFO] [stderr] | [INFO] [stderr] 267 | let func_obj = unsafe { LLVMAddFunction(module, ident_str.unwrap().as_ptr(), func) }; [INFO] [stderr] | ------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:281:54 [INFO] [stderr] | [INFO] [stderr] 281 | LLVMSetValueName(val, param_str.unwrap().as_ptr()); [INFO] [stderr] | ------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:328:58 [INFO] [stderr] | [INFO] [stderr] 328 | LLVMSetValueName(val, param_str.unwrap().as_ptr()); [INFO] [stderr] | ------------------ ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: getting the inner pointer of a temporary `CString` [INFO] [stderr] --> src/llvm_gen.rs:348:65 [INFO] [stderr] | [INFO] [stderr] 348 | }, [].as_mut_ptr(), 0, cstring.unwrap().as_ptr()); [INFO] [stderr] | ---------------- ^^^^^^ this pointer will be invalid [INFO] [stderr] | | [INFO] [stderr] | this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime [INFO] [stderr] | [INFO] [stderr] = 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] [stderr] = help: for more information, see https://doc.rust-lang.org/reference/destructors.html [INFO] [stderr] [INFO] [stderr] warning: `ruda` (bin "ruda" test) generated 15 warnings [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/ruda-c465c3b1ea09f5bf) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "32593bdbacc43c6eed6e384407a307adde738c7b8aa3fa022799443c2aa38c07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32593bdbacc43c6eed6e384407a307adde738c7b8aa3fa022799443c2aa38c07", kill_on_drop: false }` [INFO] [stdout] 32593bdbacc43c6eed6e384407a307adde738c7b8aa3fa022799443c2aa38c07