[INFO] fetching crate git-shell-enforce-directory 1.0.1... [INFO] testing git-shell-enforce-directory-1.0.1 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate git-shell-enforce-directory 1.0.1 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate git-shell-enforce-directory 1.0.1 [INFO] finished tweaking crates.io crate git-shell-enforce-directory 1.0.1 [INFO] tweaked toml for crates.io crate git-shell-enforce-directory 1.0.1 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate git-shell-enforce-directory 1.0.1 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate git-shell-enforce-directory 1.0.1 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4826e6272e9dafd5627750dc4f05ce81874ebfafb2ad8d083d3d9ec734e70521 [INFO] running `Command { std: "docker" "start" "-a" "4826e6272e9dafd5627750dc4f05ce81874ebfafb2ad8d083d3d9ec734e70521", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4826e6272e9dafd5627750dc4f05ce81874ebfafb2ad8d083d3d9ec734e70521", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4826e6272e9dafd5627750dc4f05ce81874ebfafb2ad8d083d3d9ec734e70521", kill_on_drop: false }` [INFO] [stdout] 4826e6272e9dafd5627750dc4f05ce81874ebfafb2ad8d083d3d9ec734e70521 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7fe8147914215ba96b927a0cb86cd74f4ff64296042f93e2d20eddd60750370b [INFO] running `Command { std: "docker" "start" "-a" "7fe8147914215ba96b927a0cb86cd74f4ff64296042f93e2d20eddd60750370b", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling libc v0.2.39 [INFO] [stderr] Compiling void v1.0.2 [INFO] [stderr] Compiling regex v0.2.10 [INFO] [stderr] Compiling ucd-util v0.1.1 [INFO] [stderr] Compiling lazy_static v1.0.0 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling utf8-ranges v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.4 [INFO] [stderr] Compiling quick-error v1.2.1 [INFO] [stderr] Compiling regex-syntax v0.6.26 [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Compiling termcolor v0.3.5 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.0 [INFO] [stderr] Compiling strsim v0.7.0 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Compiling textwrap v0.9.0 [INFO] [stderr] Compiling unreachable v1.0.0 [INFO] [stderr] Compiling humantime v1.1.1 [INFO] [stderr] Compiling regex-syntax v0.5.3 [INFO] [stderr] Compiling thread_local v0.3.5 [INFO] [stderr] Compiling atty v0.2.8 [INFO] [stderr] Compiling errno v0.2.3 [INFO] [stderr] Compiling clap v2.31.1 [INFO] [stderr] Compiling aho-corasick v0.6.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling exec v0.3.1 [INFO] [stderr] Compiling regex v1.5.6 [INFO] [stderr] Compiling env_logger v0.5.6 [INFO] [stderr] Compiling git-shell-enforce-directory v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_upload_or_receive(cmd: &str) -> Option { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | fn is_upload_or_receive(cmd: &str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.22s [INFO] running `Command { std: "docker" "inspect" "7fe8147914215ba96b927a0cb86cd74f4ff64296042f93e2d20eddd60750370b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7fe8147914215ba96b927a0cb86cd74f4ff64296042f93e2d20eddd60750370b", kill_on_drop: false }` [INFO] [stdout] 7fe8147914215ba96b927a0cb86cd74f4ff64296042f93e2d20eddd60750370b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 122861c6ee564e0bee7926c88c5cc70bea1794cb38ab997d93428176fcc45444 [INFO] running `Command { std: "docker" "start" "-a" "122861c6ee564e0bee7926c88c5cc70bea1794cb38ab997d93428176fcc45444", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] Compiling git-shell-enforce-directory v1.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/main.rs:116:30 [INFO] [stdout] | [INFO] [stdout] 116 | fn is_upload_or_receive(cmd: &str) -> Option { [INFO] [stdout] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 116 | fn is_upload_or_receive(cmd: &str) -> Option> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "122861c6ee564e0bee7926c88c5cc70bea1794cb38ab997d93428176fcc45444", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "122861c6ee564e0bee7926c88c5cc70bea1794cb38ab997d93428176fcc45444", kill_on_drop: false }` [INFO] [stdout] 122861c6ee564e0bee7926c88c5cc70bea1794cb38ab997d93428176fcc45444 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] bbaa0909c282c5f9eb1a13e92c1b9fc92d92ce81abeaa9c0b7a7304779485a01 [INFO] running `Command { std: "docker" "start" "-a" "bbaa0909c282c5f9eb1a13e92c1b9fc92d92ce81abeaa9c0b7a7304779485a01", kill_on_drop: false }` [INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/main.rs:116:30 [INFO] [stderr] | [INFO] [stderr] 116 | fn is_upload_or_receive(cmd: &str) -> Option { [INFO] [stderr] | ^^^^ ^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 116 | fn is_upload_or_receive(cmd: &str) -> Option> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `git-shell-enforce-directory` (bin "git-shell-enforce-directory" test) generated 1 warning (run `cargo fix --bin "git-shell-enforce-directory" -p git-shell-enforce-directory --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/git_shell_enforce_directory-6e70cede5d0a0b29) [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test malicious_command_fails ... ok [INFO] [stdout] test newline_command_fails ... ok [INFO] [stdout] test correct_command_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 3 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bbaa0909c282c5f9eb1a13e92c1b9fc92d92ce81abeaa9c0b7a7304779485a01", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bbaa0909c282c5f9eb1a13e92c1b9fc92d92ce81abeaa9c0b7a7304779485a01", kill_on_drop: false }` [INFO] [stdout] bbaa0909c282c5f9eb1a13e92c1b9fc92d92ce81abeaa9c0b7a7304779485a01