[INFO] cloning repository https://github.com/Malcolm-xXx/Hustlers_icp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Malcolm-xXx/Hustlers_icp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalcolm-xXx%2FHustlers_icp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalcolm-xXx%2FHustlers_icp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] da4fe256bc1bed1977c8cba0cb6a8598f8acaae7 [INFO] testing Malcolm-xXx/Hustlers_icp/da4fe256bc1bed1977c8cba0cb6a8598f8acaae7 against 1.85.0 for beta-1.86-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMalcolm-xXx%2FHustlers_icp" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Malcolm-xXx/Hustlers_icp on toolchain 1.85.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.85.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Malcolm-xXx/Hustlers_icp [INFO] finished tweaking git repo https://github.com/Malcolm-xXx/Hustlers_icp [INFO] tweaked toml for git repo https://github.com/Malcolm-xXx/Hustlers_icp written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Malcolm-xXx/Hustlers_icp 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.85.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ic0 v0.23.0 [INFO] [stderr] Downloaded ic-cdk v0.16.0 [INFO] [stderr] Downloaded candid v0.10.10 [INFO] [stderr] Downloaded serde_tokenstream v0.2.2 [INFO] [stderr] Downloaded ic-cdk-timers v0.10.0 [INFO] [stderr] Downloaded ic-cdk-macros v0.16.0 [INFO] [stderr] Downloaded ic-cdk v0.8.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00c4b784bef62442e696bc2724f396bdb3956bd2a54cd2b18ff062add060c189 [INFO] running `Command { std: "docker" "start" "-a" "00c4b784bef62442e696bc2724f396bdb3956bd2a54cd2b18ff062add060c189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00c4b784bef62442e696bc2724f396bdb3956bd2a54cd2b18ff062add060c189", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00c4b784bef62442e696bc2724f396bdb3956bd2a54cd2b18ff062add060c189", kill_on_drop: false }` [INFO] [stdout] 00c4b784bef62442e696bc2724f396bdb3956bd2a54cd2b18ff062add060c189 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f83b879d426efea5c8e6f8a729f57bc6f1ea67243d69ae8c22779f22a9e35f37 [INFO] running `Command { std: "docker" "start" "-a" "f83b879d426efea5c8e6f8a729f57bc6f1ea67243d69ae8c22779f22a9e35f37", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling rustversion v1.0.17 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling cc v1.1.28 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling typed-arena v2.0.2 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling data-encoding v2.6.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling psm v0.1.23 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling tiny-keccak v2.0.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Compiling bit-vec v0.6.3 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling bit-set v0.5.3 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling is-terminal v0.4.13 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling beef v0.5.2 [INFO] [stderr] Compiling termcolor v1.4.1 [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling futures-sink v0.3.31 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling toml_edit v0.19.15 [INFO] [stderr] Compiling codespan-reporting v0.11.1 [INFO] [stderr] Compiling pretty v0.10.0 [INFO] [stderr] Compiling pin-project-lite v0.2.14 [INFO] [stderr] Compiling futures-io v0.3.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling ic0 v0.23.0 [INFO] [stderr] Compiling lalrpop-util v0.19.12 [INFO] [stderr] Compiling ic0 v0.18.11 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling logos-derive v0.12.1 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling proc-macro-crate v1.3.1 [INFO] [stderr] Compiling candid_derive v0.5.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling lalrpop v0.19.12 [INFO] [stderr] Compiling num_enum_derive v0.5.11 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling logos v0.12.1 [INFO] [stderr] Compiling num_enum v0.5.11 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling serde_tokenstream v0.2.2 [INFO] [stderr] Compiling serde_tokenstream v0.1.7 [INFO] [stderr] Compiling candid v0.10.10 [INFO] [stderr] Compiling ic-cdk-macros v0.16.0 [INFO] [stderr] Compiling ic-cdk-macros v0.8.4 [INFO] [stderr] Compiling ic-cdk v0.16.0 [INFO] [stderr] Compiling candid v0.8.4 [INFO] [stderr] Compiling ic-cdk-timers v0.10.0 [INFO] [stderr] Compiling user_request v0.1.0 (/opt/rustwide/workdir/src/user_request) [INFO] [stdout] warning: struct `Item` is never constructed [INFO] [stdout] --> src/user_request/src/lib.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Item { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Item { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 12 | fn new(name: String, price: f64) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> src/user_request/src/lib.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 25 | impl Order { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 26 | fn new(user: String, items: Vec) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AcceptOrderResponse` is never constructed [INFO] [stdout] --> src/user_request/src/lib.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | struct AcceptOrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:42:8 [INFO] [stdout] | [INFO] [stdout] 41 | impl AcceptOrderResponse { [INFO] [stdout] | ------------------------ associated function in this implementation [INFO] [stdout] 42 | fn new(success: bool, message: String) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static `ORDERS` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | static mut ORDERS: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn create_order(user: String, items: Vec) -> String { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accept_order` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn accept_order(order_index: usize, accepting_user: String) -> AcceptOrderResponse { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_orders` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:80:4 [INFO] [stdout] | [INFO] [stdout] 80 | fn get_orders() -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `display_menu` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn display_menu() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_user_input` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn get_user_input() -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order_interaction` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn create_order_interaction() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `accept_order_interaction` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:134:4 [INFO] [stdout] | [INFO] [stdout] 134 | fn accept_order_interaction() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `view_orders_interaction` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:157:4 [INFO] [stdout] | [INFO] [stdout] 157 | fn view_orders_interaction() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/user_request/src/lib.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ORDERS.push(Order::new(user, items)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | if order_index >= ORDERS.len() { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe { ORDERS.clone() } [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | if ORDERS.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling ic-cdk-macros v0.6.10 [INFO] [stderr] Compiling ic-cdk v0.8.2 [INFO] [stderr] Compiling user_auth v0.1.0 (/opt/rustwide/workdir/src/user_auth) [INFO] [stdout] warning: struct `UserService` is never constructed [INFO] [stdout] --> src/user_auth/src/lib.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct UserService { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/user_auth/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 19 | impl UserService { [INFO] [stdout] | ---------------- associated items in this implementation [INFO] [stdout] 20 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn hash_password(password: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | fn verify_password(password: &str, password_hash: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 40 | fn generate_user_id(&self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn create_user(&self, username: &str, email: &str, password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 64 | fn delete_user(&self, user_id: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn authenticate_user(&self, username: &str, password: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | fn reset_password(&self, user_id: &str, new_password: &str) -> Result<(), &'static str> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 97 | fn get_user_info(&self, user_id: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/user_auth/src/lib.rs:107:4 [INFO] [stdout] | [INFO] [stdout] 107 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 17s [INFO] running `Command { std: "docker" "inspect" "f83b879d426efea5c8e6f8a729f57bc6f1ea67243d69ae8c22779f22a9e35f37", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f83b879d426efea5c8e6f8a729f57bc6f1ea67243d69ae8c22779f22a9e35f37", kill_on_drop: false }` [INFO] [stdout] f83b879d426efea5c8e6f8a729f57bc6f1ea67243d69ae8c22779f22a9e35f37 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 99f429baa68e07f7bc02f06132bcd4db052809fec709a2f62ec85539a00c5e59 [INFO] running `Command { std: "docker" "start" "-a" "99f429baa68e07f7bc02f06132bcd4db052809fec709a2f62ec85539a00c5e59", kill_on_drop: false }` [INFO] [stderr] Compiling user_auth v0.1.0 (/opt/rustwide/workdir/src/user_auth) [INFO] [stderr] Compiling user_request v0.1.0 (/opt/rustwide/workdir/src/user_request) [INFO] [stdout] warning: field `success` is never read [INFO] [stdout] --> src/user_request/src/lib.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | struct AcceptOrderResponse { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] 37 | success: bool, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ORDERS.push(Order::new(user, items)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:61:27 [INFO] [stdout] | [INFO] [stdout] 61 | if order_index >= ORDERS.len() { [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:81:14 [INFO] [stdout] | [INFO] [stdout] 81 | unsafe { ORDERS.clone() } [INFO] [stdout] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [INFO] [stdout] --> src/user_request/src/lib.rs:136:12 [INFO] [stdout] | [INFO] [stdout] 136 | if ORDERS.is_empty() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.09s [INFO] running `Command { std: "docker" "inspect" "99f429baa68e07f7bc02f06132bcd4db052809fec709a2f62ec85539a00c5e59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99f429baa68e07f7bc02f06132bcd4db052809fec709a2f62ec85539a00c5e59", kill_on_drop: false }` [INFO] [stdout] 99f429baa68e07f7bc02f06132bcd4db052809fec709a2f62ec85539a00c5e59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:3959728d45483eb673ba100a951a6b9f5012970368db2a9e08e0ac9b67c8a5ad" "/opt/rustwide/cargo-home/bin/cargo" "+1.85.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 75c770b038cf3fcdf6b882f3dcd10460225dc9088a078463ebd8d1d2a3b3740d [INFO] running `Command { std: "docker" "start" "-a" "75c770b038cf3fcdf6b882f3dcd10460225dc9088a078463ebd8d1d2a3b3740d", kill_on_drop: false }` [INFO] [stderr] warning: field `success` is never read [INFO] [stderr] --> src/user_request/src/lib.rs:37:5 [INFO] [stderr] | [INFO] [stderr] 36 | struct AcceptOrderResponse { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] 37 | success: bool, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static is discouraged [INFO] [stderr] --> src/user_request/src/lib.rs:53:9 [INFO] [stderr] | [INFO] [stderr] 53 | ORDERS.push(Order::new(user, items)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/user_request/src/lib.rs:61:27 [INFO] [stderr] | [INFO] [stderr] 61 | if order_index >= ORDERS.len() { [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/user_request/src/lib.rs:81:14 [INFO] [stderr] | [INFO] [stderr] 81 | unsafe { ORDERS.clone() } [INFO] [stderr] | ^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [INFO] [stderr] --> src/user_request/src/lib.rs:136:12 [INFO] [stderr] | [INFO] [stderr] 136 | if ORDERS.is_empty() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: `user_request` (lib test) generated 5 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.31s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/user_auth-1c596f58368a6389) [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] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/user_request-e133a171caf8db29) [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] running `Command { std: "docker" "inspect" "75c770b038cf3fcdf6b882f3dcd10460225dc9088a078463ebd8d1d2a3b3740d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75c770b038cf3fcdf6b882f3dcd10460225dc9088a078463ebd8d1d2a3b3740d", kill_on_drop: false }` [INFO] [stdout] 75c770b038cf3fcdf6b882f3dcd10460225dc9088a078463ebd8d1d2a3b3740d