[INFO] fetching crate discord_notify 0.3.1... [INFO] checking discord_notify-0.3.1 against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] extracting crate discord_notify 0.3.1 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate discord_notify 0.3.1 [INFO] finished tweaking crates.io crate discord_notify 0.3.1 [INFO] tweaked toml for crates.io crate discord_notify 0.3.1 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate discord_notify 0.3.1 on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate discord_notify 0.3.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9f148d419b72f3b97a10c7d4ffb3c050e451bd504b1968b767d6bb7ba378b404 [INFO] running `Command { std: "docker" "start" "-a" "9f148d419b72f3b97a10c7d4ffb3c050e451bd504b1968b767d6bb7ba378b404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9f148d419b72f3b97a10c7d4ffb3c050e451bd504b1968b767d6bb7ba378b404", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9f148d419b72f3b97a10c7d4ffb3c050e451bd504b1968b767d6bb7ba378b404", kill_on_drop: false }` [INFO] [stdout] 9f148d419b72f3b97a10c7d4ffb3c050e451bd504b1968b767d6bb7ba378b404 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 810307ae86b0c2f4648c25fe09b68ba564ad206e1bf240c4428f51baa29911c8 [INFO] running `Command { std: "docker" "start" "-a" "810307ae86b0c2f4648c25fe09b68ba564ad206e1bf240c4428f51baa29911c8", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.2.11 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking parking_lot_core v0.9.11 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Checking mio v1.0.3 [INFO] [stderr] Checking indexmap v2.7.1 [INFO] [stderr] Checking bitflags v2.8.0 [INFO] [stderr] Compiling openssl v0.10.69 [INFO] [stderr] Compiling native-tls v0.2.13 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Checking dirs-sys-next v0.1.2 [INFO] [stderr] Checking getrandom v0.3.1 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking is-terminal v0.4.15 [INFO] [stderr] Checking dirs-next v2.0.0 [INFO] [stderr] Checking regex-automata v0.4.9 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking term v0.7.0 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking csv v1.3.1 [INFO] [stderr] Checking prettytable-rs v0.10.0 [INFO] [stderr] Checking assert-json-diff v2.0.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling zerofrom-derive v0.1.5 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking tokio v1.45.1 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking zerofrom v0.1.5 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking yoke v0.7.5 [INFO] [stderr] Checking zerovec v0.10.4 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking tinystr v0.7.6 [INFO] [stderr] Checking icu_collections v1.5.0 [INFO] [stderr] Checking icu_locid v1.5.0 [INFO] [stderr] Checking icu_provider v1.5.0 [INFO] [stderr] Checking icu_locid_transform v1.5.0 [INFO] [stderr] Checking tokio-util v0.7.13 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking icu_properties v1.5.1 [INFO] [stderr] Checking tower-http v0.6.6 [INFO] [stderr] Checking h2 v0.4.10 [INFO] [stderr] Checking icu_normalizer v1.5.0 [INFO] [stderr] Checking idna_adapter v1.2.0 [INFO] [stderr] Checking idna v1.0.3 [INFO] [stderr] Checking url v2.5.4 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Checking hyper-tls v0.6.0 [INFO] [stderr] Checking mockito v1.7.0 [INFO] [stderr] Checking reqwest v0.12.20 [INFO] [stderr] Checking discord_notify v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/lib.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/lib.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate prettytable; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/lib.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lib::DiscordBot` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::lib::DiscordBot; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `mockito::server_url` [INFO] [stdout] --> src/main.rs:12:19 [INFO] [stdout] | [INFO] [stdout] 12 | use mockito::{server_url, Mock}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | no `server_url` in the root [INFO] [stdout] | help: a similar name exists in the module: `server_pool` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `path` in crate `mockito` [INFO] [stdout] --> src/main.rs:26:27 [INFO] [stdout] | [INFO] [stdout] 26 | .and(mockito::path(format!("/channels/{}/messages", channel_id))) [INFO] [stdout] | ^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `header` in crate `mockito` [INFO] [stdout] --> src/main.rs:27:27 [INFO] [stdout] | [INFO] [stdout] 27 | .and(mockito::header("authorization", "Bot test_token")) [INFO] [stdout] | ^^^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `json_body` in crate `mockito` [INFO] [stdout] --> src/main.rs:28:27 [INFO] [stdout] | [INFO] [stdout] 28 | .and(mockito::json_body(json!({ [INFO] [stdout] | ^^^^^^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `mockito::response` [INFO] [stdout] --> src/main.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 35 | .respond_with(mockito::response().status(200)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `path` in crate `mockito` [INFO] [stdout] --> src/main.rs:52:27 [INFO] [stdout] | [INFO] [stdout] 52 | .and(mockito::path(format!("/channels/{}/messages", channel_id))) [INFO] [stdout] | ^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `header` in crate `mockito` [INFO] [stdout] --> src/main.rs:53:27 [INFO] [stdout] | [INFO] [stdout] 53 | .and(mockito::header("authorization", "Bot test_token")) [INFO] [stdout] | ^^^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `json_body` in crate `mockito` [INFO] [stdout] --> src/main.rs:54:27 [INFO] [stdout] | [INFO] [stdout] 54 | .and(mockito::json_body(json!({ [INFO] [stdout] | ^^^^^^^^^ not found in `mockito` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, found module `mockito::response` [INFO] [stdout] --> src/main.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | .respond_with(mockito::response().status(400)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ not a function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `pretty_print_bot_details` is never used [INFO] [stdout] --> src/lib.rs:39:4 [INFO] [stdout] | [INFO] [stdout] 39 | fn pretty_print_bot_details (bot: &DiscordBot) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `DiscordBot` is never constructed [INFO] [stdout] --> src/lib.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub struct DiscordBot { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_with_base_url`, `send_notification`, and `send_advanced_notification` are never used [INFO] [stdout] --> src/lib.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl DiscordBot { [INFO] [stdout] | --------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn new(identifier: &str, channel_id: &str) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 82 | pub fn new_with_base_url(identifier: &str, channel_id: &str, base_url: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 105 | pub async fn send_notification(&self, message: &str) -> Result<(), reqwest::Error> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 137 | pub async fn send_advanced_notification( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `response` is private [INFO] [stdout] --> src/main.rs:35:36 [INFO] [stdout] | [INFO] [stdout] 35 | .respond_with(mockito::response().status(200)) [INFO] [stdout] | ^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `response` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mockito-1.7.0/src/lib.rs:744:1 [INFO] [stdout] | [INFO] [stdout] 744 | mod response; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: module `response` is private [INFO] [stdout] --> src/main.rs:61:36 [INFO] [stdout] | [INFO] [stdout] 61 | .respond_with(mockito::response().status(400)) [INFO] [stdout] | ^^^^^^^^ private module [INFO] [stdout] | [INFO] [stdout] note: the module `response` is defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/mockito-1.7.0/src/lib.rs:744:1 [INFO] [stdout] | [INFO] [stdout] 744 | mod response; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: found module declaration for lib.rs [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | mod lib; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: lib.rs is the root of this crate's library target [INFO] [stdout] = help: to refer to it from other targets, use the library's name as the path [INFO] [stdout] = note: `#[warn(special_module_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] extern crate prettytable; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `StatusCode` [INFO] [stdout] --> src/lib.rs:34:23 [INFO] [stdout] | [INFO] [stdout] 34 | use reqwest::{Client, StatusCode}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `given` found for struct `Mock` in the current scope [INFO] [stdout] --> src/main.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let _m = Mock::given("POST") [INFO] [stdout] | ^^^^^ function or associated item not found in `Mock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `given` found for struct `Mock` in the current scope [INFO] [stdout] --> src/main.rs:51:24 [INFO] [stdout] | [INFO] [stdout] 51 | let _m = Mock::given("POST") [INFO] [stdout] | ^^^^^ function or associated item not found in `Mock` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0423, E0425, E0432, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0423`. [INFO] [stdout] [INFO] [stderr] error: could not compile `discord_notify` (bin "discord_notify" test) due to 13 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "810307ae86b0c2f4648c25fe09b68ba564ad206e1bf240c4428f51baa29911c8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "810307ae86b0c2f4648c25fe09b68ba564ad206e1bf240c4428f51baa29911c8", kill_on_drop: false }` [INFO] [stdout] 810307ae86b0c2f4648c25fe09b68ba564ad206e1bf240c4428f51baa29911c8