[INFO] cloning repository https://github.com/cjkenn/kolga [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/cjkenn/kolga" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjkenn%2Fkolga", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjkenn%2Fkolga'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7997d30a823e26ac2e79a6b0f5a42ce4388b28ac [INFO] checking cjkenn/kolga against master#d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 for pr-137268 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcjkenn%2Fkolga" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/cjkenn/kolga on toolchain d2eadb7a94ef8c9deb5137695df33cd1fc5aee92 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/cjkenn/kolga [INFO] finished tweaking git repo https://github.com/cjkenn/kolga [INFO] tweaked toml for git repo https://github.com/cjkenn/kolga written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/cjkenn/kolga 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" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded os_str_bytes v2.3.1 [INFO] [stderr] Downloaded clap_derive v3.0.0-beta.1 [INFO] [stderr] Downloaded llvm-sys v100.2.0 [INFO] [stderr] Downloaded clap v3.0.0-beta.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 85848e042a44c972149cb4f9ecf2ff1760fde7bded8952e136306743f1daf33d [INFO] running `Command { std: "docker" "start" "-a" "85848e042a44c972149cb4f9ecf2ff1760fde7bded8952e136306743f1daf33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "85848e042a44c972149cb4f9ecf2ff1760fde7bded8952e136306743f1daf33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "85848e042a44c972149cb4f9ecf2ff1760fde7bded8952e136306743f1daf33d", kill_on_drop: false }` [INFO] [stdout] 85848e042a44c972149cb4f9ecf2ff1760fde7bded8952e136306743f1daf33d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+d2eadb7a94ef8c9deb5137695df33cd1fc5aee92" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 29a695d6138349362cf88fdbe844d65cf6a73d7c985a38cf0b51744ebc918915 [INFO] running `Command { std: "docker" "start" "-a" "29a695d6138349362cf88fdbe844d65cf6a73d7c985a38cf0b51744ebc918915", kill_on_drop: false }` [INFO] [stderr] Checking kolgac_errors v0.1.0 (/opt/rustwide/workdir/kolgac_errors) [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling proc-macro2 v1.0.12 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling lazy_static v1.0.2 [INFO] [stderr] Compiling libc v0.2.70 [INFO] [stderr] Compiling version_check v0.9.1 [INFO] [stderr] Compiling syn v1.0.21 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling cc v1.0.59 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking unicode-width v0.1.7 [INFO] [stderr] Compiling thread_local v1.0.1 [INFO] [stderr] Checking os_str_bytes v2.3.1 [INFO] [stderr] Checking kolgac v0.1.0 (/opt/rustwide/workdir/kolgac) [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking termcolor v1.1.0 [INFO] [stderr] Checking strsim v0.10.0 [INFO] [stderr] Compiling proc-macro-error-attr v0.4.12 [INFO] [stderr] Compiling proc-macro-error v0.4.12 [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> kolgac/src/symtab.rs:103:15 [INFO] [stdout] | [INFO] [stdout] 103 | while curr >= 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking kolgac_ir v0.1.0 (/opt/rustwide/workdir/kolgac_ir) [INFO] [stderr] Compiling indexmap v1.3.2 [INFO] [stderr] Checking kolgac_types v0.1.0 (/opt/rustwide/workdir/kolgac_types) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> kolgac_ir/src/irgen.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 22 | impl<'t> IRGen<'t> { [INFO] [stdout] | -- lifetime `'t` declared here [INFO] [stdout] 23 | pub fn new(ast: &'t Ast) -> IRGen { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `line` and `pos` are never read [INFO] [stdout] --> kolgac/tests/parser_test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 10 | struct ParseExpect { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 11 | pub is_pass: bool, [INFO] [stdout] 12 | pub line: usize, [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | pub pos: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling aho-corasick v0.7.13 [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> kolgac_ir/src/irgen.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 22 | impl<'t> IRGen<'t> { [INFO] [stdout] | -- lifetime `'t` declared here [INFO] [stdout] 23 | pub fn new(ast: &'t Ast) -> IRGen { [INFO] [stdout] | ^^^^^ this elided lifetime gets resolved as `'t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> kolgac/src/symtab.rs:103:15 [INFO] [stdout] | [INFO] [stdout] 103 | while curr >= 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling quote v1.0.5 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling llvm-sys v100.2.0 [INFO] [stderr] Compiling syn-mid v0.5.0 [INFO] [stderr] Checking kolgac_llvm v0.1.0 (/opt/rustwide/workdir/kolgac_llvm) [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `Vec<*mut LLVMValue>` will be dropped [INFO] [stdout] --> kolgac_llvm/src/llvm.rs:777:86 [INFO] [stdout] | [INFO] [stdout] 777 | let llvm_params: *mut LLVMValueRef = Vec::with_capacity(param_tys.len()).as_mut_ptr(); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut LLVMValue>` 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_mut_ptr` the `Vec<*mut LLVMValue>` 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: you must make sure that the variable you bind the `Vec<*mut LLVMValue>` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec<*mut LLVMValue>` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> kolgac_llvm/src/obj.rs:49:80 [INFO] [stdout] | [INFO] [stdout] 49 | let mut err_str = CString::new("writing obj file failed").unwrap().as_ptr() as *mut _; [INFO] [stdout] | ------------------------------------------------ ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> kolgac_llvm/src/valtab.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | while curr >= 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `Vec<*mut LLVMValue>` will be dropped [INFO] [stdout] --> kolgac_llvm/src/llvm.rs:777:86 [INFO] [stdout] | [INFO] [stdout] 777 | let llvm_params: *mut LLVMValueRef = Vec::with_capacity(param_tys.len()).as_mut_ptr(); [INFO] [stdout] | ----------------------------------- ^^^^^^^^^^ this pointer will immediately be invalid [INFO] [stdout] | | [INFO] [stdout] | this `Vec<*mut LLVMValue>` 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_mut_ptr` the `Vec<*mut LLVMValue>` 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: you must make sure that the variable you bind the `Vec<*mut LLVMValue>` to lives at least as long as the pointer returned by the call to `as_mut_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `Vec<*mut LLVMValue>` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] = note: `#[warn(dangling_pointers_from_temporaries)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: a dangling pointer will be produced because the temporary `CString` will be dropped [INFO] [stdout] --> kolgac_llvm/src/obj.rs:49:80 [INFO] [stdout] | [INFO] [stdout] 49 | let mut err_str = CString::new("writing obj file failed").unwrap().as_ptr() as *mut _; [INFO] [stdout] | ------------------------------------------------ ^^^^^^ this pointer will immediately 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: you must make sure that the variable you bind the `CString` to lives at least as long as the pointer returned by the call to `as_ptr` [INFO] [stdout] = help: in particular, if this pointer is returned from the current function, binding the `CString` inside the function will not suffice [INFO] [stdout] = help: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: comparison is useless due to type limits [INFO] [stdout] --> kolgac_llvm/src/valtab.rs:39:15 [INFO] [stdout] | [INFO] [stdout] 39 | while curr >= 0 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> kolgac_llvm/tests/codegen_test.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn run(input_filename: &str, output_filename: &str, expected_filename: &str) { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `diff_files` is never used [INFO] [stdout] --> kolgac_llvm/tests/codegen_test.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn diff_files(filename1: String, filename2: String) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling clap_derive v3.0.0-beta.1 [INFO] [stderr] Checking clap v3.0.0-beta.1 [INFO] [stderr] Checking kolgac_driver v0.1.0 (/opt/rustwide/workdir/kolgac_driver) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.96s [INFO] running `Command { std: "docker" "inspect" "29a695d6138349362cf88fdbe844d65cf6a73d7c985a38cf0b51744ebc918915", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29a695d6138349362cf88fdbe844d65cf6a73d7c985a38cf0b51744ebc918915", kill_on_drop: false }` [INFO] [stdout] 29a695d6138349362cf88fdbe844d65cf6a73d7c985a38cf0b51744ebc918915