[INFO] cloning repository https://github.com/zhoujun681/CopyAndRename [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhoujun681/CopyAndRename" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2FCopyAndRename", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2FCopyAndRename'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bef7a87f65c4ce48b0e44a4e052503cd83217d5d [INFO] checking zhoujun681/CopyAndRename against master#9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2FCopyAndRename" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhoujun681/CopyAndRename on toolchain 9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zhoujun681/CopyAndRename [INFO] finished tweaking git repo https://github.com/zhoujun681/CopyAndRename [INFO] tweaked toml for git repo https://github.com/zhoujun681/CopyAndRename written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zhoujun681/CopyAndRename 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" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cbcd17f6005ade5c237b914a23530f52e7c457d0d236ebebd3813495413cf7c [INFO] running `Command { std: "docker" "start" "-a" "3cbcd17f6005ade5c237b914a23530f52e7c457d0d236ebebd3813495413cf7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cbcd17f6005ade5c237b914a23530f52e7c457d0d236ebebd3813495413cf7c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cbcd17f6005ade5c237b914a23530f52e7c457d0d236ebebd3813495413cf7c", kill_on_drop: false }` [INFO] [stdout] 3cbcd17f6005ade5c237b914a23530f52e7c457d0d236ebebd3813495413cf7c [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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+9c67cecd12d79f1bbc00a74f70e7ef9fff086a5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f57275008ed4b9a995ff199887a207275607f57fc34087f01239deab3df8d5e [INFO] running `Command { std: "docker" "start" "-a" "2f57275008ed4b9a995ff199887a207275607f57fc34087f01239deab3df8d5e", kill_on_drop: false }` [INFO] [stderr] Checking CopyAndRename v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | if(dir.is_empty()||c_dir.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if(dir.is_empty()||c_dir.is_empty()){ [INFO] [stdout] 59 + if dir.is_empty()||c_dir.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | if (!dir.ends_with("\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (!dir.ends_with("\\")) { [INFO] [stdout] 71 + if !dir.ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if (!c_dir.ends_with("\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (!c_dir.ends_with("\\")) { [INFO] [stdout] 74 + if !c_dir.ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:59:7 [INFO] [stdout] | [INFO] [stdout] 59 | if(dir.is_empty()||c_dir.is_empty()){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 59 - if(dir.is_empty()||c_dir.is_empty()){ [INFO] [stdout] 59 + if dir.is_empty()||c_dir.is_empty() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | if(time == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if(time == 0){ [INFO] [stdout] 83 + if time == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | if (!dir.ends_with("\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 71 - if (!dir.ends_with("\\")) { [INFO] [stdout] 71 + if !dir.ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | if(time == 999999999){ //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(time == 999999999){ //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] 112 + if time == 999999999 { //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | if (!c_dir.ends_with("\\")) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 74 - if (!c_dir.ends_with("\\")) { [INFO] [stdout] 74 + if !c_dir.ends_with("\\") { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:83:7 [INFO] [stdout] | [INFO] [stdout] 83 | if(time == 0){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 83 - if(time == 0){ [INFO] [stdout] 83 + if time == 0 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:112:11 [INFO] [stdout] | [INFO] [stdout] 112 | if(time == 999999999){ //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 112 - if(time == 999999999){ //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] 112 + if time == 999999999 { //如果传入时间为0,只拷贝运行一次就退出 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 87 | / loop { [INFO] [stdout] 88 | | let last_modified_file = std::fs::read_dir(dir.as_str()) [INFO] [stdout] 89 | | .expect("传入的监听目录错误!!正确的: -d d:\\ss") [INFO] [stdout] 90 | | .flatten() // Remove failed [INFO] [stdout] ... | [INFO] [stdout] 115 | | std::thread::sleep(Duration::from_secs(du_time)); [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 117 | [INFO] [stdout] 118 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/main.rs:118:5 [INFO] [stdout] | [INFO] [stdout] 87 | / loop { [INFO] [stdout] 88 | | let last_modified_file = std::fs::read_dir(dir.as_str()) [INFO] [stdout] 89 | | .expect("传入的监听目录错误!!正确的: -d d:\\ss") [INFO] [stdout] 90 | | .flatten() // Remove failed [INFO] [stdout] ... | [INFO] [stdout] 115 | | std::thread::sleep(Duration::from_secs(du_time)); [INFO] [stdout] 116 | | } [INFO] [stdout] | |_____- any code following this expression is unreachable [INFO] [stdout] 117 | [INFO] [stdout] 118 | Ok(()) [INFO] [stdout] | ^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "2f57275008ed4b9a995ff199887a207275607f57fc34087f01239deab3df8d5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f57275008ed4b9a995ff199887a207275607f57fc34087f01239deab3df8d5e", kill_on_drop: false }` [INFO] [stdout] 2f57275008ed4b9a995ff199887a207275607f57fc34087f01239deab3df8d5e