[INFO] cloning repository https://github.com/udayj/headr
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/udayj/headr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudayj%2Fheadr", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudayj%2Fheadr'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] f9fe320bbd9a375e009efe5cb631d5644a7d9530
[INFO] checking udayj/headr against master#1b8f2e46e14b08208a53585570edd9206374aae8 for pr-155418-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fudayj%2Fheadr" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/udayj/headr
[INFO] finished tweaking git repo https://github.com/udayj/headr
[INFO] tweaked toml for git repo https://github.com/udayj/headr written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/udayj/headr on toolchain 1b8f2e46e14b08208a53585570edd9206374aae8
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/udayj/headr 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" "+1b8f2e46e14b08208a53585570edd9206374aae8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded assert_cmd v2.0.8
[INFO] [stderr]   Downloaded predicates-core v1.0.5
[INFO] [stderr]   Downloaded predicates-tree v1.0.7
[INFO] [stderr]   Downloaded regex v1.7.1
[INFO] [stderr]   Downloaded bstr v1.3.0
[INFO] [stderr]   Downloaded termtree v0.4.0
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 59d4265db430290284acdc18d90bcd258e0b9e3ce4d04ded9aa770d0ff9cf57b
[INFO] running `Command { std: "docker" "start" "-a" "59d4265db430290284acdc18d90bcd258e0b9e3ce4d04ded9aa770d0ff9cf57b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "59d4265db430290284acdc18d90bcd258e0b9e3ce4d04ded9aa770d0ff9cf57b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "59d4265db430290284acdc18d90bcd258e0b9e3ce4d04ded9aa770d0ff9cf57b", kill_on_drop: false }`
[INFO] [stdout] 59d4265db430290284acdc18d90bcd258e0b9e3ce4d04ded9aa770d0ff9cf57b
[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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+1b8f2e46e14b08208a53585570edd9206374aae8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9594d51225a75a5032410749a2005624d56291c6e00bbfab667c25eeeddb04a2
[INFO] running `Command { std: "docker" "start" "-a" "9594d51225a75a5032410749a2005624d56291c6e00bbfab667c25eeeddb04a2", kill_on_drop: false }`
[INFO] [stderr]    Compiling libc v0.2.139
[INFO] [stderr]    Compiling memchr v2.5.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]     Checking unicode-width v0.1.10
[INFO] [stderr]     Checking regex-syntax v0.6.28
[INFO] [stderr]     Checking either v1.8.1
[INFO] [stderr]    Compiling doc-comment v0.3.3
[INFO] [stderr]     Checking predicates-core v1.0.5
[INFO] [stderr]     Checking strsim v0.8.0
[INFO] [stderr]     Checking normalize-line-endings v0.3.0
[INFO] [stderr]     Checking ppv-lite86 v0.2.17
[INFO] [stderr]     Checking termtree v0.4.0
[INFO] [stderr]     Checking difflib v0.4.0
[INFO] [stderr]     Checking once_cell v1.17.1
[INFO] [stderr]     Checking regex-automata v0.1.10
[INFO] [stderr]     Checking textwrap v0.11.0
[INFO] [stderr]     Checking predicates-tree v1.0.7
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]    Compiling num-traits v0.2.15
[INFO] [stderr]     Checking aho-corasick v0.7.20
[INFO] [stderr]     Checking bstr v1.3.0
[INFO] [stderr]     Checking getrandom v0.2.8
[INFO] [stderr]     Checking atty v0.2.14
[INFO] [stderr]     Checking wait-timeout v0.2.0
[INFO] [stderr]     Checking clap v2.34.0
[INFO] [stderr]     Checking rand_core v0.6.4
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking float-cmp v0.9.0
[INFO] [stderr]     Checking regex v1.7.1
[INFO] [stderr]     Checking headr v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Take`
[INFO] [stdout]  --> src/lib.rs:4:40
[INFO] [stdout]   |
[INFO] [stdout] 4 | use std::io::{self,BufRead, BufReader, Take};
[INFO] [stdout]   |                                        ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::any::Any`
[INFO] [stdout]  --> src/lib.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::any::Any;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `take` method cannot be invoked on a trait object
[INFO] [stdout]   --> src/lib.rs:31:49
[INFO] [stdout]    |
[INFO] [stdout] 31 |                     let mut handle= (&mut file).take(num_bytes as u64);
[INFO] [stdout]    |                                                 ^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/1b8f2e46e14b08208a53585570edd9206374aae8/library/std/src/io/mod.rs:1223:14
[INFO] [stdout]    |
[INFO] [stdout]    = note: this has a `Sized` requirement
[INFO] [stdout] help: another candidate was found in the following trait, perhaps add a `use` for it:
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: the `bytes` method cannot be invoked on a trait object
[INFO] [stdout]   --> src/lib.rs:34:26
[INFO] [stdout]    |
[INFO] [stdout] 34 |                     file.bytes().take(num_bytes).collect();
[INFO] [stdout]    |                          ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]   --> /rustc/1b8f2e46e14b08208a53585570edd9206374aae8/library/std/src/io/mod.rs:1146:14
[INFO] [stdout]    |
[INFO] [stdout]    = note: this has a `Sized` requirement
[INFO] [stdout] help: another candidate was found in the following trait, perhaps add a `use` for it:
[INFO] [stdout]    |
[INFO] [stdout]  1 + use std::io::Read;
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking predicates v2.1.5
[INFO] [stderr] error: could not compile `headr` (lib) due to 2 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "9594d51225a75a5032410749a2005624d56291c6e00bbfab667c25eeeddb04a2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9594d51225a75a5032410749a2005624d56291c6e00bbfab667c25eeeddb04a2", kill_on_drop: false }`
[INFO] [stdout] 9594d51225a75a5032410749a2005624d56291c6e00bbfab667c25eeeddb04a2
