[INFO] fetching crate unit9 0.1.0...
[INFO] building unit9-0.1.0 against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1
[INFO] extracting crate unit9 0.1.0 into /workspace/builds/worker-4-tc2/source
[INFO] started tweaking crates.io crate unit9 0.1.0
[INFO] finished tweaking crates.io crate unit9 0.1.0
[INFO] tweaked toml for crates.io crate unit9 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of crates.io crate unit9 0.1.0 on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate crates.io crate unit9 0.1.0 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 64ea1bff37034357f968c6b7076e775be9326bee3d308d5d88dbd0254a1fc5f3
[INFO] running `Command { std: "docker" "start" "-a" "64ea1bff37034357f968c6b7076e775be9326bee3d308d5d88dbd0254a1fc5f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "64ea1bff37034357f968c6b7076e775be9326bee3d308d5d88dbd0254a1fc5f3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "64ea1bff37034357f968c6b7076e775be9326bee3d308d5d88dbd0254a1fc5f3", kill_on_drop: false }`
[INFO] [stdout] 64ea1bff37034357f968c6b7076e775be9326bee3d308d5d88dbd0254a1fc5f3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] f59fac9ce925827ab322bf3517a09f010743f6bd417998d902142148f455a642
[INFO] running `Command { std: "docker" "start" "-a" "f59fac9ce925827ab322bf3517a09f010743f6bd417998d902142148f455a642", kill_on_drop: false }`
[INFO] [stderr]    Compiling unit9 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]   --> src/main.rs:57:78
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let file_create_result = File::create(file_path).unwrap_or_else(|err| {
[INFO] [stdout]    |                                                                              ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |         Ok(file) => { println!("打开文件成功"); }
[INFO] [stdout]    |            ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:39:31
[INFO] [stdout]    |
[INFO] [stdout] 39 |                     if let Ok(file) = file_create_result {
[INFO] [stdout]    |                               ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_open_result`
[INFO] [stdout]   --> src/main.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let file_open_result = File::open(file_path).map_err(|err| {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_open_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let file = File::create(file_path).unwrap();
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let file = File::open(file_path).expect("");
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_create_result`
[INFO] [stdout]   --> src/main.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let file_create_result = File::create(file_path).unwrap_or_else(|err| {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_create_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `panic` is never used
[INFO] [stdout]   --> src/main.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn panic() {
[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 `panic_shortcut` is never used
[INFO] [stdout]   --> src/main.rs:23:4
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn panic_shortcut(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `result_ordinary` is never used
[INFO] [stdout]   --> src/main.rs:31:4
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn result_ordinary(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `result_closure` is never used
[INFO] [stdout]   --> src/main.rs:54:4
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn result_closure(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s
[INFO] running `Command { std: "docker" "inspect" "f59fac9ce925827ab322bf3517a09f010743f6bd417998d902142148f455a642", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f59fac9ce925827ab322bf3517a09f010743f6bd417998d902142148f455a642", kill_on_drop: false }`
[INFO] [stdout] f59fac9ce925827ab322bf3517a09f010743f6bd417998d902142148f455a642
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] ec183c4267b8f37db30b5e551ef875cfdbd736220f6a03a2db1205a4bc418838
[INFO] running `Command { std: "docker" "start" "-a" "ec183c4267b8f37db30b5e551ef875cfdbd736220f6a03a2db1205a4bc418838", kill_on_drop: false }`
[INFO] [stderr]    Compiling unit9 v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:25:9
[INFO] [stdout]    |
[INFO] [stdout] 25 |     let file = File::create(file_path).unwrap();
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:34:12
[INFO] [stdout]    |
[INFO] [stdout] 34 |         Ok(file) => { println!("打开文件成功"); }
[INFO] [stdout]    |            ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:39:31
[INFO] [stdout]    |
[INFO] [stdout] 39 |                     if let Ok(file) = file_create_result {
[INFO] [stdout]    |                               ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `err`
[INFO] [stdout]   --> src/main.rs:57:78
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let file_create_result = File::create(file_path).unwrap_or_else(|err| {
[INFO] [stdout]    |                                                                              ^^^ help: if this is intentional, prefix it with an underscore: `_err`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file`
[INFO] [stdout]   --> src/main.rs:27:9
[INFO] [stdout]    |
[INFO] [stdout] 27 |     let file = File::open(file_path).expect("");
[INFO] [stdout]    |         ^^^^ help: if this is intentional, prefix it with an underscore: `_file`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_open_result`
[INFO] [stdout]   --> src/main.rs:55:9
[INFO] [stdout]    |
[INFO] [stdout] 55 |     let file_open_result = File::open(file_path).map_err(|err| {
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_open_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `file_create_result`
[INFO] [stdout]   --> src/main.rs:57:17
[INFO] [stdout]    |
[INFO] [stdout] 57 |             let file_create_result = File::create(file_path).unwrap_or_else(|err| {
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_file_create_result`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `panic` is never used
[INFO] [stdout]   --> src/main.rs:18:4
[INFO] [stdout]    |
[INFO] [stdout] 18 | fn panic() {
[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 `panic_shortcut` is never used
[INFO] [stdout]   --> src/main.rs:23:4
[INFO] [stdout]    |
[INFO] [stdout] 23 | fn panic_shortcut(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `result_ordinary` is never used
[INFO] [stdout]   --> src/main.rs:31:4
[INFO] [stdout]    |
[INFO] [stdout] 31 | fn result_ordinary(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `result_closure` is never used
[INFO] [stdout]   --> src/main.rs:54:4
[INFO] [stdout]    |
[INFO] [stdout] 54 | fn result_closure(file_path: &str) {
[INFO] [stdout]    |    ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.29s
[INFO] running `Command { std: "docker" "inspect" "ec183c4267b8f37db30b5e551ef875cfdbd736220f6a03a2db1205a4bc418838", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "ec183c4267b8f37db30b5e551ef875cfdbd736220f6a03a2db1205a4bc418838", kill_on_drop: false }`
[INFO] [stdout] ec183c4267b8f37db30b5e551ef875cfdbd736220f6a03a2db1205a4bc418838
