[INFO] cloning repository https://github.com/SOURABHSAHU03/socialapp [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/SOURABHSAHU03/socialapp" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSOURABHSAHU03%2Fsocialapp", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSOURABHSAHU03%2Fsocialapp'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c2a5c39bcc0373fb10bd915de39ce86ffb9816b3 [INFO] checking SOURABHSAHU03/socialapp/c2a5c39bcc0373fb10bd915de39ce86ffb9816b3 against master#fcac501a73cdde54de46a0683567f1a890730555 for pr-151102 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FSOURABHSAHU03%2Fsocialapp" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/SOURABHSAHU03/socialapp [INFO] finished tweaking git repo https://github.com/SOURABHSAHU03/socialapp [INFO] tweaked toml for git repo https://github.com/SOURABHSAHU03/socialapp written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/SOURABHSAHU03/socialapp on toolchain fcac501a73cdde54de46a0683567f1a890730555 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/SOURABHSAHU03/socialapp 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" "+fcac501a73cdde54de46a0683567f1a890730555" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ic-stable-structures v0.6.9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1287440cad4a72b568cecf62b33801f49cdbd01638541fe1fa0c0b2c2972100d [INFO] running `Command { std: "docker" "start" "-a" "1287440cad4a72b568cecf62b33801f49cdbd01638541fe1fa0c0b2c2972100d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1287440cad4a72b568cecf62b33801f49cdbd01638541fe1fa0c0b2c2972100d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1287440cad4a72b568cecf62b33801f49cdbd01638541fe1fa0c0b2c2972100d", kill_on_drop: false }` [INFO] [stdout] 1287440cad4a72b568cecf62b33801f49cdbd01638541fe1fa0c0b2c2972100d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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=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:98afbf2d16093dec2546ff8915fddc74e65664aa03fc460b3712b1c2c54a33e4" "/opt/rustwide/cargo-home/bin/cargo" "+fcac501a73cdde54de46a0683567f1a890730555" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c20cb320c47013eecbff43485349ee16f6a12cf6c5367c608bd981da4864046a [INFO] running `Command { std: "docker" "start" "-a" "c20cb320c47013eecbff43485349ee16f6a12cf6c5367c608bd981da4864046a", kill_on_drop: false }` [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking ic-stable-structures v0.6.9 [INFO] [stderr] Checking serde_json v1.0.140 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking social_app_backend v0.1.0 (/opt/rustwide/workdir/src/social_app_backend) [INFO] [stdout] warning: unused import: `candid::Principal` [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::Principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::caller` [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ic_cdk::caller; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `candid::Principal` [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use candid::Principal; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ic_cdk::caller` [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ic_cdk::caller; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/social_app_backend/src/discovery.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut candidate_users: Vec = all_users [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/social_app_backend/src/discovery.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | let mut candidate_users: Vec = all_users [INFO] [stdout] | ----^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_privacy_settings` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:886:8 [INFO] [stdout] | [INFO] [stdout] 886 | pub fn get_privacy_settings(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_comment_controls` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:900:8 [INFO] [stdout] | [INFO] [stdout] 900 | pub fn get_comment_controls(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_security_settings` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:912:8 [INFO] [stdout] | [INFO] [stdout] 912 | pub fn get_security_settings(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Relationship` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct Relationship { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelationshipStatus` is never used [INFO] [stdout] --> src/social_app_backend/src/types.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 334 | pub enum RelationshipStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Like` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct Like { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveStream` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub struct LiveStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveComment` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 404 | pub struct LiveComment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Highlight` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 414 | pub struct Highlight { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_user_muted` is never used [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn is_user_muted(user_id: &str, target_user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_user_restricted` is never used [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn is_user_restricted(user_id: &str, target_user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:798:22 [INFO] [stdout] | [INFO] [stdout] 798 | let config = APP_CONFIG.as_ref().unwrap_or(&default_config); [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] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:879:15 [INFO] [stdout] | [INFO] [stdout] 879 | match &APP_CONFIG { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 879 | match &raw const APP_CONFIG { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:890:15 [INFO] [stdout] | [INFO] [stdout] 890 | match &APP_CONFIG { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 890 | match &raw const APP_CONFIG { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_privacy_settings` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:886:8 [INFO] [stdout] | [INFO] [stdout] 886 | pub fn get_privacy_settings(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_comment_controls` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:900:8 [INFO] [stdout] | [INFO] [stdout] 900 | pub fn get_comment_controls(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_security_settings` is never used [INFO] [stdout] --> src/social_app_backend/src/state_handler.rs:912:8 [INFO] [stdout] | [INFO] [stdout] 912 | pub fn get_security_settings(user_id: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Relationship` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:326:12 [INFO] [stdout] | [INFO] [stdout] 326 | pub struct Relationship { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `RelationshipStatus` is never used [INFO] [stdout] --> src/social_app_backend/src/types.rs:334:10 [INFO] [stdout] | [INFO] [stdout] 334 | pub enum RelationshipStatus { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Like` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:344:12 [INFO] [stdout] | [INFO] [stdout] 344 | pub struct Like { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveStream` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:392:12 [INFO] [stdout] | [INFO] [stdout] 392 | pub struct LiveStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiveComment` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:404:12 [INFO] [stdout] | [INFO] [stdout] 404 | pub struct LiveComment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Highlight` is never constructed [INFO] [stdout] --> src/social_app_backend/src/types.rs:414:12 [INFO] [stdout] | [INFO] [stdout] 414 | pub struct Highlight { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_user_muted` is never used [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:270:8 [INFO] [stdout] | [INFO] [stdout] 270 | pub fn is_user_muted(user_id: &str, target_user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `is_user_restricted` is never used [INFO] [stdout] --> src/social_app_backend/src/user_management.rs:274:8 [INFO] [stdout] | [INFO] [stdout] 274 | pub fn is_user_restricted(user_id: &str, target_user_id: &str) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:798:22 [INFO] [stdout] | [INFO] [stdout] 798 | let config = APP_CONFIG.as_ref().unwrap_or(&default_config); [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] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:879:15 [INFO] [stdout] | [INFO] [stdout] 879 | match &APP_CONFIG { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 879 | match &raw const APP_CONFIG { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/social_app_backend/src/lib.rs:890:15 [INFO] [stdout] | [INFO] [stdout] 890 | match &APP_CONFIG { [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] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 890 | match &raw const APP_CONFIG { [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.19s [INFO] running `Command { std: "docker" "inspect" "c20cb320c47013eecbff43485349ee16f6a12cf6c5367c608bd981da4864046a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c20cb320c47013eecbff43485349ee16f6a12cf6c5367c608bd981da4864046a", kill_on_drop: false }` [INFO] [stdout] c20cb320c47013eecbff43485349ee16f6a12cf6c5367c608bd981da4864046a