[INFO] cloning repository https://github.com/qyuzh/rust-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qyuzh/rust-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqyuzh%2Frust-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqyuzh%2Frust-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7dc1fa9bdcf05dec94c14568b445a14fe9dce08 [INFO] testing qyuzh/rust-practice against 1.79.0 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqyuzh%2Frust-practice" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qyuzh/rust-practice on toolchain 1.79.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.79.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qyuzh/rust-practice [INFO] finished tweaking git repo https://github.com/qyuzh/rust-practice [INFO] tweaked toml for git repo https://github.com/qyuzh/rust-practice written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/qyuzh/rust-practice 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.79.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded opentelemetry-semantic-conventions v0.9.0 [INFO] [stderr] Downloaded threadpool v1.8.1 [INFO] [stderr] Downloaded ordered-float v1.1.1 [INFO] [stderr] Downloaded integer-encoding v3.0.4 [INFO] [stderr] Downloaded waker-fn v1.1.1 [INFO] [stderr] Downloaded thrift v0.15.0 [INFO] [stderr] Downloaded concurrent-queue v2.3.0 [INFO] [stderr] Downloaded clap v4.4.6 [INFO] [stderr] Downloaded polling v2.8.0 [INFO] [stderr] Downloaded nix v0.23.2 [INFO] [stderr] Downloaded clap_builder v4.4.6 [INFO] [stderr] Downloaded opentelemetry-jaeger v0.16.0 [INFO] [stderr] Downloaded opentelemetry v0.17.0 [INFO] [stderr] Downloaded tracing-opentelemetry v0.17.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4b1ee1fc1d2cf7d5c3c2e26c65cbb66e5a8c7210261d9db4ff50e19a030543b3 [INFO] running `Command { std: "docker" "start" "-a" "4b1ee1fc1d2cf7d5c3c2e26c65cbb66e5a8c7210261d9db4ff50e19a030543b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4b1ee1fc1d2cf7d5c3c2e26c65cbb66e5a8c7210261d9db4ff50e19a030543b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b1ee1fc1d2cf7d5c3c2e26c65cbb66e5a8c7210261d9db4ff50e19a030543b3", kill_on_drop: false }` [INFO] [stdout] 4b1ee1fc1d2cf7d5c3c2e26c65cbb66e5a8c7210261d9db4ff50e19a030543b3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c5189dbe7227f61c4164ba9c76594705eff77ebbce92c6829795cd1be739710 [INFO] running `Command { std: "docker" "start" "-a" "3c5189dbe7227f61c4164ba9c76594705eff77ebbce92c6829795cd1be739710", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling anstyle-parse v0.2.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling clap_lex v0.5.1 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling anstream v0.6.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling clap_builder v4.4.6 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling thrift v0.15.0 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling tracing-subscriber v0.3.17 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling url v2.4.1 [INFO] [stderr] Compiling rust-lang-learning v0.1.0 (/opt/rustwide/workdir/03_rust-lang-learning) [INFO] [stderr] Compiling iana-time-zone v0.1.58 [INFO] [stderr] Compiling chrono v0.4.31 [INFO] [stderr] Compiling nix v0.23.2 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling waker-fn v1.1.1 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling whoami v1.4.1 [INFO] [stderr] Compiling monkey-in-rust v0.1.0 (/opt/rustwide/workdir/04_monkey-in-rust) [INFO] [stderr] Compiling leetcode-algorithm v0.1.0 (/opt/rustwide/workdir/00_leetcode-algorithm) [INFO] [stderr] Compiling futures-macro v0.3.29 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling pin-project-internal v1.1.3 [INFO] [stderr] Compiling thiserror-impl v1.0.50 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling pin-project v1.1.3 [INFO] [stderr] Compiling async-trait v0.1.74 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling clap_derive v4.4.2 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling futures-executor v0.3.29 [INFO] [stderr] Compiling opentelemetry v0.17.0 [INFO] [stderr] Compiling futures v0.3.29 [INFO] [stderr] Compiling clap v4.4.6 [INFO] [stderr] Compiling opentelemetry-semantic-conventions v0.9.0 [INFO] [stderr] Compiling tracing-opentelemetry v0.17.4 [INFO] [stderr] Compiling opentelemetry-jaeger v0.16.0 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling mini-async-runtime-unix v0.1.0 (/opt/rustwide/workdir/02_mini-async-runtime-unix) [INFO] [stderr] Compiling h2 v0.3.21 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling mini-redis v0.1.0 (/opt/rustwide/workdir/01_mini-redis) [INFO] [stderr] Compiling hyper v0.14.27 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.22 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 57s [INFO] running `Command { std: "docker" "inspect" "3c5189dbe7227f61c4164ba9c76594705eff77ebbce92c6829795cd1be739710", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c5189dbe7227f61c4164ba9c76594705eff77ebbce92c6829795cd1be739710", kill_on_drop: false }` [INFO] [stdout] 3c5189dbe7227f61c4164ba9c76594705eff77ebbce92c6829795cd1be739710 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f836f24ad9470d7482f11947df6e6f9747592df6e32037a42bd08a7b8cb9380f [INFO] running `Command { std: "docker" "start" "-a" "f836f24ad9470d7482f11947df6e6f9747592df6e32037a42bd08a7b8cb9380f", kill_on_drop: false }` [INFO] [stderr] Compiling mini-redis v0.1.0 (/opt/rustwide/workdir/01_mini-redis) [INFO] [stderr] Compiling monkey-in-rust v0.1.0 (/opt/rustwide/workdir/04_monkey-in-rust) [INFO] [stderr] Compiling mini-async-runtime-unix v0.1.0 (/opt/rustwide/workdir/02_mini-async-runtime-unix) [INFO] [stderr] Compiling rust-lang-learning v0.1.0 (/opt/rustwide/workdir/03_rust-lang-learning) [INFO] [stderr] Compiling leetcode-algorithm v0.1.0 (/opt/rustwide/workdir/00_leetcode-algorithm) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 19.82s [INFO] running `Command { std: "docker" "inspect" "f836f24ad9470d7482f11947df6e6f9747592df6e32037a42bd08a7b8cb9380f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f836f24ad9470d7482f11947df6e6f9747592df6e32037a42bd08a7b8cb9380f", kill_on_drop: false }` [INFO] [stdout] f836f24ad9470d7482f11947df6e6f9747592df6e32037a42bd08a7b8cb9380f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+1.79.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8bea40ccb2d1e39beb90883bc1d02a3cf492f5fe62658718ad3d2dcbeb358bf1 [INFO] running `Command { std: "docker" "start" "-a" "8bea40ccb2d1e39beb90883bc1d02a3cf492f5fe62658718ad3d2dcbeb358bf1", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/leetcode_algorithm-5548a2254c475465) [INFO] [stdout] [INFO] [stdout] running 51 tests [INFO] [stdout] test p1235::test_upper_bound ... ok [INFO] [stdout] test bw_116::test::check_c ... ok [INFO] [stdout] test p1334::test::test_2 ... ok [INFO] [stdout] test p1410::test::test ... ok [INFO] [stdout] test p1334::test::test ... ok [INFO] [stdout] test p1670::test::test_case_1 ... ok [INFO] [stdout] test p1670::test::test_case_2 ... ok [INFO] [stdout] test p2609::test::test ... ok [INFO] [stdout] test p1793::test::test_maximum_score2 ... ok [INFO] [stdout] test p2003::test::test_v1 ... ok [INFO] [stdout] test p2698::test::test_can_partition ... ok [INFO] [stdout] test p2127::test::test_maximum_invitations ... ok [INFO] [stdout] test p2698::test::test_punishment_number ... ok [INFO] [stdout] test p2736::test::test_1 ... ok [INFO] [stdout] test p187::test::test ... ok [INFO] [stdout] test p2663::tests::test_smallest_beautiful_string ... ok [INFO] [stdout] test p275::test::test_0 ... ok [INFO] [stdout] test p331::test_is_valid_serialization ... ok [INFO] [stdout] test p2304::test::test ... ok [INFO] [stdout] test p421::test::test_find_maximum_xor ... ok [INFO] [stdout] test p275::test::test_normal ... ok [INFO] [stdout] test p715::test::test1 ... ok [INFO] [stdout] test test::test::test1 ... ok [INFO] [stdout] test p2710::tests::test_remove_trailing_zeros ... ok [INFO] [stdout] test test::test::test2 ... ok [INFO] [stdout] test wc374::test::test_c ... ok [INFO] [stdout] test p715::test::test2 ... ok [INFO] [stdout] test wc377::test::test_b ... ok [INFO] [stdout] test wc393::test::test_bit_ops ... ok [INFO] [stdout] test wc393::test::test_find_latest_time ... ok [INFO] [stdout] test wc393::test::test_gcd ... ok [INFO] [stdout] test wc393::test::test_lcm ... ok [INFO] [stdout] test wc396::test::test_min_anagram_length ... ok [INFO] [stdout] test wc_369::test::test_a ... ok [INFO] [stdout] test wc_369::test::test_b ... ok [INFO] [stdout] test wc_369::test::test_c ... ok [INFO] [stdout] test wc_369::test::test_d ... ok [INFO] [stdout] test wc_370::test::test_a ... ok [INFO] [stdout] test wc_370::test::test_b ... ok [INFO] [stdout] test wc_370::test::test_binary_representation ... ok [INFO] [stdout] test wc_370::test::test_c ... ok [INFO] [stdout] test p901::test::should_work ... ok [INFO] [stdout] test p3040::tests::test_max_operations ... ok [INFO] [stdout] test wc378::test::test_b ... ok [INFO] [stdout] test wc389::test::test_minimum_deletions ... ok [INFO] [stdout] test wc378::test::test_c ... ok [INFO] [stdout] test wc377::test::test_c ... ok [INFO] [stdout] test wc_373::test::test_c ... ok [INFO] [stdout] test wc_373::test::test_d ... ok [INFO] [stdout] test wc_370::test::test_d ... ok [INFO] [stdout] test p1883::test_min_skip2 ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 51 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 12.97s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mini_async_runtime_unix-d5d7d95721ba5735) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/mini_redis-a1ec7f0ba7d18f2d) [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test frame::test::frame_check_array ... ok [INFO] [stdout] test frame::test::frame_check_simple_str ... ok [INFO] [stdout] test frame::test::frame_parse_simple_string ... ok [INFO] [stdout] test frame::test::frame_check_simple_str_failure ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/cli.rs (/opt/rustwide/target/debug/deps/cli-7969e4caf5e982c5) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/client.rs (/opt/rustwide/target/debug/deps/client-73b02b00a0c4cdc1) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/bin/server.rs (/opt/rustwide/target/debug/deps/mini_redis_server-81422114def88917) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/monkey_in_rust-248441aa50838a3a) [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test parser::test::test_parsing_let_statement ... ok [INFO] [stdout] test parser::test::test_parsing_integer_literal ... ok [INFO] [stdout] test parser::test::test_parsing_identifier_expression ... ok [INFO] [stdout] test parser::test::test_parsing_return_statement ... ok [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/rust_lang_learning-dfbaed8401f2ff17) [INFO] [stdout] test parser::test::test_parsing_prefix_expression ... ok [INFO] [stdout] test evaluator::test::test_bang_operators ... ok [INFO] [stdout] test parser::test::test_parsing_infix_expression ... ok [INFO] [stdout] test parser::test::display ... ok [INFO] [stdout] test lexer::test::test_next_token ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.03s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test vec::test::test_zst ... ok [INFO] [stdout] test vec::test::test_basic ... ok [INFO] [stdout] test understand_linked_list_in_std ... ok [INFO] [stdout] test arc::test::test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 4 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] Doc-tests leetcode_algorithm [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test 00_leetcode-algorithm/src/wc393.rs - wc393::find_kth_smallest (line 82) ... FAILED [INFO] [stdout] test 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 34) ... FAILED [INFO] [stdout] test 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 39) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- 00_leetcode-algorithm/src/wc393.rs - wc393::find_kth_smallest (line 82) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `:` [INFO] [stdout] --> 00_leetcode-algorithm/src/wc393.rs:83:2 [INFO] [stdout] | [INFO] [stdout] 3 | 2: 2 4 6 8 10 12 14 16 ...30 [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 34) stdout ---- [INFO] [stdout] error: expected one of `,`, `:`, or `}`, found `[` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | --- -^ expected one of `,`, `:`, or `}` [INFO] [stdout] | | | [INFO] [stdout] | | while parsing this struct field [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: try naming a field [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f: f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: expected one of `,`, `:`, or `}`, found `[` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | --- -^ expected one of `,`, `:`, or `}` [INFO] [stdout] | | | [INFO] [stdout] | | while parsing this struct field [INFO] [stdout] | while parsing this struct [INFO] [stdout] | [INFO] [stdout] help: try naming a field [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f: f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] error: expected `..`, found `...` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:35:43 [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` to fill in the rest of the fields [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, .., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] error: expected expression, found `,` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:35:46 [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ^ expected expression [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `,` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:35:67 [INFO] [stdout] | [INFO] [stdout] 3 | f[i][j] = min{f[i][j-1], f[i-x][j-1] + 1, ..., f[i - kx][j-1] + k}, k = i / x, x = coins[j] [INFO] [stdout] | ^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 39) stdout ---- [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, .., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..=, f[i-kx][j-1] + k - 1) [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:46 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error: unexpected token: `...` [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: use `..` for an exclusive range [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, .., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ~~ [INFO] [stdout] help: or `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..=, f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] error[E0586]: inclusive range with no end [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:48 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^^^ help: use `..` instead [INFO] [stdout] | [INFO] [stdout] = note: inclusive ranges must be bounded at the end (`..=b` or `a..=b`) [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:3 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `min` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:13 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:17 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:19 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:21 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:24 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:30 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:32 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:38 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:51 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:53 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `kx` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:55 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:59 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `k` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:66 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^ help: a tuple variant with a similar name exists: `Ok` [INFO] [stdout] --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:506:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `min` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 + use core::cmp::min; [INFO] [stdout] | [INFO] [stdout] 2 + use std::cmp::min; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:17 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:19 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `x` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:21 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:24 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:32 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:34 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:40 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `f` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:53 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `i` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:55 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `kx` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:57 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `j` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:61 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `k` in this scope [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:68 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ help: a tuple variant with a similar name exists: `Ok` [INFO] [stdout] --> /rustc/129f3b9964af4d4a709d1383930ade12dfe7c081/library/core/src/result.rs:506:5 [INFO] [stdout] | [INFO] [stdout] = note: similarly named tuple variant `Ok` defined here [INFO] [stdout] [INFO] [stdout] error: invalid suffix `x` for number literal [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:40:34 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ^^ invalid suffix `x` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] error: invalid suffix `x` for number literal [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:36 [INFO] [stdout] | [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^^ invalid suffix `x` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> 00_leetcode-algorithm/src/p322.rs:41:11 [INFO] [stdout] | [INFO] [stdout] 3 | f[i-x][j] = min(f[i-x][j-1], f[i-2x][j-1]+1, ..., f[i-kx][j-1] + k - 1) [INFO] [stdout] | ----------------------------------------------------------- cannot assign to this expression [INFO] [stdout] 4 | = min(f[i-x][j-1]+1, f[i-2x][j-1]+2, ..., f[i-kx][j-1] + k) - 1 [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 37 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0425, E0586. [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 34) [INFO] [stdout] 00_leetcode-algorithm/src/p322.rs - p322::coin_change2 (line 39) [INFO] [stdout] 00_leetcode-algorithm/src/wc393.rs - wc393::find_kth_smallest (line 82) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `-p leetcode-algorithm --doc` [INFO] running `Command { std: "docker" "inspect" "8bea40ccb2d1e39beb90883bc1d02a3cf492f5fe62658718ad3d2dcbeb358bf1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8bea40ccb2d1e39beb90883bc1d02a3cf492f5fe62658718ad3d2dcbeb358bf1", kill_on_drop: false }` [INFO] [stdout] 8bea40ccb2d1e39beb90883bc1d02a3cf492f5fe62658718ad3d2dcbeb358bf1 [INFO] testing qyuzh/rust-practice against beta-2024-06-22 for beta-1.80-4 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqyuzh%2Frust-practice" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qyuzh/rust-practice on toolchain beta-2024-06-22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qyuzh/rust-practice [INFO] finished tweaking git repo https://github.com/qyuzh/rust-practice [INFO] tweaked toml for git repo https://github.com/qyuzh/rust-practice written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/qyuzh/rust-practice 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" "+beta-2024-06-22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d445b5c3a984aad76f985a8b70edf6c3ee79ac9957ca09deaf6ded635f4141b4 [INFO] running `Command { std: "docker" "start" "-a" "d445b5c3a984aad76f985a8b70edf6c3ee79ac9957ca09deaf6ded635f4141b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d445b5c3a984aad76f985a8b70edf6c3ee79ac9957ca09deaf6ded635f4141b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d445b5c3a984aad76f985a8b70edf6c3ee79ac9957ca09deaf6ded635f4141b4", kill_on_drop: false }` [INFO] [stdout] d445b5c3a984aad76f985a8b70edf6c3ee79ac9957ca09deaf6ded635f4141b4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-06-22" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 66f02297ac17221d4880be8b09d9044e3999ebd78f0ebd8c49ef6fcceaa7676b [INFO] running `Command { std: "docker" "start" "-a" "66f02297ac17221d4880be8b09d9044e3999ebd78f0ebd8c49ef6fcceaa7676b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling futures-sink v0.3.29 [INFO] [stderr] Compiling futures-channel v0.3.29 [INFO] [stderr] Compiling futures-task v0.3.29 [INFO] [stderr] Compiling futures-util v0.3.29 [INFO] [stderr] Compiling futures-io v0.3.29 [INFO] [stderr] Compiling lock_api v0.4.10 [INFO] [stderr] Compiling parking_lot_core v0.9.8 [INFO] [stderr] Compiling num-traits v0.2.16 [INFO] [stderr] Compiling thiserror v1.0.50 [INFO] [stderr] Compiling anstyle-parse v0.2.2 [INFO] [stderr] Compiling indexmap v1.9.3 [INFO] [stderr] Compiling anstyle-query v1.0.0 [INFO] [stderr] Compiling anstyle v1.0.4 [INFO] [stderr] Compiling openssl v0.10.59 [INFO] [stderr] Compiling anstream v0.6.4 [INFO] [stderr] Compiling strsim v0.10.0 [INFO] [stderr] Compiling integer-encoding v3.0.4 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling clap_lex v0.5.1 [INFO] [stderr] Compiling cc v1.0.83 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling clap_builder v4.4.6 [INFO] [stderr] Compiling serde v1.0.190 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling unicode-bidi v0.3.13 [INFO] [stderr] Compiling idna v0.4.0 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling getrandom v0.2.10 [INFO] [stderr] Compiling openssl-sys v0.9.95 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling threadpool v1.8.1 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling time v0.3.30 [INFO] [stderr] Compiling thrift v0.15.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling atoi v2.0.0 [INFO] [stdout] error[E0282]: type annotations needed for `Box<_>` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/time-0.3.30/src/format_description/parse/mod.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 83 | let items = format_items [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | Ok(items.into()) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `items` an explicit type, where the placeholders `_` are specified [INFO] [stdout] | [INFO] [stdout] 83 | let items: Box<_> = format_items [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling socket2 v0.4.10 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] Compiling polling v2.8.0 [INFO] [stderr] error: could not compile `time` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "66f02297ac17221d4880be8b09d9044e3999ebd78f0ebd8c49ef6fcceaa7676b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "66f02297ac17221d4880be8b09d9044e3999ebd78f0ebd8c49ef6fcceaa7676b", kill_on_drop: false }` [INFO] [stdout] 66f02297ac17221d4880be8b09d9044e3999ebd78f0ebd8c49ef6fcceaa7676b