[INFO] cloning repository https://github.com/Tarjei400/github-notifier [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tarjei400/github-notifier" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarjei400%2Fgithub-notifier", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarjei400%2Fgithub-notifier'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2df33ec3ec5db45c72173228c52b4a7b33107809 [INFO] building Tarjei400/github-notifier against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTarjei400%2Fgithub-notifier" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Tarjei400/github-notifier [INFO] finished tweaking git repo https://github.com/Tarjei400/github-notifier [INFO] tweaked toml for git repo https://github.com/Tarjei400/github-notifier written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Tarjei400/github-notifier on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Tarjei400/github-notifier 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded deranged v0.4.1 [INFO] [stderr] Downloaded ureq-proto v0.3.5 [INFO] [stderr] Downloaded zvariant_derive v5.4.0 [INFO] [stderr] Downloaded avif-serialize v0.8.1 [INFO] [stderr] Downloaded zbus_names v4.2.0 [INFO] [stderr] Downloaded target-lexicon v0.12.14 [INFO] [stderr] Downloaded ravif v0.11.10 [INFO] [stderr] Downloaded notify-rust v4.11.6 [INFO] [stderr] Downloaded zvariant v5.4.0 [INFO] [stderr] Downloaded zbus v5.5.0 [INFO] [stderr] Downloaded ureq v3.0.10 [INFO] [stderr] Downloaded image v0.25.4 [INFO] [stderr] Downloaded zvariant_utils v3.2.0 [INFO] [stderr] Downloaded zbus_macros v5.5.0 [INFO] [stderr] Downloaded quinn-udp v0.5.11 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e7b0422bd526d7a0deac9bc9d28a15090be8d3ff035cc934757af728587ee36e [INFO] running `Command { std: "docker" "start" "-a" "e7b0422bd526d7a0deac9bc9d28a15090be8d3ff035cc934757af728587ee36e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e7b0422bd526d7a0deac9bc9d28a15090be8d3ff035cc934757af728587ee36e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e7b0422bd526d7a0deac9bc9d28a15090be8d3ff035cc934757af728587ee36e", kill_on_drop: false }` [INFO] [stdout] e7b0422bd526d7a0deac9bc9d28a15090be8d3ff035cc934757af728587ee36e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6612d43b362d85782c312156771f14bb0c0d5da163433316de2241ca66b79059 [INFO] running `Command { std: "docker" "start" "-a" "6612d43b362d85782c312156771f14bb0c0d5da163433316de2241ca66b79059", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling winnow v0.7.4 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.2 [INFO] [stderr] Compiling tracing-core v0.1.33 [INFO] [stderr] Compiling toml_datetime v0.6.8 [INFO] [stderr] Compiling cc v1.2.17 [INFO] [stderr] Compiling icu_locid_transform_data v1.5.1 [INFO] [stderr] Compiling icu_properties_data v1.5.1 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling event-listener v5.4.0 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling icu_normalizer_data v1.5.1 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling anyhow v1.0.93 [INFO] [stderr] Compiling endi v1.1.0 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling rustls v0.23.25 [INFO] [stderr] Compiling event-listener-strategy v0.5.4 [INFO] [stderr] Compiling indexmap v2.8.0 [INFO] [stderr] Compiling async-lock v3.4.0 [INFO] [stderr] Compiling aligned-vec v0.5.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling async-channel v2.3.1 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling v_frame v0.3.8 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling rav1e v0.7.1 [INFO] [stderr] Compiling crossbeam-deque v0.8.5 [INFO] [stderr] Compiling memoffset v0.9.1 [INFO] [stderr] Compiling flate2 v1.0.35 [INFO] [stderr] Compiling nix v0.29.0 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Compiling simd_helpers v0.1.0 [INFO] [stderr] Compiling itertools v0.12.1 [INFO] [stderr] Compiling maybe-rayon v0.1.1 [INFO] [stderr] Compiling weezl v0.1.8 [INFO] [stderr] Compiling blocking v1.6.1 [INFO] [stderr] Compiling num-rational v0.4.2 [INFO] [stderr] Compiling avif-serialize v0.8.1 [INFO] [stderr] Compiling half v2.4.1 [INFO] [stderr] Compiling rgb v0.8.50 [INFO] [stderr] Compiling jpeg-decoder v0.3.1 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling qoi v0.4.1 [INFO] [stderr] Compiling image-webp v0.2.1 [INFO] [stderr] Compiling zune-jpeg v0.4.14 [INFO] [stderr] Compiling ring v0.17.14 [INFO] [stderr] Compiling gif v0.13.1 [INFO] [stderr] Compiling exr v1.73.0 [INFO] [stderr] Compiling async-fs v2.1.2 [INFO] [stderr] Compiling rayon v1.10.0 [INFO] [stderr] Compiling toml_edit v0.22.24 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.9 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling av1-grain v0.2.3 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling tiff v0.9.1 [INFO] [stderr] Compiling xdg-home v1.3.0 [INFO] [stderr] Compiling async-executor v1.13.1 [INFO] [stderr] Compiling async-broadcast v0.7.2 [INFO] [stderr] Compiling ordered-stream v0.2.0 [INFO] [stderr] Compiling option-ext v0.2.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling dirs-sys v0.5.0 [INFO] [stderr] Compiling deranged v0.4.1 [INFO] [stderr] Compiling ureq-proto v0.3.5 [INFO] [stderr] Compiling chrono v0.4.40 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling dirs v6.0.0 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [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 tracing-attributes v0.1.28 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling enumflags2_derive v0.7.11 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling profiling-procmacros v1.0.16 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling arg_enum_proc_macro v0.3.4 [INFO] [stderr] Compiling num-derive v0.4.2 [INFO] [stderr] Compiling serde_repr v0.1.20 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling rustls-webpki v0.103.1 [INFO] [stderr] Compiling profiling v1.0.16 [INFO] [stderr] Compiling tokio v1.44.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling polling v3.7.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling async-io v2.4.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling async-signal v0.2.10 [INFO] [stderr] Compiling async-process v2.3.0 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling zvariant_utils v3.2.0 [INFO] [stderr] Compiling enumflags2 v0.7.11 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling zvariant_derive v5.4.0 [INFO] [stderr] Compiling zvariant v5.4.0 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling tokio-rustls v0.26.2 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling tokio-util v0.7.14 [INFO] [stderr] Compiling ureq v3.0.10 [INFO] [stderr] Compiling hyper-util v0.1.11 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling hyper-rustls v0.27.5 [INFO] [stderr] Compiling ravif v0.11.10 [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling image v0.25.4 [INFO] [stderr] Compiling zbus_names v4.2.0 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling zbus_macros v5.5.0 [INFO] [stderr] Compiling reqwest v0.12.15 [INFO] [stderr] Compiling webbrowser v1.0.4 [INFO] [stderr] Compiling zbus v5.5.0 [INFO] [stderr] Compiling notify-rust v4.11.6 [INFO] [stderr] Compiling github-notifier v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Hint` [INFO] [stdout] --> src/notify/notify.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use notify_rust::{Hint, Notification, Timeout}; [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 imports: `NotificationDetailLinkHref` and `NotificationDetailLinks` [INFO] [stdout] --> src/notify/notify.rs:2:140 [INFO] [stdout] | [INFO] [stdout] 2 | ...read, CommentDto, NotificationDetailDto, NotificationDetailLinkHref, NotificationDetailLinks, NotificationDto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fetch_issue_comment` and `fetch_notification_details` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::github::github::{fetch_issue_comment, fetch_notification_details, fetch_notifications}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:56:121 [INFO] [stdout] | [INFO] [stdout] 56 | let saved_since = load_last_check_time(&last_check_time_file).unwrap_or_else(|_| Utc.timestamp_opt(0, 0).unwrap());; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/main.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | let t = DateTime::::from_utc(chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0).expect("Invalid timestamp"), Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/main.rs:31:62 [INFO] [stdout] | [INFO] [stdout] 31 | let t = DateTime::::from_utc(chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0).expect("Invalid timestamp"), Utc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/github/github.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(mut response) => { [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: unused variable: `new_since` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let new_since = to_offset_date_time(Utc::now()) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_since` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut since = to_offset_date_time(saved_since).ok(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_URL` is never used [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const API_URL: &str = "https://api.github.com/notifications"; [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 `save_last_check_time` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn save_last_check_time(path: &PathBuf, offset_time: time::OffsetDateTime) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/github/github.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NotificationDto { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 9 | pub id: String, [INFO] [stdout] 10 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationDto` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_warning` is never used [INFO] [stdout] --> src/github/github.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn notify_warning(title: &str, msg: String ){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/github/github.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / Notification::new() [INFO] [stdout] 59 | | .summary(&title) [INFO] [stdout] 60 | | .body(&msg) [INFO] [stdout] 61 | | .image("./assets/github-error.png") [INFO] [stdout] 62 | | .unwrap() [INFO] [stdout] 63 | | .show(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/github/github.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / Notification::new() [INFO] [stdout] 67 | | .summary(&title) [INFO] [stdout] 68 | | .body(&msg) [INFO] [stdout] 69 | | .image("./assets/github-warning.png") [INFO] [stdout] 70 | | .unwrap() [INFO] [stdout] 71 | | .show(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/app_config.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | / Notification::new() [INFO] [stdout] 29 | | .summary("Configuration issue") [INFO] [stdout] 30 | | .body(&msg) [INFO] [stdout] 31 | | .image("./assets/github-warning.png") [INFO] [stdout] 32 | | .unwrap() [INFO] [stdout] 33 | | .show(); [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 51s [INFO] running `Command { std: "docker" "inspect" "6612d43b362d85782c312156771f14bb0c0d5da163433316de2241ca66b79059", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6612d43b362d85782c312156771f14bb0c0d5da163433316de2241ca66b79059", kill_on_drop: false }` [INFO] [stdout] 6612d43b362d85782c312156771f14bb0c0d5da163433316de2241ca66b79059 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5053b965e1fa5fd6b18b81193a491215c6652bc2ffd212c65755df15ed4c19ea [INFO] running `Command { std: "docker" "start" "-a" "5053b965e1fa5fd6b18b81193a491215c6652bc2ffd212c65755df15ed4c19ea", kill_on_drop: false }` [INFO] [stderr] Compiling github-notifier v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Hint` [INFO] [stdout] --> src/notify/notify.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use notify_rust::{Hint, Notification, Timeout}; [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 imports: `NotificationDetailLinkHref` and `NotificationDetailLinks` [INFO] [stdout] --> src/notify/notify.rs:2:140 [INFO] [stdout] | [INFO] [stdout] 2 | ...read, CommentDto, NotificationDetailDto, NotificationDetailLinkHref, NotificationDetailLinks, NotificationDto}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SystemTime` [INFO] [stdout] --> src/main.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | use std::time::{Duration, SystemTime}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fetch_issue_comment` and `fetch_notification_details` [INFO] [stdout] --> src/main.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 12 | use crate::github::github::{fetch_issue_comment, fetch_notification_details, fetch_notifications}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:56:121 [INFO] [stdout] | [INFO] [stdout] 56 | let saved_since = load_last_check_time(&last_check_time_file).unwrap_or_else(|_| Utc.timestamp_opt(0, 0).unwrap());; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::DateTime::::from_utc`: Use TimeZone::from_utc_datetime() or DateTime::from_naive_utc_and_offset instead [INFO] [stdout] --> src/main.rs:31:30 [INFO] [stdout] | [INFO] [stdout] 31 | let t = DateTime::::from_utc(chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0).expect("Invalid timestamp"), Utc); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `chrono::NaiveDateTime::from_timestamp_opt`: use `DateTime::from_timestamp` instead [INFO] [stdout] --> src/main.rs:31:62 [INFO] [stdout] | [INFO] [stdout] 31 | let t = DateTime::::from_utc(chrono::NaiveDateTime::from_timestamp_opt(timestamp, 0).expect("Invalid timestamp"), Utc); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/github/github.rs:83:12 [INFO] [stdout] | [INFO] [stdout] 83 | Ok(mut response) => { [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: unused variable: `new_since` [INFO] [stdout] --> src/main.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let new_since = to_offset_date_time(Utc::now()) [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_since` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let mut since = to_offset_date_time(saved_since).ok(); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `API_URL` is never used [INFO] [stdout] --> src/main.rs:19:7 [INFO] [stdout] | [INFO] [stdout] 19 | const API_URL: &str = "https://api.github.com/notifications"; [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 `save_last_check_time` is never used [INFO] [stdout] --> src/main.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn save_last_check_time(path: &PathBuf, offset_time: time::OffsetDateTime) -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `reason` is never read [INFO] [stdout] --> src/github/github.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct NotificationDto { [INFO] [stdout] | --------------- field in this struct [INFO] [stdout] 9 | pub id: String, [INFO] [stdout] 10 | pub reason: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NotificationDto` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_warning` is never used [INFO] [stdout] --> src/github/github.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn notify_warning(title: &str, msg: String ){ [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/github/github.rs:58:5 [INFO] [stdout] | [INFO] [stdout] 58 | / Notification::new() [INFO] [stdout] 59 | | .summary(&title) [INFO] [stdout] 60 | | .body(&msg) [INFO] [stdout] 61 | | .image("./assets/github-error.png") [INFO] [stdout] 62 | | .unwrap() [INFO] [stdout] 63 | | .show(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 58 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/github/github.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 66 | / Notification::new() [INFO] [stdout] 67 | | .summary(&title) [INFO] [stdout] 68 | | .body(&msg) [INFO] [stdout] 69 | | .image("./assets/github-warning.png") [INFO] [stdout] 70 | | .unwrap() [INFO] [stdout] 71 | | .show(); [INFO] [stdout] | |_______________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 66 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/app_config.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | / Notification::new() [INFO] [stdout] 29 | | .summary("Configuration issue") [INFO] [stdout] 30 | | .body(&msg) [INFO] [stdout] 31 | | .image("./assets/github-warning.png") [INFO] [stdout] 32 | | .unwrap() [INFO] [stdout] 33 | | .show(); [INFO] [stdout] | |___________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 28 | let _ = Notification::new() [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 3.78s [INFO] running `Command { std: "docker" "inspect" "5053b965e1fa5fd6b18b81193a491215c6652bc2ffd212c65755df15ed4c19ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5053b965e1fa5fd6b18b81193a491215c6652bc2ffd212c65755df15ed4c19ea", kill_on_drop: false }` [INFO] [stdout] 5053b965e1fa5fd6b18b81193a491215c6652bc2ffd212c65755df15ed4c19ea