[INFO] cloning repository https://github.com/yaojianpin/mock-server [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yaojianpin/mock-server" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaojianpin%2Fmock-server", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaojianpin%2Fmock-server'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4ab8df9d834a916c8cd9fd7fa90ff15d0b4a588e [INFO] testing yaojianpin/mock-server against try#db823df02fd0c2cf67b43025ac3fef3f2d743245 for pr-150681 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyaojianpin%2Fmock-server" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/yaojianpin/mock-server [INFO] finished tweaking git repo https://github.com/yaojianpin/mock-server [INFO] tweaked toml for git repo https://github.com/yaojianpin/mock-server written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/yaojianpin/mock-server on toolchain db823df02fd0c2cf67b43025ac3fef3f2d743245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/yaojianpin/mock-server 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" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81de79bead7e2006bf13c175651c5d4c822f0c5768f2333de79bf7d7cd652ec9 [INFO] running `Command { std: "docker" "start" "-a" "81de79bead7e2006bf13c175651c5d4c822f0c5768f2333de79bf7d7cd652ec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81de79bead7e2006bf13c175651c5d4c822f0c5768f2333de79bf7d7cd652ec9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81de79bead7e2006bf13c175651c5d4c822f0c5768f2333de79bf7d7cd652ec9", kill_on_drop: false }` [INFO] [stdout] 81de79bead7e2006bf13c175651c5d4c822f0c5768f2333de79bf7d7cd652ec9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 989d393b6ba647d06eb5282c2ae40d74c0ab5b7779896b55b16bdeab22d37801 [INFO] running `Command { std: "docker" "start" "-a" "989d393b6ba647d06eb5282c2ae40d74c0ab5b7779896b55b16bdeab22d37801", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.67 [INFO] [stderr] Compiling unicode-ident v1.0.2 [INFO] [stderr] Compiling libc v0.2.148 [INFO] [stderr] Compiling syn v1.0.98 [INFO] [stderr] Compiling futures-core v0.3.21 [INFO] [stderr] Compiling futures-sink v0.3.21 [INFO] [stderr] Compiling futures-task v0.3.21 [INFO] [stderr] Compiling bytes v1.2.1 [INFO] [stderr] Compiling futures-channel v0.3.21 [INFO] [stderr] Compiling smallvec v1.9.0 [INFO] [stderr] Compiling itoa v1.0.2 [INFO] [stderr] Compiling once_cell v1.13.0 [INFO] [stderr] Compiling futures-util v0.3.21 [INFO] [stderr] Compiling futures-io v0.3.28 [INFO] [stderr] Compiling serde v1.0.188 [INFO] [stderr] Compiling async-trait v0.1.73 [INFO] [stderr] Compiling httparse v1.7.1 [INFO] [stderr] Compiling mime_guess v2.0.4 [INFO] [stderr] Compiling ryu v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.82 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling tracing-core v0.1.29 [INFO] [stderr] Compiling axum-core v0.3.4 [INFO] [stderr] Compiling http-range-header v0.3.0 [INFO] [stderr] Compiling axum v0.6.7 [INFO] [stderr] Compiling indexmap v1.9.1 [INFO] [stderr] Compiling sync_wrapper v0.1.1 [INFO] [stderr] Compiling os_str_bytes v6.3.0 [INFO] [stderr] Compiling http v0.2.8 [INFO] [stderr] Compiling heck v0.4.0 [INFO] [stderr] Compiling matchit v0.7.3 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling thread_local v1.1.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling matchit v0.5.0 [INFO] [stderr] Compiling termcolor v1.1.3 [INFO] [stderr] Compiling textwrap v0.15.0 [INFO] [stderr] Compiling regex-syntax v0.6.27 [INFO] [stderr] Compiling clap_lex v0.2.4 [INFO] [stderr] Compiling tracing-log v0.1.3 [INFO] [stderr] Compiling parking_lot_core v0.9.3 [INFO] [stderr] Compiling socket2 v0.5.4 [INFO] [stderr] Compiling mio v0.8.8 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling signal-hook-registry v1.4.0 [INFO] [stderr] Compiling num_cpus v1.13.1 [INFO] [stderr] Compiling socket2 v0.4.4 [INFO] [stderr] Compiling syn v2.0.37 [INFO] [stderr] Compiling getrandom v0.2.7 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling tracing-subscriber v0.3.15 [INFO] [stderr] Compiling rand_core v0.6.3 [INFO] [stderr] Compiling uuid v1.1.2 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling regex v1.6.0 [INFO] [stderr] Compiling tokio-macros v2.1.0 [INFO] [stderr] Compiling serde_derive v1.0.188 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling futures-macro v0.3.21 [INFO] [stderr] Compiling tracing-attributes v0.1.22 [INFO] [stderr] Compiling pin-project-internal v1.0.11 [INFO] [stderr] Compiling clap_derive v3.2.17 [INFO] [stderr] Compiling tokio v1.32.0 [INFO] [stderr] Compiling pin-project v1.0.11 [INFO] [stderr] Compiling tracing v0.1.36 [INFO] [stderr] Compiling clap v3.2.17 [INFO] [stderr] Compiling futures-executor v0.3.21 [INFO] [stderr] Compiling axum-core v0.2.7 [INFO] [stderr] Compiling futures v0.3.21 [INFO] [stderr] Compiling tower v0.4.13 [INFO] [stderr] Compiling tokio-util v0.7.9 [INFO] [stderr] Compiling hyper v0.14.20 [INFO] [stderr] Compiling tokio-stream v0.1.14 [INFO] [stderr] Compiling tower-http v0.3.4 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.14 [INFO] [stderr] Compiling axum v0.5.13 [INFO] [stderr] Compiling axum-streams v0.9.1 [INFO] [stderr] Compiling mock-server v1.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `mapping` is never read [INFO] [stdout] --> src/models/data_config.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DataConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub mapping: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/models/named_query.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct NamedQuery { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedQuery` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 45.27s [INFO] running `Command { std: "docker" "inspect" "989d393b6ba647d06eb5282c2ae40d74c0ab5b7779896b55b16bdeab22d37801", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "989d393b6ba647d06eb5282c2ae40d74c0ab5b7779896b55b16bdeab22d37801", kill_on_drop: false }` [INFO] [stdout] 989d393b6ba647d06eb5282c2ae40d74c0ab5b7779896b55b16bdeab22d37801 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 09d13992f52d404a6232e4519d44c010e3927dacaa941d0df9db9dbc566dd91c [INFO] running `Command { std: "docker" "start" "-a" "09d13992f52d404a6232e4519d44c010e3927dacaa941d0df9db9dbc566dd91c", kill_on_drop: false }` [INFO] [stderr] Compiling mock-server v1.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `mapping` is never read [INFO] [stdout] --> src/models/data_config.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct DataConfig { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 24 | pub mapping: HashMap, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `DataConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `id` is never read [INFO] [stdout] --> src/models/named_query.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct NamedQuery { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | pub id: Option, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `NamedQuery` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.62s [INFO] running `Command { std: "docker" "inspect" "09d13992f52d404a6232e4519d44c010e3927dacaa941d0df9db9dbc566dd91c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "09d13992f52d404a6232e4519d44c010e3927dacaa941d0df9db9dbc566dd91c", kill_on_drop: false }` [INFO] [stdout] 09d13992f52d404a6232e4519d44c010e3927dacaa941d0df9db9dbc566dd91c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:845e597a41426bbf2703be69acdb67d10b6de511142d05cba7bbe119c898b2c7" "/opt/rustwide/cargo-home/bin/cargo" "+db823df02fd0c2cf67b43025ac3fef3f2d743245" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] ef85d5035b3ad101be36a4714726481ea4c4b724e2a9a375bdbc4fb301c3f923 [INFO] running `Command { std: "docker" "start" "-a" "ef85d5035b3ad101be36a4714726481ea4c4b724e2a9a375bdbc4fb301c3f923", kill_on_drop: false }` [INFO] [stderr] warning: field `mapping` is never read [INFO] [stdout] [INFO] [stderr] --> src/models/data_config.rs:24:9 [INFO] [stdout] running 27 tests [INFO] [stderr] | [INFO] [stderr] 21 | pub struct DataConfig { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 24 | pub mapping: HashMap, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `DataConfig` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: field `id` is never read [INFO] [stderr] --> src/models/named_query.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct NamedQuery { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | pub id: Option, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `NamedQuery` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `mock-server` (bin "mock-server" test) generated 2 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/mock_server-cddf93dfe402abb5) [INFO] [stdout] test tests::array::array_pick ... ok [INFO] [stdout] test tests::basic::fixed_str_count ... ok [INFO] [stdout] test tests::array::array_order ... ok [INFO] [stdout] test tests::basic::none_template_number ... ok [INFO] [stdout] test tests::basic::dot_decimal_number_f64 ... ok [INFO] [stdout] test tests::basic::none_template_object ... ok [INFO] [stdout] test tests::func::fun_paragraph ... ok [INFO] [stdout] test tests::basic::none_template_str ... ok [INFO] [stdout] test tests::func::fun_paragraph_with_one_param ... ok [INFO] [stdout] test tests::basic::serial_count_str ... ok [INFO] [stdout] test tests::basic::min_decimal_number_f64 ... ok [INFO] [stdout] test tests::basic::none_template_arr ... ok [INFO] [stdout] test tests::basic::random_decimal_number_f64 ... ok [INFO] [stdout] test tests::func::fun_word_with_one_param ... ok [INFO] [stdout] test tests::func::fun_sentence_with_min_max_params ... ok [INFO] [stdout] test tests::func::fun_name ... ok [INFO] [stdout] test tests::func::fun_paragraph_with_min_max_params ... ok [INFO] [stdout] test tests::basic::fixed_count_array ... ok [INFO] [stdout] test tests::basic::random_number_u64 ... ok [INFO] [stdout] test tests::object::object_gen ... ok [INFO] [stdout] test tests::func::fun_word_with_min_max_params ... ok [INFO] [stdout] test tests::func::fun_word ... ok [INFO] [stdout] test tests::basic::random_count_array ... ok [INFO] [stdout] test tests::basic::random_str_count ... ok [INFO] [stdout] test tests::array::array_increment ... ok [INFO] [stdout] test tests::func::fun_sentence ... ok [INFO] [stdout] test tests::func::fun_sentence_with_one_param ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 27 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.24s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "ef85d5035b3ad101be36a4714726481ea4c4b724e2a9a375bdbc4fb301c3f923", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef85d5035b3ad101be36a4714726481ea4c4b724e2a9a375bdbc4fb301c3f923", kill_on_drop: false }` [INFO] [stdout] ef85d5035b3ad101be36a4714726481ea4c4b724e2a9a375bdbc4fb301c3f923