[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] building zhoujun681/CopyAndRename against try#9b5e8b16bd1c4acf4cf8e6880368314cf021a987+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhoujun681%2FCopyAndRename" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhoujun681/CopyAndRename on toolchain 9b5e8b16bd1c4acf4cf8e6880368314cf021a987 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "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-4-tc2/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" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24ef0e6b6b9916c1b56b33299069da3073bce1d1978cab265503e16fed4cb349 [INFO] running `Command { std: "docker" "start" "-a" "24ef0e6b6b9916c1b56b33299069da3073bce1d1978cab265503e16fed4cb349", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24ef0e6b6b9916c1b56b33299069da3073bce1d1978cab265503e16fed4cb349", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24ef0e6b6b9916c1b56b33299069da3073bce1d1978cab265503e16fed4cb349", kill_on_drop: false }` [INFO] [stdout] 24ef0e6b6b9916c1b56b33299069da3073bce1d1978cab265503e16fed4cb349 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 722a8061d31e6ba650b780fa6347f5976fec20835550c2498143253278d45339 [INFO] running `Command { std: "docker" "start" "-a" "722a8061d31e6ba650b780fa6347f5976fec20835550c2498143253278d45339", kill_on_drop: false }` [INFO] [stderr] Compiling 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: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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "722a8061d31e6ba650b780fa6347f5976fec20835550c2498143253278d45339", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "722a8061d31e6ba650b780fa6347f5976fec20835550c2498143253278d45339", kill_on_drop: false }` [INFO] [stdout] 722a8061d31e6ba650b780fa6347f5976fec20835550c2498143253278d45339 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9b5e8b16bd1c4acf4cf8e6880368314cf021a987" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6cb7ec607c8079ebe1456db30c9f867b2f63549ab7fd2974fa2984fe535877b7 [INFO] running `Command { std: "docker" "start" "-a" "6cb7ec607c8079ebe1456db30c9f867b2f63549ab7fd2974fa2984fe535877b7", kill_on_drop: false }` [INFO] [stderr] Compiling 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: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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "6cb7ec607c8079ebe1456db30c9f867b2f63549ab7fd2974fa2984fe535877b7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6cb7ec607c8079ebe1456db30c9f867b2f63549ab7fd2974fa2984fe535877b7", kill_on_drop: false }` [INFO] [stdout] 6cb7ec607c8079ebe1456db30c9f867b2f63549ab7fd2974fa2984fe535877b7