[INFO] updating cached repository https://github.com/jinyeow/imgscrpr [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed412483dc1d21133e0ea5bde557cceb16aa9bcc [INFO] testing jinyeow/imgscrpr against beta-2020-07-24 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinyeow%2Fimgscrpr" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jinyeow/imgscrpr on toolchain beta-2020-07-24 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "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-8/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" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-8/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" "+beta-2020-07-24" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2020-07-24" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99a9bfb6c5f99e02ecbd3907831e0fa89cf1ef5aa542ad876c93ea319179d20e [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" "99a9bfb6c5f99e02ecbd3907831e0fa89cf1ef5aa542ad876c93ea319179d20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99a9bfb6c5f99e02ecbd3907831e0fa89cf1ef5aa542ad876c93ea319179d20e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99a9bfb6c5f99e02ecbd3907831e0fa89cf1ef5aa542ad876c93ea319179d20e", kill_on_drop: false }` [INFO] [stdout] 99a9bfb6c5f99e02ecbd3907831e0fa89cf1ef5aa542ad876c93ea319179d20e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-07-24" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 00646157bff8058429b8aebaa821a424b9defd3987778881778559f11c1b0f0d [INFO] running `Command { std: "docker" "start" "-a" "00646157bff8058429b8aebaa821a424b9defd3987778881778559f11c1b0f0d", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.38 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling thin-slice v0.1.1 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling hashbrown v0.8.2 [INFO] [stderr] Compiling indexmap v1.5.1 [INFO] [stderr] Compiling tracing-core v0.1.13 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling dtoa-short v0.3.2 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.34 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling servo_arc v0.1.1 [INFO] [stderr] Compiling futf v0.1.4 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling clap v2.33.2 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling tracing v0.1.18 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling string_cache v0.8.0 [INFO] [stderr] Compiling tendril v0.4.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tokio v0.2.22 [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] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling phf_macros v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling cssparser v0.27.2 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Compiling derive_more v0.99.9 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling pin-project v0.4.23 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Compiling hyper v0.13.7 [INFO] [stderr] Compiling scraper v0.12.0 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.7 [INFO] [stderr] Compiling 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 item '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 item '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 item '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 `std::ops::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 std::future::Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future` [INFO] [stdout] = note: required by `std::ops::Try::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.7/src/async_impl/request.rs:409:26 [INFO] [stdout] | [INFO] [stdout] 409 | 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 std::future::Future` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be applied to values that implement `std::ops::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 std::future::Future` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future` [INFO] [stdout] = note: required by `std::ops::Try::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 `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: to learn more, visit [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 `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: to learn more, visit [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 `std::marker::Sized` is not implemented for `str` [INFO] [stdout] = note: to learn more, visit [INFO] [stdout] = note: required by `std::prelude::v1::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 `std::convert::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 `std::convert::From::from` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for opaque type `impl std::future::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 std::future::Future` [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] [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" "00646157bff8058429b8aebaa821a424b9defd3987778881778559f11c1b0f0d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00646157bff8058429b8aebaa821a424b9defd3987778881778559f11c1b0f0d", kill_on_drop: false }` [INFO] [stdout] 00646157bff8058429b8aebaa821a424b9defd3987778881778559f11c1b0f0d