[INFO] cloning repository https://github.com/nicolayro/nit
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nicolayro/nit" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicolayro%2Fnit", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicolayro%2Fnit'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] bda49ef888e39c31e4d6e166747a3b088a6f13d4
[INFO] checking nicolayro/nit against try#04ea1e1f1a12cfa912c228ca278237d92d0bb6df for pr-148477-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnicolayro%2Fnit" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/nicolayro/nit
[INFO] finished tweaking git repo https://github.com/nicolayro/nit
[INFO] tweaked toml for git repo https://github.com/nicolayro/nit written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/nicolayro/nit on toolchain 04ea1e1f1a12cfa912c228ca278237d92d0bb6df
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/nicolayro/nit 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" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 9ecfbbe90846486b9bb756278a5cbae258a88b0f1e2619a0763cb76cc770a311
[INFO] running `Command { std: "docker" "start" "-a" "9ecfbbe90846486b9bb756278a5cbae258a88b0f1e2619a0763cb76cc770a311", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "9ecfbbe90846486b9bb756278a5cbae258a88b0f1e2619a0763cb76cc770a311", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9ecfbbe90846486b9bb756278a5cbae258a88b0f1e2619a0763cb76cc770a311", kill_on_drop: false }`
[INFO] [stdout] 9ecfbbe90846486b9bb756278a5cbae258a88b0f1e2619a0763cb76cc770a311
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] c590558f17dac4ad22c2b2a5dcb6ac715f2943168934085d57831f0b6aef3994
[INFO] running `Command { std: "docker" "start" "-a" "c590558f17dac4ad22c2b2a5dcb6ac715f2943168934085d57831f0b6aef3994", kill_on_drop: false }`
[INFO] [stderr]    Compiling generic-array v0.14.9
[INFO] [stderr]    Compiling find-msvc-tools v0.1.4
[INFO] [stderr]     Checking chrono v0.4.42
[INFO] [stderr]    Compiling cc v1.2.43
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking sha1 v0.10.6
[INFO] [stderr]    Compiling libz-sys v1.1.22
[INFO] [stderr]     Checking flate2 v1.1.5
[INFO] [stderr]     Checking nit v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `flate2::write::DeflateEncoder`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use flate2::write::DeflateEncoder;
[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: `flate2::write::DeflateEncoder`
[INFO] [stdout]   --> src/main.rs:17:5
[INFO] [stdout]    |
[INFO] [stdout] 17 | use flate2::write::DeflateEncoder;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:81:9
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let mut decoded = &decompress(content).unwrap()[..];
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 |             Err(e) => panic!("ERROR: Invalid hash '{}'", hash)
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:81:9
[INFO] [stdout]    |
[INFO] [stdout] 81 |     let mut decoded = &decompress(content).unwrap()[..];
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]    --> src/main.rs:123:17
[INFO] [stdout]     |
[INFO] [stdout] 123 |             Err(e) => panic!("ERROR: Invalid hash '{}'", hash)
[INFO] [stdout]     |                 ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated functions `from_hex` and `from_string` are never used
[INFO] [stdout]    --> src/main.rs:114:8
[INFO] [stdout]     |
[INFO] [stdout] 113 | impl Hash {
[INFO] [stdout]     | --------- associated functions in this implementation
[INFO] [stdout] 114 |     fn from_hex(hash: &str) -> Self {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 129 |     fn from_string(input: String) -> Self {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Commit` is never constructed
[INFO] [stdout]    --> src/main.rs:152:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | enum ObjectKind {
[INFO] [stdout]     |      ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 152 |     Commit = 0
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ObjectKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hash_object` is never used
[INFO] [stdout]    --> src/main.rs:178:4
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn hash_object(object_type: ObjectKind, content: Vec<u8>) -> Hash {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hash_commit` is never used
[INFO] [stdout]    --> src/main.rs:197:4
[INFO] [stdout]     |
[INFO] [stdout] 197 | fn hash_commit(content: Vec<u8>) -> Hash {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress` is never used
[INFO] [stdout]    --> src/main.rs:239:4
[INFO] [stdout]     |
[INFO] [stdout] 239 | fn compress(bytes: Vec<u8>) -> io::Result<Vec<u8>> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `timestamp_to_date` is never used
[INFO] [stdout]    --> src/main.rs:252:4
[INFO] [stdout]     |
[INFO] [stdout] 252 | fn timestamp_to_date(seconds: u32, nanoseconds: u32) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `write_tree` is never used
[INFO] [stdout]    --> src/main.rs:566:8
[INFO] [stdout]     |
[INFO] [stdout] 545 | impl Tree {
[INFO] [stdout]     | --------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 566 |     fn write_tree(&self) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `as_bytes` is never used
[INFO] [stdout]    --> src/main.rs:611:8
[INFO] [stdout]     |
[INFO] [stdout] 575 | impl TreeEntry {
[INFO] [stdout]     | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 611 |     fn as_bytes(&self) -> Vec<u8> {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple associated functions are never used
[INFO] [stdout]    --> src/main.rs:670:8
[INFO] [stdout]     |
[INFO] [stdout] 652 | impl Commit {
[INFO] [stdout]     | ----------- associated functions in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 670 |     fn read(bytes: &mut &[u8]) -> Option<Commit> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] ...
[INFO] [stdout] 696 |     fn read_header(bytes: &mut &[u8]) {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 702 |     fn read_tree(tree: &str) -> Hash{
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 707 |     fn read_parent(parent: &str) -> Hash{
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 712 |     fn read_author(author: &str) -> Stamp {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 716 |     fn read_committer(committer: &str) -> Stamp {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 720 |     fn take_stamp(stamp: &str) -> Stamp {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 |     index.write_all(&index_bytes);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let _ = index.write_all(&index_bytes);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/main.rs:83:39
[INFO] [stdout]    |
[INFO] [stdout] 83 |     let tree = Tree::read(&mut decoded.clone());
[INFO] [stdout]    |                                       ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:897:13
[INFO] [stdout]     |
[INFO] [stdout] 897 |         let mut decoded = &decompress(content).unwrap()[..];
[INFO] [stdout]     |             ----^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Commit` is never constructed
[INFO] [stdout]    --> src/main.rs:152:5
[INFO] [stdout]     |
[INFO] [stdout] 149 | enum ObjectKind {
[INFO] [stdout]     |      ---------- variant in this enum
[INFO] [stdout] ...
[INFO] [stdout] 152 |     Commit = 0
[INFO] [stdout]     |     ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `ObjectKind` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hash_object` is never used
[INFO] [stdout]    --> src/main.rs:178:4
[INFO] [stdout]     |
[INFO] [stdout] 178 | fn hash_object(object_type: ObjectKind, content: Vec<u8>) -> Hash {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `hash_commit` is never used
[INFO] [stdout]    --> src/main.rs:197:4
[INFO] [stdout]     |
[INFO] [stdout] 197 | fn hash_commit(content: Vec<u8>) -> Hash {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `compress` is never used
[INFO] [stdout]    --> src/main.rs:239:4
[INFO] [stdout]     |
[INFO] [stdout] 239 | fn compress(bytes: Vec<u8>) -> io::Result<Vec<u8>> {
[INFO] [stdout]     |    ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `timestamp_to_date` is never used
[INFO] [stdout]    --> src/main.rs:252:4
[INFO] [stdout]     |
[INFO] [stdout] 252 | fn timestamp_to_date(seconds: u32, nanoseconds: u32) -> String {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `read_parent` is never used
[INFO] [stdout]    --> src/main.rs:707:8
[INFO] [stdout]     |
[INFO] [stdout] 652 | impl Commit {
[INFO] [stdout]     | ----------- associated function in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 707 |     fn read_parent(parent: &str) -> Hash{
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused `Result` that must be used
[INFO] [stdout]   --> src/main.rs:59:5
[INFO] [stdout]    |
[INFO] [stdout] 59 |     index.write_all(&index_bytes);
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `Result` may be an `Err` variant, which should be handled
[INFO] [stdout]    = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 59 |     let _ = index.write_all(&index_bytes);
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing
[INFO] [stdout]   --> src/main.rs:83:39
[INFO] [stdout]    |
[INFO] [stdout] 83 |     let tree = Tree::read(&mut decoded.clone());
[INFO] [stdout]    |                                       ^^^^^^^^ help: remove this redundant call
[INFO] [stdout]    |
[INFO] [stdout]    = note: the type `[u8]` does not implement `Clone`, so calling `clone` on `&[u8]` copies the reference, which does not do anything and can be removed
[INFO] [stdout]    = note: `#[warn(noop_method_call)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.72s
[INFO] running `Command { std: "docker" "inspect" "c590558f17dac4ad22c2b2a5dcb6ac715f2943168934085d57831f0b6aef3994", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c590558f17dac4ad22c2b2a5dcb6ac715f2943168934085d57831f0b6aef3994", kill_on_drop: false }`
[INFO] [stdout] c590558f17dac4ad22c2b2a5dcb6ac715f2943168934085d57831f0b6aef3994
