[INFO] cloning repository https://github.com/nowayhecodes/rpm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nowayhecodes/rpm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnowayhecodes%2Frpm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnowayhecodes%2Frpm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 803218f8c643c8ff4a6a770fadefd795823d48d4 [INFO] checking nowayhecodes/rpm against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnowayhecodes%2Frpm" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nowayhecodes/rpm on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nowayhecodes/rpm [INFO] finished tweaking git repo https://github.com/nowayhecodes/rpm [INFO] tweaked toml for git repo https://github.com/nowayhecodes/rpm written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nowayhecodes/rpm 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" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded serde-semver-derive v0.1.1 [INFO] [stderr] Downloaded serde-semver v0.2.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 72832d246f322e84fbc8731cc22532c94a81f0627f181fdd850287fd8f3221a3 [INFO] running `Command { std: "docker" "start" "-a" "72832d246f322e84fbc8731cc22532c94a81f0627f181fdd850287fd8f3221a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72832d246f322e84fbc8731cc22532c94a81f0627f181fdd850287fd8f3221a3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72832d246f322e84fbc8731cc22532c94a81f0627f181fdd850287fd8f3221a3", kill_on_drop: false }` [INFO] [stdout] 72832d246f322e84fbc8731cc22532c94a81f0627f181fdd850287fd8f3221a3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c85801677c1cf724cb537a2c750611ef6543c75ba5e5db72b44b7c22306c4d23 [INFO] running `Command { std: "docker" "start" "-a" "c85801677c1cf724cb537a2c750611ef6543c75ba5e5db72b44b7c22306c4d23", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking bytes v1.8.0 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Compiling serde v1.0.214 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking anstyle v1.0.9 [INFO] [stderr] Compiling openssl v0.10.68 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Compiling rustix v0.38.38 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking http v0.2.12 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking tinyvec v1.8.0 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Checking regex-syntax v0.8.5 [INFO] [stderr] Checking openssl-probe v0.1.5 [INFO] [stderr] Checking try-lock v0.2.5 [INFO] [stderr] Checking percent-encoding v2.3.1 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking want v0.3.1 [INFO] [stderr] Checking anstream v0.6.17 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Compiling syn v2.0.85 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Checking http-body v0.4.6 [INFO] [stderr] Compiling portable-atomic v1.10.0 [INFO] [stderr] Checking unicode-bidi v0.3.17 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Checking base64 v0.21.7 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking rustls-pemfile v1.0.4 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking mio v1.0.2 [INFO] [stderr] Checking socket2 v0.5.7 [INFO] [stderr] Checking signal-hook-registry v1.4.2 [INFO] [stderr] Checking parking_lot v0.12.3 [INFO] [stderr] Checking filetime v0.2.25 [INFO] [stderr] Checking console v0.15.10 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Checking idna v0.5.0 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking sync_wrapper v0.1.2 [INFO] [stderr] Checking regex-automata v0.4.8 [INFO] [stderr] Checking ipnet v2.10.1 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Checking predicates-core v1.0.9 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Checking cpufeatures v0.2.14 [INFO] [stderr] Checking sha2 v0.10.8 [INFO] [stderr] Checking flate2 v1.0.34 [INFO] [stderr] Checking termtree v0.5.1 [INFO] [stderr] Checking url v2.5.2 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Checking indicatif v0.17.11 [INFO] [stderr] Checking predicates v3.1.3 [INFO] [stderr] Checking predicates-tree v1.0.12 [INFO] [stderr] Checking downcast v0.11.0 [INFO] [stderr] Checking fragile v2.0.0 [INFO] [stderr] Checking xattr v1.3.1 [INFO] [stderr] Checking tempfile v3.13.0 [INFO] [stderr] Checking tar v0.4.42 [INFO] [stderr] Compiling serde-semver-derive v0.1.1 [INFO] [stderr] Checking regex v1.11.1 [INFO] [stderr] Checking env_filter v0.1.2 [INFO] [stderr] Checking env_logger v0.11.5 [INFO] [stderr] Compiling tokio-macros v2.4.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling serde_derive v1.0.214 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling mockall_derive v0.12.1 [INFO] [stderr] Checking async-stream v0.3.6 [INFO] [stderr] Checking tokio v1.41.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Checking mockall v0.12.1 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking tokio-util v0.7.12 [INFO] [stderr] Checking tokio-native-tls v0.3.1 [INFO] [stderr] Checking tokio-stream v0.1.17 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking tokio-test v0.4.4 [INFO] [stderr] Checking serde-semver v0.2.1 [INFO] [stderr] Checking h2 v0.3.26 [INFO] [stderr] Checking hyper v0.14.31 [INFO] [stderr] Checking hyper-tls v0.5.0 [INFO] [stderr] Checking reqwest v0.11.27 [INFO] [stderr] Checking rpm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `crate::AppContext` [INFO] [stdout] --> src/cli.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | AppContext, [INFO] [stdout] | ^^^^^^^^^^ no `AppContext` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::cache`, `crate::profiling` [INFO] [stdout] --> src/install.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | cache::PackageCache, [INFO] [stdout] | ^^^^^ could not find `cache` in the crate root [INFO] [stdout] 7 | profiling::MemoryProfile, [INFO] [stdout] | ^^^^^^^^^ could not find `profiling` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::AppContext` [INFO] [stdout] --> src/cli.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | AppContext, [INFO] [stdout] | ^^^^^^^^^^ no `AppContext` in the root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `crate::cache`, `crate::profiling` [INFO] [stdout] --> src/install.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | cache::PackageCache, [INFO] [stdout] | ^^^^^ could not find `cache` in the crate root [INFO] [stdout] 7 | profiling::MemoryProfile, [INFO] [stdout] | ^^^^^^^^^ could not find `profiling` in the crate root [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/cli.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegistryClient` [INFO] [stdout] --> src/cli.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RegistryClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::registry::RegistryClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DependencyResolver` [INFO] [stdout] --> src/cli.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | let resolver = DependencyResolver::new(registry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `DependencyResolver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::dependency::DependencyResolver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | PathBuf::from("/usr/local/lib/node_modules") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:131:21 [INFO] [stdout] | [INFO] [stdout] 131 | PathBuf::from("node_modules") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/cli.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | fs::remove_dir_all(&package_path).await?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:172:34 [INFO] [stdout] | [INFO] [stdout] 172 | let global_dir = PathBuf::from("/usr/local/lib/node_modules"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/cli.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | let mut entries = fs::read_dir(global_dir).await?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SecurityChecker` [INFO] [stdout] --> src/cli.rs:191:44 [INFO] [stdout] | [INFO] [stdout] 191 | let mut security_checker = SecurityChecker::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `SecurityChecker` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::SecurityChecker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Version` [INFO] [stdout] --> src/cli.rs:199:39 [INFO] [stdout] | [INFO] [stdout] 199 | let version = Version::parse(version_str)?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Version` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use reqwest::Version; [INFO] [stdout] | [INFO] [stdout] 1 + use reqwest::tls::Version; [INFO] [stdout] | [INFO] [stdout] 1 + use semver::Version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/cli.rs:219:48 [INFO] [stdout] | [INFO] [stdout] 219 | ... let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegistryClient` [INFO] [stdout] --> src/cli.rs:219:57 [INFO] [stdout] | [INFO] [stdout] 219 | ... let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RegistryClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::registry::RegistryClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sandbox` [INFO] [stdout] --> src/install.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let sandbox = Sandbox::new(&package_path); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Sandbox` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::sandbox::Sandbox; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/cli.rs:60:32 [INFO] [stdout] | [INFO] [stdout] 60 | let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegistryClient` [INFO] [stdout] --> src/cli.rs:60:41 [INFO] [stdout] | [INFO] [stdout] 60 | let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RegistryClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::registry::RegistryClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `DependencyResolver` [INFO] [stdout] --> src/cli.rs:61:32 [INFO] [stdout] | [INFO] [stdout] 61 | let resolver = DependencyResolver::new(registry); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of undeclared type `DependencyResolver` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::dependency::DependencyResolver; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:129:21 [INFO] [stdout] | [INFO] [stdout] 129 | PathBuf::from("/usr/local/lib/node_modules") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:131:21 [INFO] [stdout] | [INFO] [stdout] 131 | PathBuf::from("node_modules") [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/cli.rs:137:25 [INFO] [stdout] | [INFO] [stdout] 137 | fs::remove_dir_all(&package_path).await?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PathBuf` [INFO] [stdout] --> src/cli.rs:172:34 [INFO] [stdout] | [INFO] [stdout] 172 | let global_dir = PathBuf::from("/usr/local/lib/node_modules"); [INFO] [stdout] | ^^^^^^^ use of undeclared type `PathBuf` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::path::PathBuf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `fs` [INFO] [stdout] --> src/cli.rs:175:39 [INFO] [stdout] | [INFO] [stdout] 175 | let mut entries = fs::read_dir(global_dir).await?; [INFO] [stdout] | ^^ use of unresolved module or unlinked crate `fs` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `fs`, use `cargo add fs` to add it to your `Cargo.toml` [INFO] [stdout] help: consider importing one of these modules [INFO] [stdout] | [INFO] [stdout] 1 + use std::fs; [INFO] [stdout] | [INFO] [stdout] 1 + use tokio::fs; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SecurityChecker` [INFO] [stdout] --> src/cli.rs:191:44 [INFO] [stdout] | [INFO] [stdout] 191 | let mut security_checker = SecurityChecker::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `SecurityChecker` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct through its public re-export [INFO] [stdout] | [INFO] [stdout] 1 + use crate::SecurityChecker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Version` [INFO] [stdout] --> src/cli.rs:199:39 [INFO] [stdout] | [INFO] [stdout] 199 | let version = Version::parse(version_str)?; [INFO] [stdout] | ^^^^^^^ use of undeclared type `Version` [INFO] [stdout] | [INFO] [stdout] = note: struct `crate::package::tests::Version` exists but is inaccessible [INFO] [stdout] help: consider importing one of these structs [INFO] [stdout] | [INFO] [stdout] 1 + use reqwest::Version; [INFO] [stdout] | [INFO] [stdout] 1 + use reqwest::tls::Version; [INFO] [stdout] | [INFO] [stdout] 1 + use semver::Version; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Arc` [INFO] [stdout] --> src/cli.rs:219:48 [INFO] [stdout] | [INFO] [stdout] 219 | ... let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^ use of undeclared type `Arc` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use std::sync::Arc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `RegistryClient` [INFO] [stdout] --> src/cli.rs:219:57 [INFO] [stdout] | [INFO] [stdout] 219 | ... let registry = Arc::new(RegistryClient::new()); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `RegistryClient` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::registry::RegistryClient; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Sandbox` [INFO] [stdout] --> src/install.rs:111:23 [INFO] [stdout] | [INFO] [stdout] 111 | let sandbox = Sandbox::new(&package_path); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Sandbox` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 1 + use crate::sandbox::Sandbox; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0533]: expected unit struct, unit variant or constant, found struct variant `Commands::List` [INFO] [stdout] --> src/cli.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Commands::List => { [INFO] [stdout] | ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant [INFO] [stdout] | [INFO] [stdout] help: the struct variant's field is being ignored [INFO] [stdout] | [INFO] [stdout] 151 | Commands::List { global: _ } => { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0533]: expected unit struct, unit variant or constant, found struct variant `Commands::List` [INFO] [stdout] --> src/cli.rs:151:13 [INFO] [stdout] | [INFO] [stdout] 151 | Commands::List => { [INFO] [stdout] | ^^^^^^^^^^^^^^ not a unit struct, unit variant or constant [INFO] [stdout] | [INFO] [stdout] help: the struct variant's field is being ignored [INFO] [stdout] | [INFO] [stdout] 151 | Commands::List { global: _ } => { [INFO] [stdout] | +++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:55:60 [INFO] [stdout] | [INFO] [stdout] 55 | installer.install_packages(&packages).await?; [INFO] [stdout] | -------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:59:61 [INFO] [stdout] | [INFO] [stdout] 59 | let package_json = PackageJson::load().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:55:60 [INFO] [stdout] | [INFO] [stdout] 55 | installer.install_packages(&packages).await?; [INFO] [stdout] | -------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:59:61 [INFO] [stdout] | [INFO] [stdout] 59 | let package_json = PackageJson::load().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 63 | match packages { [INFO] [stdout] | -------- this expression has type `Vec` [INFO] [stdout] 64 | Some(packages) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Vec`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 63 | match packages { [INFO] [stdout] | -------- this expression has type `Vec` [INFO] [stdout] ... [INFO] [stdout] 98 | None => { [INFO] [stdout] | ^^^^ expected `Vec`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied [INFO] [stdout] --> src/cli.rs:84:57 [INFO] [stdout] | [INFO] [stdout] 84 | ... let installer = PackageInstaller::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^------- two arguments are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/install.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(global: bool, cache: PackageCache, memory_profile: MemoryProfile) -> Self { [INFO] [stdout] | ^^^ ------------------- ----------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 84 | let installer = PackageInstaller::new(false, /* cache */, /* memory_profile */); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:64:21 [INFO] [stdout] | [INFO] [stdout] 63 | match packages { [INFO] [stdout] | -------- this expression has type `Vec` [INFO] [stdout] 64 | Some(packages) => { [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `Vec`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/cli.rs:98:21 [INFO] [stdout] | [INFO] [stdout] 63 | match packages { [INFO] [stdout] | -------- this expression has type `Vec` [INFO] [stdout] ... [INFO] [stdout] 98 | None => { [INFO] [stdout] | ^^^^ expected `Vec`, found `Option<_>` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:85:90 [INFO] [stdout] | [INFO] [stdout] 85 | ... installer.install_packages(&[package_name]).await?; [INFO] [stdout] | -------------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied [INFO] [stdout] --> src/cli.rs:84:57 [INFO] [stdout] | [INFO] [stdout] 84 | ... let installer = PackageInstaller::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^------- two arguments are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/install.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(global: bool, cache: PackageCache, memory_profile: MemoryProfile) -> Self { [INFO] [stdout] | ^^^ ------------------- ----------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 84 | let installer = PackageInstaller::new(false, /* cache */, /* memory_profile */); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:85:90 [INFO] [stdout] | [INFO] [stdout] 85 | ... installer.install_packages(&[package_name]).await?; [INFO] [stdout] | -------------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied [INFO] [stdout] --> src/cli.rs:116:53 [INFO] [stdout] | [INFO] [stdout] 116 | ... let installer = PackageInstaller::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^------- two arguments are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/install.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(global: bool, cache: PackageCache, memory_profile: MemoryProfile) -> Self { [INFO] [stdout] | ^^^ ------------------- ----------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 116 | let installer = PackageInstaller::new(false, /* cache */, /* memory_profile */); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:117:86 [INFO] [stdout] | [INFO] [stdout] 117 | ... installer.install_packages(&[package_name]).await?; [INFO] [stdout] | -------------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 3 arguments but 1 argument was supplied [INFO] [stdout] --> src/cli.rs:116:53 [INFO] [stdout] | [INFO] [stdout] 116 | ... let installer = PackageInstaller::new(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^------- two arguments are missing [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/install.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn new(global: bool, cache: PackageCache, memory_profile: MemoryProfile) -> Self { [INFO] [stdout] | ^^^ ------------------- ----------------------------- [INFO] [stdout] help: provide the arguments [INFO] [stdout] | [INFO] [stdout] 116 | let installer = PackageInstaller::new(false, /* cache */, /* memory_profile */); [INFO] [stdout] | +++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:143:58 [INFO] [stdout] | [INFO] [stdout] 143 | ... package_json.save().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:117:86 [INFO] [stdout] | [INFO] [stdout] 117 | ... installer.install_packages(&[package_name]).await?; [INFO] [stdout] | -------------------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:143:58 [INFO] [stdout] | [INFO] [stdout] 143 | ... package_json.save().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:190:65 [INFO] [stdout] | [INFO] [stdout] 190 | let mut package_json = PackageJson::load().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:190:65 [INFO] [stdout] | [INFO] [stdout] 190 | let mut package_json = PackageJson::load().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:240:50 [INFO] [stdout] | [INFO] [stdout] 240 | package_json.save().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/cli.rs:240:50 [INFO] [stdout] | [INFO] [stdout] 240 | package_json.save().await?; [INFO] [stdout] | -------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, anyhow::Error>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope [INFO] [stdout] --> src/install.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 56 | total_progress.set_style(ProgressStyle::default_bar() [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | [INFO] [stdout] | __________________________________method `progress_chars` is available on `ProgressStyle` [INFO] [stdout] | | [INFO] [stdout] 57 | | .template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {pos}/{len} ({eta})") [INFO] [stdout] 58 | | .progress_chars("#>-")); [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `progress_chars` exists on the type `ProgressStyle` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/style.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn progress_chars(mut self, s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the `?` operator to extract the `ProgressStyle` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 57 | .template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {pos}/{len} ({eta})")? [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `progress_chars` found for enum `Result` in the current scope [INFO] [stdout] --> src/install.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 64 | pb.set_style(ProgressStyle::default_bar() [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | [INFO] [stdout] | __________________________method `progress_chars` is available on `ProgressStyle` [INFO] [stdout] | | [INFO] [stdout] 65 | | .template("{spinner:.green} {msg} [{wide_bar:.cyan/blue}] {pos}/{len}") [INFO] [stdout] 66 | | .progress_chars("#>-")); [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `progress_chars` exists on the type `ProgressStyle` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/style.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn progress_chars(mut self, s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `ProgressStyle` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 65 | .template("{spinner:.green} {msg} [{wide_bar:.cyan/blue}] {pos}/{len}").expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `progress_chars` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/install.rs:58:14 [INFO] [stdout] | [INFO] [stdout] 56 | total_progress.set_style(ProgressStyle::default_bar() [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | [INFO] [stdout] | __________________________________method `progress_chars` is available on `ProgressStyle` [INFO] [stdout] | | [INFO] [stdout] 57 | | .template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {pos}/{len} ({eta})") [INFO] [stdout] 58 | | .progress_chars("#>-")); [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `progress_chars` exists on the type `ProgressStyle` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/style.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn progress_chars(mut self, s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: use the `?` operator to extract the `ProgressStyle` value, propagating a `Result::Err` value to the caller [INFO] [stdout] | [INFO] [stdout] 57 | .template("{spinner:.green} [{elapsed_precise}] [{wide_bar:.cyan/blue}] {pos}/{len} ({eta})")? [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `MultiProgress` in the current scope [INFO] [stdout] --> src/install.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | m.join().unwrap(); [INFO] [stdout] | ^^^^ method not found in `MultiProgress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/install.rs:133:60 [INFO] [stdout] | [INFO] [stdout] 131 | .map_err(|e| RpmError::DownloadError { [INFO] [stdout] | --- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 132 | package: package.name.clone(), [INFO] [stdout] 133 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `RpmError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/install.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | --------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ParseError>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `progress_chars` found for enum `std::result::Result` in the current scope [INFO] [stdout] --> src/install.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 64 | pb.set_style(ProgressStyle::default_bar() [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | [INFO] [stdout] | __________________________method `progress_chars` is available on `ProgressStyle` [INFO] [stdout] | | [INFO] [stdout] 65 | | .template("{spinner:.green} {msg} [{wide_bar:.cyan/blue}] {pos}/{len}") [INFO] [stdout] 66 | | .progress_chars("#>-")); [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] note: the method `progress_chars` exists on the type `ProgressStyle` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/indicatif-0.17.11/src/style.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | pub fn progress_chars(mut self, s: &str) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `ProgressStyle` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 65 | .template("{spinner:.green} {msg} [{wide_bar:.cyan/blue}] {pos}/{len}").expect("REASON") [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/install.rs:141:46 [INFO] [stdout] | [INFO] [stdout] 141 | source: reqwest::Error::from(std::io::Error::new( [INFO] [stdout] | _________________________--------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this function are incorrect [INFO] [stdout] 142 | | std::io::ErrorKind::Other, [INFO] [stdout] 143 | | format!("HTTP {}", response.status()) [INFO] [stdout] 144 | | )), [INFO] [stdout] | |_________________^ expected `reqwest::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `reqwest::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/44e31dee3cf6f37b4f652572897bb0eb25c477ee/library/std/src/io/error.rs:65:1 [INFO] [stdout] note: `reqwest::Error` is defined in crate `reqwest` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.11.27/src/error.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/44e31dee3cf6f37b4f652572897bb0eb25c477ee/library/core/src/convert/mod.rs:587:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `join` found for struct `MultiProgress` in the current scope [INFO] [stdout] --> src/install.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 78 | m.join().unwrap(); [INFO] [stdout] | ^^^^ method not found in `MultiProgress` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for opaque type `impl Stream>` in the current scope [INFO] [stdout] --> src/install.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/futures-util-0.3.31/src/stream/stream/mod.rs:273:8 [INFO] [stdout] | [INFO] [stdout] 273 | fn next(&mut self) -> Next<'_, Self> [INFO] [stdout] | ---- the method is available for `impl Stream>` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: trait `StreamExt` which provides `next` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 1 + use futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] help: there is a method `try_next` with a similar name [INFO] [stdout] | [INFO] [stdout] 152 | while let Some(chunk) = stream.try_next().await { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/install.rs:133:60 [INFO] [stdout] | [INFO] [stdout] 131 | .map_err(|e| RpmError::DownloadError { [INFO] [stdout] | --- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 132 | package: package.name.clone(), [INFO] [stdout] 133 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `RpmError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/install.rs:155:60 [INFO] [stdout] | [INFO] [stdout] 153 | let chunk = chunk.map_err(|e| RpmError::DownloadError { [INFO] [stdout] | --- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 154 | package: package.name.clone(), [INFO] [stdout] 155 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `RpmError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/install.rs:140:60 [INFO] [stdout] | [INFO] [stdout] 140 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | --------------------------------------^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | | [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, ParseError>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/install.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 185 | / tokio::task::spawn_blocking(move || -> RpmResult<()> { [INFO] [stdout] 186 | | let tar_gz = std::fs::File::open(temp_path)?; [INFO] [stdout] 187 | | let tar = GzDecoder::new(tar_gz); [INFO] [stdout] 188 | | let mut archive = Archive::new(tar); [INFO] [stdout] ... | [INFO] [stdout] 196 | | Ok(()) [INFO] [stdout] 197 | | }).await??; [INFO] [stdout] | | -^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | |________________| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, JoinError>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/install.rs:141:46 [INFO] [stdout] | [INFO] [stdout] 141 | source: reqwest::Error::from(std::io::Error::new( [INFO] [stdout] | _________________________--------------------_^ [INFO] [stdout] | | | [INFO] [stdout] | | arguments to this function are incorrect [INFO] [stdout] 142 | | std::io::ErrorKind::Other, [INFO] [stdout] 143 | | format!("HTTP {}", response.status()) [INFO] [stdout] 144 | | )), [INFO] [stdout] | |_________________^ expected `reqwest::Error`, found `std::io::Error` [INFO] [stdout] | [INFO] [stdout] = note: `std::io::Error` and `reqwest::Error` have similar names, but are actually distinct types [INFO] [stdout] note: `std::io::Error` is defined in crate `std` [INFO] [stdout] --> /rustc/44e31dee3cf6f37b4f652572897bb0eb25c477ee/library/std/src/io/error.rs:65:1 [INFO] [stdout] note: `reqwest::Error` is defined in crate `reqwest` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-0.11.27/src/error.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | pub struct Error { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> /rustc/44e31dee3cf6f37b4f652572897bb0eb25c477ee/library/core/src/convert/mod.rs:587:8 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `next` found for opaque type `impl Stream>` in the current scope [INFO] [stdout] --> src/install.rs:152:40 [INFO] [stdout] | [INFO] [stdout] 152 | while let Some(chunk) = stream.next().await { [INFO] [stdout] | ^^^^ method not found in `impl Stream>` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following traits which provide `next` are implemented but not in scope; perhaps you want to import one of them [INFO] [stdout] | [INFO] [stdout] 1 + use futures::StreamExt; [INFO] [stdout] | [INFO] [stdout] 1 + use serde_json::de::Read; [INFO] [stdout] | [INFO] [stdout] 1 + use std::iter::Iterator; [INFO] [stdout] | [INFO] [stdout] 1 + use std::str::pattern::Searcher; [INFO] [stdout] | [INFO] [stdout] and 1 other candidate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/install.rs:155:60 [INFO] [stdout] | [INFO] [stdout] 153 | let chunk = chunk.map_err(|e| RpmError::DownloadError { [INFO] [stdout] | --- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] 154 | package: package.name.clone(), [INFO] [stdout] 155 | url: url::Url::parse(&package.dist.tarball)?, [INFO] [stdout] | ^ cannot use the `?` operator in a closure that returns `RpmError` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `RpmError` [INFO] [stdout] --> src/install.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 185 | / tokio::task::spawn_blocking(move || -> RpmResult<()> { [INFO] [stdout] 186 | | let tar_gz = std::fs::File::open(temp_path)?; [INFO] [stdout] 187 | | let tar = GzDecoder::new(tar_gz); [INFO] [stdout] 188 | | let mut archive = Archive::new(tar); [INFO] [stdout] ... | [INFO] [stdout] 196 | | Ok(()) [INFO] [stdout] 197 | | }).await??; [INFO] [stdout] | | -^ the trait `From` is not implemented for `RpmError` [INFO] [stdout] | |________________| [INFO] [stdout] | this can't be annotated with `?` because it has type `Result<_, JoinError>` [INFO] [stdout] | [INFO] [stdout] note: `RpmError` needs to implement `From` [INFO] [stdout] --> src/error.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum RpmError { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] `RpmError` implements `From` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version` [INFO] [stdout] --> src/security.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn check_package(&mut self, name: &str, version: &Version) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `version` [INFO] [stdout] --> src/security.rs:31:55 [INFO] [stdout] | [INFO] [stdout] 31 | pub async fn check_package(&mut self, name: &str, version: &Version) -> Result> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_version` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0433, E0533, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rpm` (lib) due to 36 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0433, E0533, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rpm` (lib test) due to 36 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "c85801677c1cf724cb537a2c750611ef6543c75ba5e5db72b44b7c22306c4d23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c85801677c1cf724cb537a2c750611ef6543c75ba5e5db72b44b7c22306c4d23", kill_on_drop: false }` [INFO] [stdout] c85801677c1cf724cb537a2c750611ef6543c75ba5e5db72b44b7c22306c4d23