[INFO] cloning repository https://github.com/dDenysS/spoti [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dDenysS/spoti" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdDenysS%2Fspoti", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdDenysS%2Fspoti'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84617f43a7c39ba592ca92ee8f435482fee938a7 [INFO] checking dDenysS/spoti against try#6f8a6450478f69b8510c8976ab6c2a70b3b0e47c for pr-84920 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FdDenysS%2Fspoti" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dDenysS/spoti on toolchain 6f8a6450478f69b8510c8976ab6c2a70b3b0e47c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dDenysS/spoti [INFO] finished tweaking git repo https://github.com/dDenysS/spoti [INFO] tweaked toml for git repo https://github.com/dDenysS/spoti written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/dDenysS/spoti already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded http-client v6.3.4 [INFO] [stderr] Downloaded querystring v1.1.0 [INFO] [stderr] Downloaded sciter-rs v0.5.54 [INFO] [stderr] Downloaded sha256 v1.0.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ba02c546c05ca5755d43621d68f469ba4ec85c5b1e10862efabd8fe1b0810968 [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" "ba02c546c05ca5755d43621d68f469ba4ec85c5b1e10862efabd8fe1b0810968", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ba02c546c05ca5755d43621d68f469ba4ec85c5b1e10862efabd8fe1b0810968", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba02c546c05ca5755d43621d68f469ba4ec85c5b1e10862efabd8fe1b0810968", kill_on_drop: false }` [INFO] [stdout] ba02c546c05ca5755d43621d68f469ba4ec85c5b1e10862efabd8fe1b0810968 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:20528e8c29e4536546f0102ce88568b16ea7538393a33fcca951030f7af10457" "/opt/rustwide/cargo-home/bin/cargo" "+6f8a6450478f69b8510c8976ab6c2a70b3b0e47c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f45123ef09afc4d0915d490bda0533a06148a06f2c3a170b3f3a68c248284a06 [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" "f45123ef09afc4d0915d490bda0533a06148a06f2c3a170b3f3a68c248284a06", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling syn v1.0.62 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Checking futures-core v0.3.13 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling proc-macro-hack v0.5.19 [INFO] [stderr] Checking subtle v2.4.0 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling serde v1.0.124 [INFO] [stderr] Checking event-listener v2.5.1 [INFO] [stderr] Checking opaque-debug v0.3.0 [INFO] [stderr] Checking cache-padded v1.1.1 [INFO] [stderr] Checking fastrand v1.4.0 [INFO] [stderr] Checking waker-fn v1.1.0 [INFO] [stderr] Checking parking v2.0.0 [INFO] [stderr] Checking vec-arena v1.0.0 [INFO] [stderr] Checking async-task v4.0.3 [INFO] [stderr] Compiling signal-hook v0.3.6 [INFO] [stderr] Compiling const_fn v0.4.5 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking cpuid-bool v0.2.0 [INFO] [stderr] Checking atomic-waker v1.0.0 [INFO] [stderr] Checking cpuid-bool v0.1.2 [INFO] [stderr] Compiling anyhow v1.0.38 [INFO] [stderr] Compiling proc-macro-nested v0.1.7 [INFO] [stderr] Compiling httparse v1.3.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Checking futures-task v0.3.13 [INFO] [stderr] Compiling openssl v0.10.32 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling async-trait v0.1.45 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking futures-sink v0.3.13 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Checking arrayvec v0.5.2 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking pin-project-lite v0.1.12 [INFO] [stderr] Checking hex v0.4.3 [INFO] [stderr] Checking webbrowser v0.5.5 [INFO] [stderr] Checking querystring v1.1.0 [INFO] [stderr] Compiling blake3 v0.3.7 [INFO] [stderr] Checking instant v0.1.9 [INFO] [stderr] Checking concurrent-queue v1.2.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking tinyvec v1.1.1 [INFO] [stderr] Checking futures-channel v0.3.13 [INFO] [stderr] Checking async-mutex v1.4.0 [INFO] [stderr] Checking async-lock v2.3.0 [INFO] [stderr] Checking simple-mutex v1.1.5 [INFO] [stderr] Checking lock_api v0.4.2 [INFO] [stderr] Checking http v0.2.3 [INFO] [stderr] Compiling generic-array v0.14.4 [INFO] [stderr] Compiling standback v0.2.15 [INFO] [stderr] Compiling time v0.2.25 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling crossbeam-utils v0.8.3 [INFO] [stderr] Compiling openssl-sys v0.9.60 [INFO] [stderr] Compiling tokio v1.2.0 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling indexmap v1.6.2 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking async-channel v1.6.1 [INFO] [stderr] Checking encoding_rs v0.8.28 [INFO] [stderr] Checking async-dup v1.2.2 [INFO] [stderr] Checking socket2 v0.3.19 [INFO] [stderr] Checking getrandom v0.2.2 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking parking_lot_core v0.8.3 [INFO] [stderr] Checking sciter-rs v0.5.54 [INFO] [stderr] Checking futures-lite v1.11.3 [INFO] [stderr] Checking tracing v0.1.25 [INFO] [stderr] Checking dashmap v4.0.2 [INFO] [stderr] Checking rand_core v0.6.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking nb-connect v1.0.3 [INFO] [stderr] Checking parking_lot v0.11.1 [INFO] [stderr] Checking unicode-normalization v0.1.17 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Checking blocking v1.0.2 [INFO] [stderr] Checking async-executor v1.4.0 [INFO] [stderr] Compiling native-tls v0.2.7 [INFO] [stderr] Checking rand v0.8.3 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking byte-pool v0.2.2 [INFO] [stderr] Checking digest v0.9.0 [INFO] [stderr] Checking cipher v0.2.5 [INFO] [stderr] Checking block-buffer v0.9.0 [INFO] [stderr] Checking universal-hash v0.4.0 [INFO] [stderr] Checking crypto-mac v0.10.0 [INFO] [stderr] Checking aead v0.3.2 [INFO] [stderr] Checking crypto-mac v0.8.0 [INFO] [stderr] Checking http-body v0.4.0 [INFO] [stderr] Checking polyval v0.4.5 [INFO] [stderr] Checking idna v0.2.2 [INFO] [stderr] Checking sha2 v0.9.3 [INFO] [stderr] Checking hmac v0.10.1 [INFO] [stderr] Checking hmac v0.8.1 [INFO] [stderr] Checking aes-soft v0.6.4 [INFO] [stderr] Checking ctr v0.6.0 [INFO] [stderr] Checking ghash v0.3.1 [INFO] [stderr] Checking hkdf v0.10.0 [INFO] [stderr] Checking aes v0.6.0 [INFO] [stderr] Checking sha256 v1.0.0 [INFO] [stderr] Checking aes-gcm v0.8.0 [INFO] [stderr] Compiling ctor v0.1.19 [INFO] [stderr] Compiling serde_derive v1.0.124 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling tokio-macros v1.1.0 [INFO] [stderr] Compiling async-attributes v1.1.2 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Compiling pin-project-internal v1.0.5 [INFO] [stderr] Compiling futures-macro v0.3.13 [INFO] [stderr] Checking time-macros v0.1.1 [INFO] [stderr] Checking value-bag v1.0.0-alpha.6 [INFO] [stderr] Checking futures-util v0.3.13 [INFO] [stderr] Checking log v0.4.14 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking polling v2.0.2 [INFO] [stderr] Checking mio v0.7.9 [INFO] [stderr] Checking kv-log-macro v1.0.7 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking async-io v1.3.1 [INFO] [stderr] Checking pin-project v1.0.5 [INFO] [stderr] Checking async-process v1.0.2 [INFO] [stderr] Checking async-global-executor v2.0.2 [INFO] [stderr] Checking async-std v1.9.0 [INFO] [stderr] Checking tokio-util v0.6.3 [INFO] [stderr] Checking tokio-native-tls v0.3.0 [INFO] [stderr] Checking h2 v0.3.1 [INFO] [stderr] Checking serde_json v1.0.64 [INFO] [stderr] Checking serde_urlencoded v0.7.0 [INFO] [stderr] Checking url v2.2.1 [INFO] [stderr] Checking serde_qs v0.7.2 [INFO] [stderr] Checking bincode v1.3.2 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking hyper v0.14.4 [INFO] [stderr] Checking http-types v2.10.0 [INFO] [stderr] Checking femme v2.1.1 [INFO] [stderr] Checking async-session v2.0.1 [INFO] [stderr] Checking async-h1 v2.3.2 [INFO] [stderr] Checking http-client v6.3.4 [INFO] [stderr] Checking async-sse v4.1.0 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking tide v0.16.0 [INFO] [stderr] Checking reqwest v0.11.1 [INFO] [stderr] Checking spot v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected parameter name, found `,` [INFO] [stdout] --> src/controller/local_server.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | async fn handle_callback_spotify(, req: tide::Request<()>) -> tide::Result { [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected parameter name, found `,` [INFO] [stdout] --> src/controller/local_server.rs:58:38 [INFO] [stdout] | [INFO] [stdout] 58 | async fn handle_callback_spotify(, req: tide::Request<()>) -> tide::Result { [INFO] [stdout] | ^ expected parameter name [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read src/view/S:\projects\spot\ui\index.htm: No such file or directory (os error 2) [INFO] [stdout] --> src/view/mod.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | let html = include_bytes!("S:\\projects\\spot\\ui\\index.htm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/controller/local_server.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::spotify::api::Api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `crate::controller::spotify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/view/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::spotify::api::Api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `crate::controller::spotify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/controller/local_server.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | api.get_token(query.code.unwrap()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `spotify::Api` [INFO] [stdout] --> src/controller/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | spotify::Api; [INFO] [stdout] | ^^^^^^^^^^^^ help: use struct literal syntax instead: `spotify::Api { client_id: val, code_verifier: val }` [INFO] [stdout] | [INFO] [stdout] ::: src/controller/spotify.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / pub struct Api { [INFO] [stdout] 13 | | client_id: String, [INFO] [stdout] 14 | | code_verifier: Option, [INFO] [stdout] 15 | | } [INFO] [stdout] | |_- `spotify::Api` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | api: Arc [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | api: Arc [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(api: Arc) -> View { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spotify` [INFO] [stdout] --> src/main.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | let mut api = Arc::new(spotify::api::Api::new()); [INFO] [stdout] | ^^^ not found in `spotify::api` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `server` [INFO] [stdout] --> src/main.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | let server_callback = server::Server::new(String::from("5555"), Arc::clone(&api)); [INFO] [stdout] | ^^^^^^ not found in `server` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::controller::local_server::Server; [INFO] [stdout] | [INFO] [stdout] 6 | use tide::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/controller/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/controller/spotify.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/controller/spotify.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::blocking::Response` [INFO] [stdout] --> src/controller/spotify.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::blocking::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `querystring::QueryParams` [INFO] [stdout] --> src/controller/spotify.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use querystring::QueryParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/controller/spotify.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use reqwest::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::Error` [INFO] [stdout] --> src/controller/local_server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/controller/local_server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/controller/local_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/controller/local_server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/controller/local_server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/view/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/view/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/view/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BOOL`, `HELEMENT`, `VALUE` [INFO] [stdout] --> src/view/mod.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use sciter::{HELEMENT, types::{BOOL, VALUE}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sciter::om::IAsset` [INFO] [stdout] --> src/view/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sciter::om::IAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: couldn't read src/view/S:\projects\spot\ui\index.htm: No such file or directory (os error 2) [INFO] [stdout] --> src/view/mod.rs:44:20 [INFO] [stdout] | [INFO] [stdout] 44 | let html = include_bytes!("S:\\projects\\spot\\ui\\index.htm"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in a macro (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/controller/local_server.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::spotify::api::Api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `crate::controller::spotify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: unresolved import [INFO] [stdout] --> src/view/mod.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | use crate::spotify::api::Api; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | unresolved import [INFO] [stdout] | help: a similar path exists: `crate::controller::spotify` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/controller/local_server.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut app = tide::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/controller/local_server.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut app = self.set_routes(app); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `api` in this scope [INFO] [stdout] --> src/controller/local_server.rs:62:13 [INFO] [stdout] | [INFO] [stdout] 62 | api.get_token(query.code.unwrap()); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct `spotify::Api` [INFO] [stdout] --> src/controller/mod.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | spotify::Api; [INFO] [stdout] | ^^^^^^^^^^^^ help: use struct literal syntax instead: `spotify::Api { client_id: val, code_verifier: val }` [INFO] [stdout] | [INFO] [stdout] ::: src/controller/spotify.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | / pub struct Api { [INFO] [stdout] 13 | | client_id: String, [INFO] [stdout] 14 | | code_verifier: Option, [INFO] [stdout] 15 | | } [INFO] [stdout] | |_- `spotify::Api` defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:13:14 [INFO] [stdout] | [INFO] [stdout] 13 | api: Arc [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:31:14 [INFO] [stdout] | [INFO] [stdout] 31 | api: Arc [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Api` in this scope [INFO] [stdout] --> src/view/mod.rs:35:25 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn new(api: Arc) -> View { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spotify` [INFO] [stdout] --> src/main.rs:14:42 [INFO] [stdout] | [INFO] [stdout] 14 | let mut api = Arc::new(spotify::api::Api::new()); [INFO] [stdout] | ^^^ not found in `spotify::api` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 6 | use crate::controller::spotify::Api; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `server` [INFO] [stdout] --> src/main.rs:17:35 [INFO] [stdout] | [INFO] [stdout] 17 | let server_callback = server::Server::new(String::from("5555"), Arc::clone(&api)); [INFO] [stdout] | ^^^^^^ not found in `server` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::controller::local_server::Server; [INFO] [stdout] | [INFO] [stdout] 6 | use tide::Server; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Arc` [INFO] [stdout] --> src/controller/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::Arc; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/controller/spotify.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/controller/spotify.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::blocking::Response` [INFO] [stdout] --> src/controller/spotify.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use reqwest::blocking::Response; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `querystring::QueryParams` [INFO] [stdout] --> src/controller/spotify.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use querystring::QueryParams; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `reqwest::Error` [INFO] [stdout] --> src/controller/spotify.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use reqwest::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `tokio::io::Error` [INFO] [stdout] --> src/controller/local_server.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use tokio::io::Error; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/controller/local_server.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> src/controller/local_server.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/controller/local_server.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/controller/local_server.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/view/mod.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/view/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/view/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BOOL`, `HELEMENT`, `VALUE` [INFO] [stdout] --> src/view/mod.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 6 | use sciter::{HELEMENT, types::{BOOL, VALUE}}; [INFO] [stdout] | ^^^^^^^^ ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `sciter::om::IAsset` [INFO] [stdout] --> src/view/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sciter::om::IAsset; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::env` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use std::env; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::path::PathBuf` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::path::PathBuf; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/controller/local_server.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | let mut app = tide::new(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/controller/local_server.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut app = self.set_routes(app); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `controller` on type `local_server::Server` [INFO] [stdout] --> src/controller/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | controller [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `controller` on type `local_server::Server` [INFO] [stdout] --> src/controller/mod.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | controller [INFO] [stdout] | ^^^^^^^^^^ unknown field [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/controller/local_server.rs:78:32 [INFO] [stdout] | [INFO] [stdout] 78 | app.at("/spotify").get(move |req: tide::Request<()>| { [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `Fn` [INFO] [stdout] | | [INFO] [stdout] | the requirement to implement `Fn` derives from here [INFO] [stdout] 79 | async move { [INFO] [stdout] 80 | Server::handle_callback_spotify(router_handlers_arc, req); [INFO] [stdout] | ------------------- closure is `FnOnce` because it moves the variable `router_handlers_arc` out of its environment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0433, E0525, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `spot` [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[E0525]: expected a closure that implements the `Fn` trait, but this closure only implements `FnOnce` [INFO] [stdout] --> src/controller/local_server.rs:78:32 [INFO] [stdout] | [INFO] [stdout] 78 | app.at("/spotify").get(move |req: tide::Request<()>| { [INFO] [stdout] | --- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this closure implements `FnOnce`, not `Fn` [INFO] [stdout] | | [INFO] [stdout] | the requirement to implement `Fn` derives from here [INFO] [stdout] 79 | async move { [INFO] [stdout] 80 | Server::handle_callback_spotify(router_handlers_arc, req); [INFO] [stdout] | ------------------- closure is `FnOnce` because it moves the variable `router_handlers_arc` out of its environment [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0423, E0425, E0433, E0525, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "f45123ef09afc4d0915d490bda0533a06148a06f2c3a170b3f3a68c248284a06", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f45123ef09afc4d0915d490bda0533a06148a06f2c3a170b3f3a68c248284a06", kill_on_drop: false }` [INFO] [stdout] f45123ef09afc4d0915d490bda0533a06148a06f2c3a170b3f3a68c248284a06