[INFO] cloning repository https://github.com/fluxxu/coding-test [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fluxxu/coding-test" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffluxxu%2Fcoding-test", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffluxxu%2Fcoding-test'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 022642802f4a884bd6f2214466294d017ac77e6c [INFO] testing fluxxu/coding-test against 1.99.0-beta.8 for beta-1.100-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffluxxu%2Fcoding-test" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/fluxxu/coding-test [INFO] finished tweaking git repo https://github.com/fluxxu/coding-test [INFO] tweaked toml for git repo https://github.com/fluxxu/coding-test written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/fluxxu/coding-test on toolchain 1.99.0-beta.8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/fluxxu/coding-test 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" "+1.99.0-beta.8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winnow v0.7.12 [INFO] [stderr] Downloaded rust_decimal v1.37.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3111399a4047eeb3a02b7a90e478d715f38a8c6669b5c4b49d30a17385265909" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993 [INFO] running `Command { std: "docker" "start" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling rust_decimal v1.37.2 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling arrayvec v0.7.6 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling clap_builder v4.5.43 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling clap_derive v4.5.41 [INFO] [stderr] Compiling thiserror-impl v2.0.12 [INFO] [stderr] Compiling thiserror v2.0.12 [INFO] [stderr] Compiling clap v4.5.43 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling coding-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/engine/csv.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn read_next(&mut self) -> Result, Error> { [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] 24 | pub fn read_next(&mut self) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.60s [INFO] running `Command { std: "docker" "inspect" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] Compiling coding-test v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/engine/csv.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | pub fn read_next(&mut self) -> Result, Error> { [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] 24 | pub fn read_next(&mut self) -> Result>, Error> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `Command { std: "docker" "inspect" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.8" "test" "--frozen", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/engine/csv.rs:24:22 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn read_next(&mut self) -> Result, Error> { [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] 24 | pub fn read_next(&mut self) -> Result>, Error> { [INFO] [stderr] | ++++ [INFO] [stderr] [INFO] [stderr] warning: `coding-test` (bin "coding-test" test) generated 1 warning (run `cargo fix --bin "coding-test" -p coding-test --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/coding_test-634cc18418a3b05a) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test engine::tests::test_deposit_withdrawal ... ok [INFO] [stdout] test engine::tests::test_withdrawal_overdraft ... ok [INFO] [stdout] test engine::tests::test_dispute_after_withdrawal ... ok [INFO] [stdout] test engine::tests::test_example_csv ... ok [INFO] [stdout] test engine::account::tests::test_balance ... ok [INFO] [stdout] test engine::tests::test_dispute_resolve_chargeback ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993", kill_on_drop: false }` [INFO] [stdout] f49e1285821ea834fc1d25cea16882743b62575816ffc9c627dfa0758a783993