[INFO] cloning repository https://github.com/bookinstock/rust_example
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bookinstock/rust_example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c83d144f2d500cd60a59da5019b4bc5ca7d2d36f
[INFO] checking bookinstock/rust_example against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbookinstock%2Frust_example" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/bookinstock/rust_example
[INFO] finished tweaking git repo https://github.com/bookinstock/rust_example
[INFO] tweaked toml for git repo https://github.com/bookinstock/rust_example written to /workspace/builds/worker-3-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/bookinstock/rust_example on toolchain f70ee28831acc074c109afab32d287057c3eca46
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/bookinstock/rust_example 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c55c81f6d36dcaed8a06fb39ff33e77615e0c61265ea9c76efb7e369451619e1
[INFO] running `Command { std: "docker" "start" "-a" "c55c81f6d36dcaed8a06fb39ff33e77615e0c61265ea9c76efb7e369451619e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c55c81f6d36dcaed8a06fb39ff33e77615e0c61265ea9c76efb7e369451619e1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c55c81f6d36dcaed8a06fb39ff33e77615e0c61265ea9c76efb7e369451619e1", kill_on_drop: false }`
[INFO] [stdout] c55c81f6d36dcaed8a06fb39ff33e77615e0c61265ea9c76efb7e369451619e1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9092fc7af9063f49104808bb69aff45acfe2f21293201d53d8704090fabc2ca9
[INFO] running `Command { std: "docker" "start" "-a" "9092fc7af9063f49104808bb69aff45acfe2f21293201d53d8704090fabc2ca9", kill_on_drop: false }`
[INFO] [stderr]     Checking rust_example v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `futures`
[INFO] [stdout]   --> src/bin/async.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use futures::executor::block_on;
[INFO] [stdout]    |     ^^^^^^^ use of unresolved module or unlinked crate `futures`
[INFO] [stdout]    |
[INFO] [stdout]    = help: if you wanted to use a crate named `futures`, use `cargo add futures` to add it to your `Cargo.toml`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0601]: `main` function not found in crate `r#unsafe`
[INFO] [stdout]  --> src/bin/unsafe.rs:1:2
[INFO] [stdout]   |
[INFO] [stdout] 1 |
[INFO] [stdout]   | ^ consider adding a `main` function to `src/bin/unsafe.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused label
[INFO] [stdout]    --> src/bin/control_flow.rs:119:9
[INFO] [stdout]     |
[INFO] [stdout] 119 |         'inner: loop {
[INFO] [stdout]     |         ^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_labels)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0433`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_example` (bin "unsafe") due to 1 previous error
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `rust_example` (bin "async") due to 1 previous error
[INFO] [stdout] error[E0601]: `main` function not found in crate `other`
[INFO] [stdout]  --> src/bin/other.rs:1:2
[INFO] [stdout]   |
[INFO] [stdout] 1 |
[INFO] [stdout]   | ^ consider adding a `main` function to `src/bin/other.rs`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]    --> src/bin/control_flow.rs:125:9
[INFO] [stdout]     |
[INFO] [stdout] 122 |             break 'outer;
[INFO] [stdout]     |             ------------ any code following this expression is unreachable
[INFO] [stdout] ...
[INFO] [stdout] 125 |         println!("never reach");
[INFO] [stdout]     |         ^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout]     = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: path statement with no effect
[INFO] [stdout]   --> src/bin/expression.rs:18:5
[INFO] [stdout]    |
[INFO] [stdout] 18 |     x;
[INFO] [stdout]    |     ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(path_statements)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0601`.
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]   --> src/bin/expression.rs:19:5
[INFO] [stdout]    |
[INFO] [stdout] 19 |     x + 1;
[INFO] [stdout]    |     ^^^^^ the arithmetic operation produces a value
[INFO] [stdout]    |
[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] 19 |     let _ = x + 1;
[INFO] [stdout]    |     +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused arithmetic operation that must be used
[INFO] [stdout]   --> src/bin/expression.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 36 |         2 * x;
[INFO] [stdout]    |         ^^^^^ the arithmetic operation produces a value
[INFO] [stdout]    |
[INFO] [stdout] help: use `let _ = ...` to ignore the resulting value
[INFO] [stdout]    |
[INFO] [stdout] 36 |         let _ = 2 * x;
[INFO] [stdout]    |         +++++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `noisy_unused_variable`
[INFO] [stdout]   --> src/bin/var_binding.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let noisy_unused_variable = 2u32;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `rust_example` (bin "other") due to 1 previous error
[INFO] [stdout] warning: unused variable: `noisy_unused_variable`
[INFO] [stdout]   --> src/bin/var_binding.rs:26:9
[INFO] [stdout]    |
[INFO] [stdout] 26 |     let noisy_unused_variable = 2u32;
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused_variable`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_literal` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:113:4
[INFO] [stdout]     |
[INFO] [stdout] 113 | fn test_literal() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_array` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:115:4
[INFO] [stdout]     |
[INFO] [stdout] 115 | fn test_array() {}
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_enum` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:117:4
[INFO] [stdout]     |
[INFO] [stdout] 117 | fn test_enum() {}
[INFO] [stdout]     |    ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_stuct` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:119:4
[INFO] [stdout]     |
[INFO] [stdout] 119 | fn test_stuct() {}
[INFO] [stdout]     |    ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_variable` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:137:4
[INFO] [stdout]     |
[INFO] [stdout] 137 | fn test_variable() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_wildcard` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:139:4
[INFO] [stdout]     |
[INFO] [stdout] 139 | fn test_wildcard() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_placeholder` is never used
[INFO] [stdout]    --> src/bin/pattern_matching.rs:141:4
[INFO] [stdout]     |
[INFO] [stdout] 141 | fn test_placeholder() {}
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ttt` is never used
[INFO] [stdout]    --> src/bin/hello.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn ttt() {
[INFO] [stdout]     |    ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `f` is never used
[INFO] [stdout]    --> src/bin/hello.rs:120:4
[INFO] [stdout]     |
[INFO] [stdout] 120 | fn f() {
[INFO] [stdout]     |    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test` is never used
[INFO] [stdout]    --> src/bin/hello.rs:124:4
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn test() {
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `try_debug_trait` is never used
[INFO] [stdout]    --> src/bin/hello.rs:159:4
[INFO] [stdout]     |
[INFO] [stdout] 159 | fn try_debug_trait() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `red`, `green`, and `blue` are never read
[INFO] [stdout]    --> src/bin/hello.rs:243:9
[INFO] [stdout]     |
[INFO] [stdout] 242 |     struct Color {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 243 |         red: u8,
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 244 |         green: u8,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 245 |         blue: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `name` and `age` are never read
[INFO] [stdout]   --> src/bin/custom_type.rs:25:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | struct Person<'a> {
[INFO] [stdout]    |        ------ fields in this struct
[INFO] [stdout] 25 |     name: &'a str,
[INFO] [stdout]    |     ^^^^
[INFO] [stdout] 26 |     age: u8,
[INFO] [stdout]    |     ^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `Person` has a derived impl for the trait `Debug`, but this is 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: struct `Nil` is never constructed
[INFO] [stdout]   --> src/bin/custom_type.rs:30:8
[INFO] [stdout]    |
[INFO] [stdout] 30 | struct Nil;
[INFO] [stdout]    |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Rich` is never constructed
[INFO] [stdout]    --> src/bin/custom_type.rs:117:9
[INFO] [stdout]     |
[INFO] [stdout] 116 |     enum Status {
[INFO] [stdout]     |          ------ variant in this enum
[INFO] [stdout] 117 |         Rich,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variant `Soldier` is never constructed
[INFO] [stdout]    --> src/bin/custom_type.rs:123:9
[INFO] [stdout]     |
[INFO] [stdout] 121 |     enum Work {
[INFO] [stdout]     |          ---- variant in this enum
[INFO] [stdout] 122 |         Civilian,
[INFO] [stdout] 123 |         Soldier,
[INFO] [stdout]     |         ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vec2`
[INFO] [stdout]    --> src/bin/function.rs:391:9
[INFO] [stdout]     |
[INFO] [stdout] 391 |     let vec2 = vec![4, 5, 6];
[INFO] [stdout]     |         ^^^^ help: if this is intentional, prefix it with an underscore: `_vec2`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to `<[T; N] as IntoIterator>::into_iter` in Rust 2021
[INFO] [stdout]    --> src/bin/function.rs:431:16
[INFO] [stdout]     |
[INFO] [stdout] 431 |         array2.into_iter().find(|&&x| x == 2)
[INFO] [stdout]     |                ^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = warning: this changes meaning in Rust 2021
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/IntoIterator-for-arrays.html>
[INFO] [stdout]     = note: `#[warn(array_into_iter)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity
[INFO] [stdout]     |
[INFO] [stdout] 431 -         array2.into_iter().find(|&&x| x == 2)
[INFO] [stdout] 431 +         array2.iter().find(|&&x| x == 2)
[INFO] [stdout]     |
[INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value
[INFO] [stdout]     |
[INFO] [stdout] 431 -         array2.into_iter().find(|&&x| x == 2)
[INFO] [stdout] 431 +         IntoIterator::into_iter(array2).find(|&&x| x == 2)
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `ttt` is never used
[INFO] [stdout]    --> src/bin/hello.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn ttt() {
[INFO] [stdout]     |    ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `f` is never used
[INFO] [stdout]    --> src/bin/hello.rs:120:4
[INFO] [stdout]     |
[INFO] [stdout] 120 | fn f() {
[INFO] [stdout]     |    ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test` is never used
[INFO] [stdout]    --> src/bin/hello.rs:124:4
[INFO] [stdout]     |
[INFO] [stdout] 124 | fn test() {
[INFO] [stdout]     |    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `try_debug_trait` is never used
[INFO] [stdout]    --> src/bin/hello.rs:159:4
[INFO] [stdout]     |
[INFO] [stdout] 159 | fn try_debug_trait() {
[INFO] [stdout]     |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `red`, `green`, and `blue` are never read
[INFO] [stdout]    --> src/bin/hello.rs:243:9
[INFO] [stdout]     |
[INFO] [stdout] 242 |     struct Color {
[INFO] [stdout]     |            ----- fields in this struct
[INFO] [stdout] 243 |         red: u8,
[INFO] [stdout]     |         ^^^
[INFO] [stdout] 244 |         green: u8,
[INFO] [stdout]     |         ^^^^^
[INFO] [stdout] 245 |         blue: u8,
[INFO] [stdout]     |         ^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `Color` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] running `Command { std: "docker" "inspect" "9092fc7af9063f49104808bb69aff45acfe2f21293201d53d8704090fabc2ca9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9092fc7af9063f49104808bb69aff45acfe2f21293201d53d8704090fabc2ca9", kill_on_drop: false }`
[INFO] [stdout] 9092fc7af9063f49104808bb69aff45acfe2f21293201d53d8704090fabc2ca9
