[INFO] cloning repository https://github.com/jinyeow/imgscrpr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jinyeow/imgscrpr" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinyeow%2Fimgscrpr", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinyeow%2Fimgscrpr'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed412483dc1d21133e0ea5bde557cceb16aa9bcc [INFO] checking jinyeow/imgscrpr against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinyeow%2Fimgscrpr" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jinyeow/imgscrpr on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jinyeow/imgscrpr [INFO] finished tweaking git repo https://github.com/jinyeow/imgscrpr [INFO] tweaked toml for git repo https://github.com/jinyeow/imgscrpr written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/jinyeow/imgscrpr already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb715b6543437fb22640745e724742dc5a04b9628cf75806a75d903933981751 [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" "cb715b6543437fb22640745e724742dc5a04b9628cf75806a75d903933981751", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb715b6543437fb22640745e724742dc5a04b9628cf75806a75d903933981751", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb715b6543437fb22640745e724742dc5a04b9628cf75806a75d903933981751", kill_on_drop: false }` [INFO] [stdout] cb715b6543437fb22640745e724742dc5a04b9628cf75806a75d903933981751 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 586408aa0323c7a7354f40d4016a51051d351bc84d08680c98b24d9feefc3cce [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" "586408aa0323c7a7354f40d4016a51051d351bc84d08680c98b24d9feefc3cce", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.79 [INFO] [stderr] Compiling syn v1.0.43 [INFO] [stderr] Compiling getrandom v0.1.15 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling ppv-lite86 v0.2.9 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Checking itoa v0.4.6 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Checking bytes v0.5.6 [INFO] [stderr] Checking futures-core v0.3.6 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Checking slab v0.4.2 [INFO] [stderr] Compiling pin-project-internal v0.4.26 [INFO] [stderr] Checking pin-project-lite v0.1.10 [INFO] [stderr] Checking matches v0.1.8 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Checking dtoa v0.4.6 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Checking foreign-types-shared v0.1.1 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Checking futures-task v0.3.6 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking tinyvec v0.3.4 [INFO] [stderr] Checking futures-sink v0.3.6 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking utf-8 v0.7.5 [INFO] [stderr] Checking openssl-probe v0.1.2 [INFO] [stderr] Checking try-lock v0.2.3 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking smallvec v1.4.2 [INFO] [stderr] Checking httpdate v0.3.2 [INFO] [stderr] Checking tower-service v0.3.0 [INFO] [stderr] Checking nodrop v0.1.14 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking stable_deref_trait v1.2.0 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Checking thin-slice v0.1.1 [INFO] [stderr] Checking mime v0.3.16 [INFO] [stderr] Checking ipnet v2.3.0 [INFO] [stderr] Checking ego-tree v0.6.2 [INFO] [stderr] Checking base64 v0.12.3 [INFO] [stderr] Checking vec_map v0.8.2 [INFO] [stderr] Checking tracing-core v0.1.17 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking futures-channel v0.3.6 [INFO] [stderr] Checking unicode-bidi v0.3.4 [INFO] [stderr] Checking phf_shared v0.8.0 [INFO] [stderr] Checking foreign-types v0.3.2 [INFO] [stderr] Checking http v0.2.1 [INFO] [stderr] Checking dtoa-short v0.3.2 [INFO] [stderr] Checking futf v0.1.4 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking servo_arc v0.1.1 [INFO] [stderr] Checking unicode-normalization v0.1.13 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Checking string_cache v0.8.0 [INFO] [stderr] Checking serde_json v1.0.58 [INFO] [stderr] Checking tendril v0.4.1 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Checking want v0.3.0 [INFO] [stderr] Checking tracing v0.1.21 [INFO] [stderr] Checking aho-corasick v0.7.13 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking net2 v0.2.35 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking socket2 v0.3.15 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Checking mio v0.6.22 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Checking url v2.1.1 [INFO] [stderr] Checking tokio v0.2.22 [INFO] [stderr] Checking http-body v0.3.1 [INFO] [stderr] Checking serde_urlencoded v0.6.1 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling selectors v0.22.0 [INFO] [stderr] Checking tokio-util v0.3.1 [INFO] [stderr] Checking tokio-tls v0.3.1 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling derive_more v0.99.11 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking pin-project v0.4.26 [INFO] [stderr] Checking futures-util v0.3.6 [INFO] [stderr] Checking h2 v0.2.6 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Checking hyper v0.13.8 [INFO] [stderr] Checking scraper v0.12.0 [INFO] [stderr] Checking hyper-tls v0.4.3 [INFO] [stderr] Checking reqwest v0.10.8 [INFO] [stderr] Checking imgscrpr v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `reqwest::header::Authorization` [INFO] [stdout] --> src/provider/imgur.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::header::Authorization; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Authorization` in `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/provider/imgur.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/provider/gfycat.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:105:45 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn run(opts: Options) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | fn scrape(img: &Value, filename: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:280:48 [INFO] [stdout] | [INFO] [stdout] 280 | fn mk_cd_dir(location: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:291:38 [INFO] [stdout] | [INFO] [stdout] 291 | fn mkdir_default() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:301:46 [INFO] [stdout] | [INFO] [stdout] 301 | fn mkdir_custom(dir: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:311:74 [INFO] [stdout] | [INFO] [stdout] 311 | fn mkdir_custom_with_sub_dir(dir: &str, sub_dir: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:312:16 [INFO] [stdout] | [INFO] [stdout] 312 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `reqwest::header::Authorization` [INFO] [stdout] --> src/provider/imgur.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::header::Authorization; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Authorization` in `header` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/provider/imgur.rs:32:52 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/provider/gfycat.rs:31:52 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:105:45 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn run(opts: Options) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:269:58 [INFO] [stdout] | [INFO] [stdout] 269 | fn scrape(img: &Value, filename: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:280:48 [INFO] [stdout] | [INFO] [stdout] 280 | fn mk_cd_dir(location: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:291:38 [INFO] [stdout] | [INFO] [stdout] 291 | fn mkdir_default() -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:301:46 [INFO] [stdout] | [INFO] [stdout] 301 | fn mkdir_custom(dir: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:311:74 [INFO] [stdout] | [INFO] [stdout] 311 | fn mkdir_custom_with_sub_dir(dir: &str, sub_dir: &str) -> Result<(), Box> { [INFO] [stdout] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:292:16 [INFO] [stdout] | [INFO] [stdout] 292 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:302:16 [INFO] [stdout] | [INFO] [stdout] 302 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::env::home_dir`: This function's behavior is unexpected and probably not what you want. Consider using a crate from crates.io instead. [INFO] [stdout] --> src/lib.rs:312:16 [INFO] [stdout] | [INFO] [stdout] 312 | let home = env::home_dir().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:271:20 [INFO] [stdout] | [INFO] [stdout] 271 | let mut data = reqwest::get(url)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future` [INFO] [stdout] = note: required by `into_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/provider/imgur.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stdout] | ^^^^^^ ------------------------------------------------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/lib.rs:271:20 [INFO] [stdout] | [INFO] [stdout] 271 | let mut data = reqwest::get(url)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future` [INFO] [stdout] = note: required by `into_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/provider/imgur.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 23 | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stdout] | ^^^^^^ ------------------------------------------------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/provider/imgur.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 13 | fn get_data(id: &str, collection: bool) -> Result { [INFO] [stdout] | -------------------------------- expected `std::result::Result` because of return type [INFO] [stdout] ... [INFO] [stdout] 22 | / client.get(&api_url) [INFO] [stdout] 23 | | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stdout] 24 | | .send() [INFO] [stdout] | |_______________^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/reqwest-0.10.8/src/async_impl/request.rs:408:26 [INFO] [stdout] | [INFO] [stdout] 408 | pub fn send(self) -> impl Future> { [INFO] [stdout] | ---------------------------------------------------- the found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found opaque type `impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/provider/imgur.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^^^^^^^^^ the `?` operator cannot be applied to type `impl Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future` [INFO] [stdout] = note: required by `into_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/provider/imgur.rs:22:5 [INFO] [stdout] | [INFO] [stdout] 13 | fn get_data(id: &str, collection: bool) -> Result { [INFO] [stdout] | -------------------------------- expected `std::result::Result` because of return type [INFO] [stdout] ... [INFO] [stdout] 22 | / client.get(&api_url) [INFO] [stdout] 23 | | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stdout] 24 | | .send() [INFO] [stdout] | |_______________^ expected enum `std::result::Result`, found opaque type [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/reqwest-0.10.8/src/async_impl/request.rs:408:26 [INFO] [stdout] | [INFO] [stdout] 408 | pub fn send(self) -> impl Future> { [INFO] [stdout] | ---------------------------------------------------- the found opaque type [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::result::Result` [INFO] [stdout] found opaque type `impl Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let body = match get_data(id, c) { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `Err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `Try` [INFO] [stdout] --> src/provider/imgur.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^^^^^^^^^ the `?` operator cannot be applied to type `impl Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `impl Future` [INFO] [stdout] = note: required by `into_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 41 | let body = match get_data(id, c) { [INFO] [stdout] | ^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:42:22 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: all local variables must have a statically known size [INFO] [stdout] = help: unsized locals are gated as an unstable feature [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stdout] --> src/provider/imgur.rs:42:30 [INFO] [stdout] | [INFO] [stdout] 42 | Ok(mut d) => d.text()?, [INFO] [stdout] | ^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `str` [INFO] [stdout] = note: required by `Err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/provider/gfycat.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_value(fragment: &Html, selector: &str, attr: &str) -> Result { [INFO] [stdout] | ------------------ expected `()` because of this [INFO] [stdout] 20 | let s = Selector::parse(selector)?; [INFO] [stdout] | ^ the trait `From>>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future` in the current scope [INFO] [stdout] --> src/provider/gfycat.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = reqwest::get(url).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future` [INFO] [stdout] | [INFO] [stdout] help: consider awaiting before this method call [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = reqwest::get(url).await.unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stdout] --> src/provider/gfycat.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_value(fragment: &Html, selector: &str, attr: &str) -> Result { [INFO] [stdout] | ------------------ expected `()` because of this [INFO] [stdout] 20 | let s = Selector::parse(selector)?; [INFO] [stdout] | ^ the trait `From>>` is not implemented for `()` [INFO] [stdout] | [INFO] [stdout] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stdout] = note: required by `from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future` in the current scope [INFO] [stdout] --> src/provider/gfycat.rs:37:37 [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = reqwest::get(url).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future` [INFO] [stdout] | [INFO] [stdout] help: consider awaiting before this method call [INFO] [stdout] | [INFO] [stdout] 37 | let mut res = reqwest::get(url).await.unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl Future` in the current scope [INFO] [stdout] --> src/provider/gfycat.rs:67:41 [INFO] [stdout] | [INFO] [stdout] 67 | let mut res = reqwest::get(url).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `impl Future` [INFO] [stdout] | [INFO] [stdout] help: consider awaiting before this method call [INFO] [stdout] | [INFO] [stdout] 67 | let mut res = reqwest::get(url).await.unwrap(); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `imgscrpr` [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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "586408aa0323c7a7354f40d4016a51051d351bc84d08680c98b24d9feefc3cce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "586408aa0323c7a7354f40d4016a51051d351bc84d08680c98b24d9feefc3cce", kill_on_drop: false }` [INFO] [stdout] 586408aa0323c7a7354f40d4016a51051d351bc84d08680c98b24d9feefc3cce