[INFO] fetching crate convertor 2.6.12... [INFO] testing convertor-2.6.12 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate convertor 2.6.12 into /workspace/builds/worker-0-tc2/source [INFO] started tweaking crates.io crate convertor 2.6.12 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate convertor 2.6.12 [INFO] tweaked toml for crates.io crate convertor 2.6.12 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate convertor 2.6.12 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate convertor 2.6.12 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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 119c1d826e614e2f71d58231c28c239698e00a8d1f837b70a80ec9e5ec373116 [INFO] running `Command { std: "docker" "start" "-a" "119c1d826e614e2f71d58231c28c239698e00a8d1f837b70a80ec9e5ec373116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "119c1d826e614e2f71d58231c28c239698e00a8d1f837b70a80ec9e5ec373116", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "119c1d826e614e2f71d58231c28c239698e00a8d1f837b70a80ec9e5ec373116", kill_on_drop: false }` [INFO] [stdout] 119c1d826e614e2f71d58231c28c239698e00a8d1f837b70a80ec9e5ec373116 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 835e98007aded973f23ad2443b788f6356f89cfe4f787e91a70f84f4c752326c [INFO] running `Command { std: "docker" "start" "-a" "835e98007aded973f23ad2443b788f6356f89cfe4f787e91a70f84f4c752326c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling serde_core v1.0.225 [INFO] [stderr] Compiling bytes v1.9.0 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling serde v1.0.225 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling serde_json v1.0.145 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling rustls v0.23.28 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling cpufeatures v0.2.12 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling http v1.3.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling concurrent-queue v2.5.0 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling zerocopy v0.8.25 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling litrs v0.4.1 [INFO] [stderr] Compiling psl-types v2.0.11 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling http-body v1.0.0 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling crossbeam-channel v0.5.11 [INFO] [stderr] Compiling webpki-roots v1.0.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling tracing-log v0.2.0 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling inout v0.1.3 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling document-features v0.2.11 [INFO] [stderr] Compiling universal-hash v0.5.1 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling cipher v0.4.4 [INFO] [stderr] Compiling nu-ansi-term v0.50.1 [INFO] [stderr] Compiling moka v0.12.10 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Compiling fastrand v2.3.0 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling thiserror v2.0.16 [INFO] [stderr] Compiling rustls-native-certs v0.8.0 [INFO] [stderr] Compiling chacha20 v0.9.1 [INFO] [stderr] Compiling clap_builder v4.5.47 [INFO] [stderr] Compiling sha1 v0.10.6 [INFO] [stderr] Compiling backon v1.5.2 [INFO] [stderr] Compiling poly1305 v0.8.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling aead v0.5.2 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling headers-core v0.3.0 [INFO] [stderr] Compiling uuid v1.16.0 [INFO] [stderr] Compiling toml_datetime v0.7.1 [INFO] [stderr] Compiling serde_spanned v1.0.1 [INFO] [stderr] Compiling ppv-lite86 v0.2.21 [INFO] [stderr] Compiling rand_core v0.9.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling arc-swap v1.7.1 [INFO] [stderr] Compiling tagptr v0.2.0 [INFO] [stderr] Compiling toml_writer v1.0.2 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling rand_chacha v0.9.0 [INFO] [stderr] Compiling headers v0.4.1 [INFO] [stderr] Compiling chacha20poly1305 v0.10.1 [INFO] [stderr] Compiling toml_parser v1.0.2 [INFO] [stderr] Compiling toml v0.9.6 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling hyper v1.7.0 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling combine v4.6.7 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.225 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.28 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling thiserror-impl v2.0.16 [INFO] [stderr] Compiling clap_derive v4.5.47 [INFO] [stderr] Compiling strum_macros v0.27.2 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling rustls-webpki v0.103.3 [INFO] [stderr] Compiling clap v4.5.47 [INFO] [stderr] Compiling strum v0.27.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling tracing-serde v0.2.0 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_yaml v0.9.34+deprecated [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling jsonpath_lib v0.3.0 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.1.0 [INFO] [stderr] Compiling url v2.5.7 [INFO] [stderr] Compiling publicsuffix v2.3.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling cookie_store v0.21.1 [INFO] [stderr] Compiling hyper-rustls v0.27.7 [INFO] [stderr] Compiling redis v0.32.5 [INFO] [stderr] Compiling reqwest v0.12.23 [INFO] [stderr] Compiling convertor v2.6.12 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 26.57s [INFO] running `Command { std: "docker" "inspect" "835e98007aded973f23ad2443b788f6356f89cfe4f787e91a70f84f4c752326c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "835e98007aded973f23ad2443b788f6356f89cfe4f787e91a70f84f4c752326c", kill_on_drop: false }` [INFO] [stdout] 835e98007aded973f23ad2443b788f6356f89cfe4f787e91a70f84f4c752326c [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 383f1df9eff2e04b51509ff90a250b772504c3f9f802d6944997342928f980ab [INFO] running `Command { std: "docker" "start" "-a" "383f1df9eff2e04b51509ff90a250b772504c3f9f802d6944997342928f980ab", kill_on_drop: false }` [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling similar v2.7.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling matchers v0.2.0 [INFO] [stderr] Compiling regex v1.11.2 [INFO] [stderr] Compiling tracing-subscriber v0.3.20 [INFO] [stderr] Compiling insta v1.43.2 [INFO] [stderr] Compiling tracing-appender v0.2.3 [INFO] [stderr] Compiling convertor v2.6.12 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `color_eyre` [INFO] [stdout] --> src/testkit.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use color_eyre::eyre::OptionExt; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `color_eyre` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `color_eyre`, use `cargo add color_eyre` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `httpmock` [INFO] [stdout] --> src/testkit.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use httpmock::Method::{GET, POST}; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `httpmock` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `httpmock`, use `cargo add httpmock` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `color_eyre` [INFO] [stdout] --> src/testkit.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use color_eyre::Report; [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `color_eyre` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `color_eyre`, use `cargo add color_eyre` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `httpmock` [INFO] [stdout] --> src/testkit.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use httpmock::MockServer; [INFO] [stdout] | ^^^^^^^^ use of unresolved module or unlinked crate `httpmock` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `httpmock`, use `cargo add httpmock` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let mock_server = MockServer::start_async().await; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 48 | Url::parse(&mock_server.url(format!("{subscribe_url_path}?token={token}"))).expect("不合法的订阅地址"); [INFO] [stdout] | ----------- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving `mock_server` an explicit type [INFO] [stdout] | [INFO] [stdout] 41 | let mock_server: /* Type */ = MockServer::start_async().await; [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:52:26 [INFO] [stdout] | [INFO] [stdout] 52 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | when.method(POST).path(self.api_config.login_path()); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 52 | .mock_async(|when: /* Type */, then| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:52:32 [INFO] [stdout] | [INFO] [stdout] 52 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | then.status(200) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 52 | .mock_async(|when, then: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 67 | when.method(GET).path(self.api_config.get_sub_path()); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 66 | .mock_async(|when: /* Type */, then| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:66:32 [INFO] [stdout] | [INFO] [stdout] 66 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | then.status(200) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 66 | .mock_async(|when, then: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:80:26 [INFO] [stdout] | [INFO] [stdout] 80 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 81 | when.method(POST).path(self.api_config.reset_sub_path()); [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 80 | .mock_async(|when: /* Type */, then| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:80:32 [INFO] [stdout] | [INFO] [stdout] 80 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | then.status(200) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 80 | .mock_async(|when, then: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok_or_eyre` found for enum `std::option::Option` in the current scope [INFO] [stdout] --> src/testkit.rs:92:49 [INFO] [stdout] | [INFO] [stdout] 92 | let sub_host = self.sub_url.host_port().ok_or_eyre("无法从 sub_url 中提取 host port")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ok_or` with a similar name [INFO] [stdout] | [INFO] [stdout] 92 - let sub_host = self.sub_url.host_port().ok_or_eyre("无法从 sub_url 中提取 host port")?; [INFO] [stdout] 92 + let sub_host = self.sub_url.host_port().ok_or("无法从 sub_url 中提取 host port")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:95:30 [INFO] [stdout] | [INFO] [stdout] 95 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 96 | when.method(GET) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 95 | .mock_async(|when: /* Type */, then| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 101 | then.status(200) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 95 | .mock_async(|when, then: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `ok_or_eyre` found for enum `std::option::Option` in the current scope [INFO] [stdout] --> src/testkit.rs:109:49 [INFO] [stdout] | [INFO] [stdout] 109 | let sub_host = self.sub_url.host_port().ok_or_eyre("无法从 sub_url 中提取 host port")?; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `ok_or` with a similar name [INFO] [stdout] | [INFO] [stdout] 109 - let sub_host = self.sub_url.host_port().ok_or_eyre("无法从 sub_url 中提取 host port")?; [INFO] [stdout] 109 + let sub_host = self.sub_url.host_port().ok_or("无法从 sub_url 中提取 host port")?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] 113 | when.method(GET) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 112 | .mock_async(|when: /* Type */, then| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/testkit.rs:112:36 [INFO] [stdout] | [INFO] [stdout] 112 | .mock_async(|when, then| { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 118 | then.status(200) [INFO] [stdout] | ---- type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 112 | .mock_async(|when, then: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `color_eyre` [INFO] [stdout] --> src/testkit.rs:19:25 [INFO] [stdout] | [INFO] [stdout] 19 | if let Err(e) = color_eyre::install() { [INFO] [stdout] | ^^^^^^^^^^ use of unresolved module or unlinked crate `color_eyre` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `color_eyre`, use `cargo add color_eyre` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0282, E0432, E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `convertor` (lib test) due to 18 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "383f1df9eff2e04b51509ff90a250b772504c3f9f802d6944997342928f980ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "383f1df9eff2e04b51509ff90a250b772504c3f9f802d6944997342928f980ab", kill_on_drop: false }` [INFO] [stdout] 383f1df9eff2e04b51509ff90a250b772504c3f9f802d6944997342928f980ab