[INFO] updating cached repository https://github.com/jinyeow/imgscrpr [INFO] running `"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"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ed412483dc1d21133e0ea5bde557cceb16aa9bcc [INFO] testing jinyeow/imgscrpr against beta-2020-06-03 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjinyeow%2Fimgscrpr" "/workspace/builds/worker-2/source"` [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 beta-2020-06-03 [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "read-manifest" "--manifest-path" "Cargo.toml"` [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 `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [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 `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+beta-2020-06-03" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"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" "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" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2020-06-03" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] bf5d81d091d51d638e8a5eeff2723d36ea5b4f8a9c7d06cb840b5def7a3367a0 [INFO] running `"docker" "start" "-a" "bf5d81d091d51d638e8a5eeff2723d36ea5b4f8a9c7d06cb840b5def7a3367a0"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling syn v1.0.30 [INFO] [stderr] Compiling siphasher v0.3.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.16 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling openssl v0.10.29 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling encoding_rs v0.8.23 [INFO] [stderr] Compiling thin-slice v0.1.1 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling dtoa-short v0.3.2 [INFO] [stderr] Compiling indexmap v1.4.0 [INFO] [stderr] Compiling futf v0.1.4 [INFO] [stderr] Compiling socket2 v0.3.12 [INFO] [stderr] Compiling servo_arc v0.1.1 [INFO] [stderr] Compiling serde_json v1.0.53 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling tokio v0.2.21 [INFO] [stderr] Compiling tendril v0.4.1 [INFO] [stderr] Compiling string_cache v0.8.0 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling rand v0.7.3 [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 http-body v0.3.1 [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 pin-project-internal v0.4.20 [INFO] [stderr] Compiling serde_derive v1.0.111 [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.7 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling pin-project v0.4.20 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling h2 v0.2.5 [INFO] [stderr] Compiling markup5ever v0.10.0 [INFO] [stderr] Compiling hyper v0.13.6 [INFO] [stderr] Compiling scraper v0.12.0 [INFO] [stderr] Compiling hyper-tls v0.4.1 [INFO] [stderr] Compiling reqwest v0.10.6 [INFO] [stderr] Compiling imgscrpr v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `reqwest::header::Authorization` [INFO] [stderr] --> src/provider/imgur.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use reqwest::header::Authorization; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `Authorization` in `header` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/provider/imgur.rs:32:52 [INFO] [stderr] | [INFO] [stderr] 32 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/provider/gfycat.rs:31:52 [INFO] [stderr] | [INFO] [stderr] 31 | pub fn scrape_data(url: &str) -> Result> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:105:45 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn run(opts: Options) -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:269:58 [INFO] [stderr] | [INFO] [stderr] 269 | fn scrape(img: &Value, filename: &str) -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:280:48 [INFO] [stderr] | [INFO] [stderr] 280 | fn mk_cd_dir(location: &str) -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:291:38 [INFO] [stderr] | [INFO] [stderr] 291 | fn mkdir_default() -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:301:46 [INFO] [stderr] | [INFO] [stderr] 301 | fn mkdir_custom(dir: &str) -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/lib.rs:311:74 [INFO] [stderr] | [INFO] [stderr] 311 | fn mkdir_custom_with_sub_dir(dir: &str, sub_dir: &str) -> Result<(), Box> { [INFO] [stderr] | ^^^^^ help: use `dyn`: `dyn Error` [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:292:16 [INFO] [stderr] | [INFO] [stderr] 292 | let home = env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:302:16 [INFO] [stderr] | [INFO] [stderr] 302 | let home = env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] 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] [stderr] --> src/lib.rs:312:16 [INFO] [stderr] | [INFO] [stderr] 312 | let home = env::home_dir().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` [INFO] [stderr] --> src/lib.rs:271:20 [INFO] [stderr] | [INFO] [stderr] 271 | let mut data = reqwest::get(url)?; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl std::future::Future` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future` [INFO] [stderr] = note: required by `std::ops::Try::into_result` [INFO] [stderr] [INFO] [stderr] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stderr] --> src/provider/imgur.rs:23:10 [INFO] [stderr] | [INFO] [stderr] 23 | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stderr] | ^^^^^^ ------------------------------------------------- supplied 1 argument [INFO] [stderr] | | [INFO] [stderr] | expected 2 arguments [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/provider/imgur.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 13 | fn get_data(id: &str, collection: bool) -> Result { [INFO] [stderr] | -------------------------------- expected `std::result::Result` because of return type [INFO] [stderr] ... [INFO] [stderr] 22 | / client.get(&api_url) [INFO] [stderr] 23 | | .header(Authorization(format!("Client-ID {}", CLIENT_ID))) [INFO] [stderr] 24 | | .send() [INFO] [stderr] | |_______________^ expected enum `std::result::Result`, found opaque type [INFO] [stderr] | [INFO] [stderr] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/reqwest-0.10.6/src/async_impl/request.rs:409:26 [INFO] [stderr] | [INFO] [stderr] 409 | pub fn send(self) -> impl Future> { [INFO] [stderr] | ---------------------------------------------------- the found opaque type [INFO] [stderr] | [INFO] [stderr] = note: expected enum `std::result::Result` [INFO] [stderr] found opaque type `impl std::future::Future` [INFO] [stderr] [INFO] [stderr] error[E0277]: the `?` operator can only be applied to values that implement `std::ops::Try` [INFO] [stderr] --> src/provider/imgur.rs:42:22 [INFO] [stderr] | [INFO] [stderr] 42 | Ok(mut d) => d.text()?, [INFO] [stderr] | ^^^^^^^^^ the `?` operator cannot be applied to type `impl std::future::Future` [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::ops::Try` is not implemented for `impl std::future::Future` [INFO] [stderr] = note: required by `std::ops::Try::into_result` [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stderr] --> src/provider/imgur.rs:41:9 [INFO] [stderr] | [INFO] [stderr] 41 | let body = match get_data(id, c) { [INFO] [stderr] | ^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stderr] --> src/provider/imgur.rs:42:22 [INFO] [stderr] | [INFO] [stderr] 42 | Ok(mut d) => d.text()?, [INFO] [stderr] | ^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: all local variables must have a statically known size [INFO] [stderr] = help: unsized locals are gated as an unstable feature [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `str` cannot be known at compilation time [INFO] [stderr] --> src/provider/imgur.rs:42:30 [INFO] [stderr] | [INFO] [stderr] 42 | Ok(mut d) => d.text()?, [INFO] [stderr] | ^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `std::marker::Sized` is not implemented for `str` [INFO] [stderr] = note: to learn more, visit [INFO] [stderr] = note: required by `std::prelude::v1::Err` [INFO] [stderr] [INFO] [stderr] error[E0277]: `?` couldn't convert the error to `()` [INFO] [stderr] --> src/provider/gfycat.rs:20:38 [INFO] [stderr] | [INFO] [stderr] 19 | fn get_value(fragment: &Html, selector: &str, attr: &str) -> Result { [INFO] [stderr] | ------------------ expected `()` because of this [INFO] [stderr] 20 | let s = Selector::parse(selector)?; [INFO] [stderr] | ^ the trait `std::convert::From>>` is not implemented for `()` [INFO] [stderr] | [INFO] [stderr] = note: the question mark operation (`?`) implicitly performs a conversion on the error value using the `From` trait [INFO] [stderr] = note: required by `std::convert::From::from` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `unwrap` found for opaque type `impl std::future::Future` in the current scope [INFO] [stderr] --> src/provider/gfycat.rs:37:37 [INFO] [stderr] | [INFO] [stderr] 37 | let mut res = reqwest::get(url).unwrap(); [INFO] [stderr] | ^^^^^^ method not found in `impl std::future::Future` [INFO] [stderr] [INFO] [stderr] error: aborting due to 10 previous errors; 11 warnings emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0061, E0277, E0308, E0432, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0061`. [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 `"docker" "inspect" "bf5d81d091d51d638e8a5eeff2723d36ea5b4f8a9c7d06cb840b5def7a3367a0"` [INFO] running `"docker" "rm" "-f" "bf5d81d091d51d638e8a5eeff2723d36ea5b4f8a9c7d06cb840b5def7a3367a0"` [INFO] [stdout] bf5d81d091d51d638e8a5eeff2723d36ea5b4f8a9c7d06cb840b5def7a3367a0