[INFO] cloning repository https://github.com/frjonsen/IPBot [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frjonsen/IPBot" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrjonsen%2FIPBot", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrjonsen%2FIPBot'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cae06998087f95ad3b815ed2555f414817baa917 [INFO] checking frjonsen/IPBot against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffrjonsen%2FIPBot" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/frjonsen/IPBot on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/frjonsen/IPBot [INFO] finished tweaking git repo https://github.com/frjonsen/IPBot [INFO] tweaked toml for git repo https://github.com/frjonsen/IPBot written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/frjonsen/IPBot already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-8/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/SpaceManiac/discord-rs` [INFO] [stderr] Updating git repository `https://github.com/dckc/rust-sqlite3` [INFO] [stderr] Updating git repository `https://github.com/ArtemGr/rust-websocket` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 5414e8fd39011f7bdb4c1abebf044839598973634ddd0ca1f6a82eefb5d177a0 [INFO] running `Command { std: "docker" "start" "-a" "5414e8fd39011f7bdb4c1abebf044839598973634ddd0ca1f6a82eefb5d177a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5414e8fd39011f7bdb4c1abebf044839598973634ddd0ca1f6a82eefb5d177a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5414e8fd39011f7bdb4c1abebf044839598973634ddd0ca1f6a82eefb5d177a0", kill_on_drop: false }` [INFO] [stdout] 5414e8fd39011f7bdb4c1abebf044839598973634ddd0ca1f6a82eefb5d177a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c8ac004eab7d63a0ad09a2dde3d3353ba464f767bee4de425dc8f74c46a1905e" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f8c106dafcb0891ace55e3359ffa0ce073e94c2c8b3f4f828f9cf8da601455d6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f8c106dafcb0891ace55e3359ffa0ce073e94c2c8b3f4f828f9cf8da601455d6", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling pkg-config v0.3.19 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking tinyvec_macros v0.1.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling winapi-build v0.1.1 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking safemem v0.3.3 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling crc32fast v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking winapi v0.2.8 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.61 [INFO] [stderr] Checking adler v0.2.3 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking itoa v0.4.7 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking antidote v1.0.0 [INFO] [stderr] Checking base64-rs v0.1.1 [INFO] [stderr] Checking bitflags v0.1.1 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking tinyvec v1.1.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Compiling kernel32-sys v0.2.2 [INFO] [stderr] Compiling unicase v1.4.2 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Checking log v0.4.11 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking net2 v0.2.37 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling miniz_oxide v0.4.3 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling opus-sys v0.2.1 [INFO] [stderr] Checking mime v0.2.6 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Checking base64 v0.9.3 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking unicode-normalization v0.1.16 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling libsodium-sys v0.2.6 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking opus v0.2.1 [INFO] [stderr] Checking flate2 v1.0.19 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking tempfile v3.1.0 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking rust-sqlite v0.3.1 (https://github.com/dckc/rust-sqlite3#b0dc7d6c) [INFO] [stderr] Checking multipart v0.17.0 [INFO] [stderr] Checking hyper v0.10.16 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Checking websocket v0.18.0 (https://github.com/ArtemGr/rust-websocket?branch=hyper-bump#b5965662) [INFO] [stderr] Checking hyper-native-tls v0.3.0 [INFO] [stderr] Checking sodiumoxide v0.2.6 [INFO] [stderr] Checking discord v0.9.0 (https://github.com/SpaceManiac/discord-rs#245f5731) [INFO] [stderr] Checking ipbot v0.9.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bot.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | handlers: HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn DiscordMessageHandler` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/bot.rs:22:35 [INFO] [stdout] | [INFO] [stdout] 22 | handlers: HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn DiscordMessageHandler` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/bot.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / lazy_static! { [INFO] [stdout] 44 | | static ref KEYWORD: Regex = Regex::new(r"^!([:word:]+)").unwrap(); [INFO] [stdout] 45 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/messagehandler.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | / lazy_static! { [INFO] [stdout] 37 | | static ref FIND: Regex = Regex::new(r"^!file(?:\s([[:word:]ÅÄÖåäö]+))?(?:\s([^\s]+))?$").unwrap(); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/bot.rs:43:9 [INFO] [stdout] | [INFO] [stdout] 43 | / lazy_static! { [INFO] [stdout] 44 | | static ref KEYWORD: Regex = Regex::new(r"^!([:word:]+)").unwrap(); [INFO] [stdout] 45 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/messagehandler.rs:36:9 [INFO] [stdout] | [INFO] [stdout] 36 | / lazy_static! { [INFO] [stdout] 37 | | static ref FIND: Regex = Regex::new(r"^!file(?:\s([[:word:]ÅÄÖåäö]+))?(?:\s([^\s]+))?$").unwrap(); [INFO] [stdout] 38 | | } [INFO] [stdout] | |_________^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/bot.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | Err(err) => return Err(err.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/bot.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | Err(err) => Err(err.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/bot.rs:29:34 [INFO] [stdout] | [INFO] [stdout] 29 | Err(err) => return Err(err.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/bot.rs:37:27 [INFO] [stdout] | [INFO] [stdout] 37 | Err(err) => Err(err.description().to_string()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bot.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | .and_then(|s| self.client.send_message(&message.channel_id, &s, "", false).ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `ChannelId`, found `&ChannelId` [INFO] [stdout] | help: consider removing the borrow: `message.channel_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bot.rs:102:48 [INFO] [stdout] | [INFO] [stdout] 102 | .and_then(|s| self.client.send_message(&message.channel_id, &s, "", false).ok()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected struct `ChannelId`, found `&ChannelId` [INFO] [stdout] | help: consider removing the borrow: `message.channel_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bot.rs:106:91 [INFO] [stdout] | [INFO] [stdout] 106 | println!("Gateway closed on us with code {:?}: {}", code, String::from_utf8_lossy(&body)); [INFO] [stdout] | ^^^^^ expected slice `[u8]`, found struct `String` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bot::discord::Discord::logout`: Accomplishes nothing and may fail for no reason. [INFO] [stdout] --> src/bot.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.client.logout().expect("logout failed"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/database.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | Err(err) => Err(err.description().to_string()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bot.rs:106:91 [INFO] [stdout] | [INFO] [stdout] 106 | println!("Gateway closed on us with code {:?}: {}", code, String::from_utf8_lossy(&body)); [INFO] [stdout] | ^^^^^ expected slice `[u8]`, found struct `String` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[u8]` [INFO] [stdout] found reference `&String` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `bot::discord::Discord::logout`: Accomplishes nothing and may fail for no reason. [INFO] [stdout] --> src/bot.rs:113:21 [INFO] [stdout] | [INFO] [stdout] 113 | self.client.logout().expect("logout failed"); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/database.rs:47:33 [INFO] [stdout] | [INFO] [stdout] 47 | Err(err) => Err(err.description().to_string()) [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ipbot` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 2 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f8c106dafcb0891ace55e3359ffa0ce073e94c2c8b3f4f828f9cf8da601455d6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8c106dafcb0891ace55e3359ffa0ce073e94c2c8b3f4f828f9cf8da601455d6", kill_on_drop: false }` [INFO] [stdout] f8c106dafcb0891ace55e3359ffa0ce073e94c2c8b3f4f828f9cf8da601455d6