[INFO] cloning repository https://github.com/wangtao2014/rust-medium
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/wangtao2014/rust-medium" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangtao2014%2Frust-medium", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangtao2014%2Frust-medium'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 82b44c04b0240f6678ac1b5db722229e78bc9acd
[INFO] checking wangtao2014/rust-medium against master#fce0e74720d199eb7839fdb51af35ac5226da178 for pr-145262
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwangtao2014%2Frust-medium" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/wangtao2014/rust-medium
[INFO] finished tweaking git repo https://github.com/wangtao2014/rust-medium
[INFO] tweaked toml for git repo https://github.com/wangtao2014/rust-medium written to /workspace/builds/worker-5-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/wangtao2014/rust-medium on toolchain fce0e74720d199eb7839fdb51af35ac5226da178
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fce0e74720d199eb7839fdb51af35ac5226da178" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/wangtao2014/rust-medium 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" "+fce0e74720d199eb7839fdb51af35ac5226da178" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fce0e74720d199eb7839fdb51af35ac5226da178" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0446fcb00e2695445624e6f845f1cd395d5dcb6de7c9b3ad1f205595cad38af2
[INFO] running `Command { std: "docker" "start" "-a" "0446fcb00e2695445624e6f845f1cd395d5dcb6de7c9b3ad1f205595cad38af2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0446fcb00e2695445624e6f845f1cd395d5dcb6de7c9b3ad1f205595cad38af2", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0446fcb00e2695445624e6f845f1cd395d5dcb6de7c9b3ad1f205595cad38af2", kill_on_drop: false }`
[INFO] [stdout] 0446fcb00e2695445624e6f845f1cd395d5dcb6de7c9b3ad1f205595cad38af2
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+fce0e74720d199eb7839fdb51af35ac5226da178" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cedf6d9ff2eb42b97aed88b082ade7bb625b6bf72c4d1baea374d7d9706eccd0
[INFO] running `Command { std: "docker" "start" "-a" "cedf6d9ff2eb42b97aed88b082ade7bb625b6bf72c4d1baea374d7d9706eccd0", kill_on_drop: false }`
[INFO] [stderr]    Compiling anyhow v1.0.68
[INFO] [stderr]     Checking rust_medium v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `new_name`
[INFO] [stdout]    --> src/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let new_name = name;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_name`
[INFO] [stdout]    --> src/main.rs:124:13
[INFO] [stdout]     |
[INFO] [stdout] 124 |         let new_name = name;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_name`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_name`
[INFO] [stdout]    --> src/main.rs:144:13
[INFO] [stdout]     |
[INFO] [stdout] 144 |         let new_name = &name;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_age`
[INFO] [stdout]    --> src/main.rs:147:13
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let new_age = age;
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_age`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_name`
[INFO] [stdout]    --> src/main.rs:144:13
[INFO] [stdout]     |
[INFO] [stdout] 144 |         let new_name = &name;
[INFO] [stdout]     |             ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_name`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `new_age`
[INFO] [stdout]    --> src/main.rs:147:13
[INFO] [stdout]     |
[INFO] [stdout] 147 |         let new_age = age;
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_age`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closure`
[INFO] [stdout]   --> src/main.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let closure = || {
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closure`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `closure`
[INFO] [stdout]   --> src/main.rs:15:9
[INFO] [stdout]    |
[INFO] [stdout] 15 |     let closure = || {
[INFO] [stdout]    |         ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_closure`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x2`
[INFO] [stdout]   --> src/main.rs:50:14
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let (x2, y2) = (x1, y1);
[INFO] [stdout]    |              ^^ help: if this is intentional, prefix it with an underscore: `_x2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x2`
[INFO] [stdout]   --> src/main.rs:50:14
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let (x2, y2) = (x1, y1);
[INFO] [stdout]    |              ^^ help: if this is intentional, prefix it with an underscore: `_x2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y2`
[INFO] [stdout]   --> src/main.rs:50:18
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let (x2, y2) = (x1, y1);
[INFO] [stdout]    |                  ^^ help: if this is intentional, prefix it with an underscore: `_y2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `y2`
[INFO] [stdout]   --> src/main.rs:50:18
[INFO] [stdout]    |
[INFO] [stdout] 50 |         let (x2, y2) = (x1, y1);
[INFO] [stdout]    |                  ^^ help: if this is intentional, prefix it with an underscore: `_y2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]   --> src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let z: [u8; 5] = [1, 2, 3, 4, 5];
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `z`
[INFO] [stdout]   --> src/main.rs:56:9
[INFO] [stdout]    |
[INFO] [stdout] 56 |     let z: [u8; 5] = [1, 2, 3, 4, 5];
[INFO] [stdout]    |         ^ help: if this is intentional, prefix it with an underscore: `_z`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:184:9
[INFO] [stdout]     |
[INFO] [stdout] 184 |     let x: MyOption<u8, u8, u8> = MyOption::Some3(8);
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Point` is never constructed
[INFO] [stdout]   --> src/main.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct Point {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `origin`, `new`, `distance`, `modify_x`, and `modify_y` are never used
[INFO] [stdout]   --> src/main.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl Point {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 73 |     fn origin() -> Point {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn new(x: f64, y: f64) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn distance(&self, other: &Self) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85 |     fn modify_x(&mut self, x: f64) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     fn modify_y(&mut self, y: f64) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cacl1` is never used
[INFO] [stdout]    --> src/main.rs:100:4
[INFO] [stdout]     |
[INFO] [stdout] 100 | fn cacl1<T>(op: T, a: i32, b: i32) -> i32
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cacl2` is never used
[INFO] [stdout]    --> src/main.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn cacl2(op: impl Fn(i32, i32) -> i32, a: i32, b: i32) -> i32 {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test1` is never used
[INFO] [stdout]    --> src/main.rs:121:4
[INFO] [stdout]     |
[INFO] [stdout] 121 | fn test1() -> impl Fn() {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test3` is never used
[INFO] [stdout]    --> src/main.rs:136:4
[INFO] [stdout]     |
[INFO] [stdout] 136 | fn test3() -> impl Fn() {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Color` is never constructed
[INFO] [stdout]    --> src/main.rs:156:8
[INFO] [stdout]     |
[INFO] [stdout] 156 | struct Color(u8, u8, u8);
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_once` is never used
[INFO] [stdout]    --> src/main.rs:158:4
[INFO] [stdout]     |
[INFO] [stdout] 158 | fn fn_once<F>(func: F) 
[INFO] [stdout]     |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]    --> src/main.rs:167:5
[INFO] [stdout]     |
[INFO] [stdout] 166 | struct Point1<T, W> {
[INFO] [stdout]     |        ------ fields in this struct
[INFO] [stdout] 167 |     x: T,
[INFO] [stdout]     |     ^
[INFO] [stdout] 168 |     y: W,
[INFO] [stdout]     |     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MyOption` is never used
[INFO] [stdout]    --> src/main.rs:177:6
[INFO] [stdout]     |
[INFO] [stdout] 177 | enum MyOption<A, B, C> {
[INFO] [stdout]     |      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_option` is never used
[INFO] [stdout]    --> src/main.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn test_option() {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rect` is never constructed
[INFO] [stdout]    --> src/main.rs:193:8
[INFO] [stdout]     |
[INFO] [stdout] 193 | struct Rect<T: Display, W: Debug> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `x`
[INFO] [stdout]    --> src/main.rs:184:9
[INFO] [stdout]     |
[INFO] [stdout] 184 |     let x: MyOption<u8, u8, u8> = MyOption::Some3(8);
[INFO] [stdout]     |         ^ help: if this is intentional, prefix it with an underscore: `_x`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Point` is never constructed
[INFO] [stdout]   --> src/main.rs:67:8
[INFO] [stdout]    |
[INFO] [stdout] 67 | struct Point {
[INFO] [stdout]    |        ^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `origin`, `new`, `distance`, `modify_x`, and `modify_y` are never used
[INFO] [stdout]   --> src/main.rs:73:8
[INFO] [stdout]    |
[INFO] [stdout] 72 | impl Point {
[INFO] [stdout]    | ---------- associated items in this implementation
[INFO] [stdout] 73 |     fn origin() -> Point {
[INFO] [stdout]    |        ^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 77 |     fn new(x: f64, y: f64) -> Self {
[INFO] [stdout]    |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 81 |     fn distance(&self, other: &Self) -> f64 {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 85 |     fn modify_x(&mut self, x: f64) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 89 |     fn modify_y(&mut self, y: f64) {
[INFO] [stdout]    |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cacl1` is never used
[INFO] [stdout]    --> src/main.rs:100:4
[INFO] [stdout]     |
[INFO] [stdout] 100 | fn cacl1<T>(op: T, a: i32, b: i32) -> i32
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `cacl2` is never used
[INFO] [stdout]    --> src/main.rs:107:4
[INFO] [stdout]     |
[INFO] [stdout] 107 | fn cacl2(op: impl Fn(i32, i32) -> i32, a: i32, b: i32) -> i32 {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test1` is never used
[INFO] [stdout]    --> src/main.rs:121:4
[INFO] [stdout]     |
[INFO] [stdout] 121 | fn test1() -> impl Fn() {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test3` is never used
[INFO] [stdout]    --> src/main.rs:136:4
[INFO] [stdout]     |
[INFO] [stdout] 136 | fn test3() -> impl Fn() {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Color` is never constructed
[INFO] [stdout]    --> src/main.rs:156:8
[INFO] [stdout]     |
[INFO] [stdout] 156 | struct Color(u8, u8, u8);
[INFO] [stdout]     |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `fn_once` is never used
[INFO] [stdout]    --> src/main.rs:158:4
[INFO] [stdout]     |
[INFO] [stdout] 158 | fn fn_once<F>(func: F) 
[INFO] [stdout]     |    ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `x` and `y` are never read
[INFO] [stdout]    --> src/main.rs:167:5
[INFO] [stdout]     |
[INFO] [stdout] 166 | struct Point1<T, W> {
[INFO] [stdout]     |        ------ fields in this struct
[INFO] [stdout] 167 |     x: T,
[INFO] [stdout]     |     ^
[INFO] [stdout] 168 |     y: W,
[INFO] [stdout]     |     ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `MyOption` is never used
[INFO] [stdout]    --> src/main.rs:177:6
[INFO] [stdout]     |
[INFO] [stdout] 177 | enum MyOption<A, B, C> {
[INFO] [stdout]     |      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `test_option` is never used
[INFO] [stdout]    --> src/main.rs:183:4
[INFO] [stdout]     |
[INFO] [stdout] 183 | fn test_option() {
[INFO] [stdout]     |    ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Rect` is never constructed
[INFO] [stdout]    --> src/main.rs:193:8
[INFO] [stdout]     |
[INFO] [stdout] 193 | struct Rect<T: Display, W: Debug> {
[INFO] [stdout]     |        ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] running `Command { std: "docker" "inspect" "cedf6d9ff2eb42b97aed88b082ade7bb625b6bf72c4d1baea374d7d9706eccd0", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cedf6d9ff2eb42b97aed88b082ade7bb625b6bf72c4d1baea374d7d9706eccd0", kill_on_drop: false }`
[INFO] [stdout] cedf6d9ff2eb42b97aed88b082ade7bb625b6bf72c4d1baea374d7d9706eccd0
