[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 master#11663cd3bfefef7d34e8f0892c250bf698049392+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-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhoujun681/CopyAndRename on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7f936363f7e53023416e325335dad5388bd236ebeb660348e04fd5396ee083ee [INFO] running `Command { std: "docker" "start" "-a" "7f936363f7e53023416e325335dad5388bd236ebeb660348e04fd5396ee083ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7f936363f7e53023416e325335dad5388bd236ebeb660348e04fd5396ee083ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f936363f7e53023416e325335dad5388bd236ebeb660348e04fd5396ee083ee", kill_on_drop: false }` [INFO] [stdout] 7f936363f7e53023416e325335dad5388bd236ebeb660348e04fd5396ee083ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 526eee6bee40d2cf21d6e231e426f34577a3c7159d09997c71e340760ee4a61c [INFO] running `Command { std: "docker" "start" "-a" "526eee6bee40d2cf21d6e231e426f34577a3c7159d09997c71e340760ee4a61c", 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.26s [INFO] running `Command { std: "docker" "inspect" "526eee6bee40d2cf21d6e231e426f34577a3c7159d09997c71e340760ee4a61c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "526eee6bee40d2cf21d6e231e426f34577a3c7159d09997c71e340760ee4a61c", kill_on_drop: false }` [INFO] [stdout] 526eee6bee40d2cf21d6e231e426f34577a3c7159d09997c71e340760ee4a61c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3dc400685c8a4ab81702b392be6f7009dff5b0334da95100b9f376299642793f [INFO] running `Command { std: "docker" "start" "-a" "3dc400685c8a4ab81702b392be6f7009dff5b0334da95100b9f376299642793f", 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] [stdout] error: linking with `cc` failed: exit status: 1 [INFO] [stdout] | [INFO] [stdout] = note: LC_ALL="C" PATH="/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin:/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/self-contained:/opt/rustwide/cargo-home/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" VSLANG="1033" "cc" "-m64" "/tmp/rustczUNimG/symbols.o" "<2 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-5b337cbd81a5a91e.rlib,libgetopts-b3d751a359439e5c.rlib,libunicode_width-b94cd6aeaf6d0888.rlib,librustc_std_workspace_std-7eff89145b2e518b.rlib,libstd-c961c021679cb080.rlib,libpanic_unwind-cf53e161ed1cff61.rlib,libobject-cb648d8066e1f446.rlib,libmemchr-c5d4f358058ea4b7.rlib,libaddr2line-c3d71356250e6616.rlib,libgimli-f87b04c9c9484f11.rlib,librustc_demangle-bcb6f2ec634b4b7c.rlib,libstd_detect-7c9c37927c8e6d84.rlib,libhashbrown-c2c9b281c2c2a277.rlib,librustc_std_workspace_alloc-436fb8ec294074ae.rlib,libminiz_oxide-8d1606a7c3a02301.rlib,libadler-b9d368accc529045.rlib,libunwind-8fa2d9148abc4bd4.rlib,libcfg_if-04c8eb04b1ca0e2e.rlib,liblibc-ac32c271036f683f.rlib,liballoc-954db56effadca87.rlib,librustc_std_workspace_core-395a38b8e0851c9b.rlib,libcore-d453bab70303062c.rlib,libcompiler_builtins-d643a4794e0b0ebc.rlib}" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-B/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/opt/rustwide/target/debug/deps/CopyAndRename-70f438ea0cfa2bdb" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-nodefaultlibs" [INFO] [stdout] = note: some arguments are omitted. use `--verbose` to show all linker arguments [INFO] [stdout] = note: PLEASE submit a bug report to https://github.com/llvm/llvm-project/issues/ and include the crash backtrace. [INFO] [stdout] #0 0x000073dcd8959ee7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/libLLVM.so.19.1-rust-1.85.0-nightly+0x3f59ee7) [INFO] [stdout] #1 0x000073dcd895a2fc SignalHandler(int) (/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/libLLVM.so.19.1-rust-1.85.0-nightly+0x3f5a2fc) [INFO] [stdout] #2 0x000073dcd4819520 (/lib/x86_64-linux-gnu/libc.so.6+0x42520) [INFO] [stdout] #3 0x00005e66cd308f81 lld::elf::RelocationSection >::writeTo(unsigned char*) SyntheticSections.cpp:0:0 [INFO] [stdout] #4 0x00005e66cd2487ba void lld::elf::OutputSection::writeTo >(unsigned char*, llvm::parallel::TaskGroup&)::'lambda'(unsigned long, unsigned long)::operator()(unsigned long, unsigned long) const OutputSections.cpp:0:0 [INFO] [stdout] #5 0x000073dcd890b732 std::_Function_handler, bool)::$_0>::_M_invoke(std::_Any_data const&) (/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/libLLVM.so.19.1-rust-1.85.0-nightly+0x3f0b732) [INFO] [stdout] #6 0x000073dcd890aaea llvm::parallel::detail::(anonymous namespace)::ThreadPoolExecutor::work(llvm::ThreadPoolStrategy, unsigned int) (/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/libLLVM.so.19.1-rust-1.85.0-nightly+0x3f0aaea) [INFO] [stdout] #7 0x000073dcd8886040 execute_native_thread_routine (/opt/rustwide/rustup-home/toolchains/11663cd3bfefef7d34e8f0892c250bf698049392/lib/libLLVM.so.19.1-rust-1.85.0-nightly+0x3e86040) [INFO] [stdout] #8 0x000073dcd486bac3 (/lib/x86_64-linux-gnu/libc.so.6+0x94ac3) [INFO] [stdout] #9 0x000073dcd48fca04 __clone (/lib/x86_64-linux-gnu/libc.so.6+0x125a04) [INFO] [stdout] rust-lld: error: failed to write output '/opt/rustwide/target/debug/deps/CopyAndRename-70f438ea0cfa2bdb': No such file or directory [INFO] [stdout] collect2: error: ld returned 1 exit status [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `CopyAndRename` (bin "CopyAndRename" test) due to 1 previous error; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3dc400685c8a4ab81702b392be6f7009dff5b0334da95100b9f376299642793f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dc400685c8a4ab81702b392be6f7009dff5b0334da95100b9f376299642793f", kill_on_drop: false }` [INFO] [stdout] 3dc400685c8a4ab81702b392be6f7009dff5b0334da95100b9f376299642793f