[INFO] cloning repository https://github.com/FTB-Gamepedia/bunnybutt-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FTB-Gamepedia/bunnybutt-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFTB-Gamepedia%2Fbunnybutt-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFTB-Gamepedia%2Fbunnybutt-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 10f5f437f8c8e85479b17e0801adcd5c4e45e450 [INFO] testing FTB-Gamepedia/bunnybutt-rs against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFTB-Gamepedia%2Fbunnybutt-rs" "/workspace/builds/worker-9/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-9/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FTB-Gamepedia/bunnybutt-rs on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FTB-Gamepedia/bunnybutt-rs [INFO] finished tweaking git repo https://github.com/FTB-Gamepedia/bunnybutt-rs [INFO] tweaked toml for git repo https://github.com/FTB-Gamepedia/bunnybutt-rs written to /workspace/builds/worker-9/source/Cargo.toml [INFO] crate git repo https://github.com/FTB-Gamepedia/bunnybutt-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded miniz_oxide v0.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", 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] 93340db3f64327bfad73a0af418209249a4e309baed66a1e0f44a6e1dfbb7a6e [INFO] running `Command { std: "docker" "start" "-a" "93340db3f64327bfad73a0af418209249a4e309baed66a1e0f44a6e1dfbb7a6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93340db3f64327bfad73a0af418209249a4e309baed66a1e0f44a6e1dfbb7a6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93340db3f64327bfad73a0af418209249a4e309baed66a1e0f44a6e1dfbb7a6e", kill_on_drop: false }` [INFO] [stdout] 93340db3f64327bfad73a0af418209249a4e309baed66a1e0f44a6e1dfbb7a6e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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=warn" "-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:eaef2f80f755933c374d2ae5edccceec0c1312ceb8a4e0b6404e8ab76561e1e5" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7c6eb0db14425ce04c85410654bfa1d8856080acc639927736862f31a71a0c8d [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" "7c6eb0db14425ce04c85410654bfa1d8856080acc639927736862f31a71a0c8d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling cc v1.0.38 [INFO] [stderr] Compiling miniz_oxide v0.3.1 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling irc v0.11.8 [INFO] [stderr] Compiling http v0.1.18 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling mime_guess v2.0.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling tokio-io v0.1.12 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling want v0.2.0 [INFO] [stderr] Compiling openssl-sys v0.9.48 [INFO] [stderr] Compiling backtrace-sys v0.1.31 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.3 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling tokio-threadpool v0.1.15 [INFO] [stderr] Compiling uuid v0.7.4 [INFO] [stderr] Compiling parking_lot v0.7.1 [INFO] [stderr] Compiling flate2 v1.0.9 [INFO] [stderr] Compiling tokio-reactor v0.1.9 [INFO] [stderr] Compiling openssl v0.10.24 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Compiling tokio-tcp v0.1.3 [INFO] [stderr] Compiling backtrace v0.3.34 [INFO] [stderr] Compiling http-body v0.1.0 [INFO] [stderr] Compiling h2 v0.1.26 [INFO] [stderr] Compiling tokio v0.1.22 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Compiling failure v0.1.5 [INFO] [stderr] Compiling publicsuffix v1.5.2 [INFO] [stderr] Compiling hyper v0.12.33 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling hyper-tls v0.3.2 [INFO] [stderr] Compiling serde_json v1.0.40 [INFO] [stderr] Compiling serde_urlencoded v0.5.5 [INFO] [stderr] Compiling cookie_store v0.7.0 [INFO] [stderr] Compiling reqwest v0.9.19 [INFO] [stderr] Compiling mediawiki v0.0.1 (https://github.com/FTB-Gamepedia/mediawiki-rs.git#d09bae79) [INFO] [stdout] error[E0432]: unresolved import `std::option::NoneError` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | option::NoneError, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ no `NoneError` in `option` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:108:38 [INFO] [stdout] | [INFO] [stdout] 99 | / pub fn login(&self) -> Result<(), Error> { [INFO] [stdout] 100 | | let token = self.get_token::()?; [INFO] [stdout] 101 | | let mut request = self.request(); [INFO] [stdout] 102 | | request [INFO] [stdout] ... | [INFO] [stdout] 108 | | let inner = json.get("login")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:109:41 [INFO] [stdout] | [INFO] [stdout] 99 | / pub fn login(&self) -> Result<(), Error> { [INFO] [stdout] 100 | | let token = self.get_token::()?; [INFO] [stdout] 101 | | let mut request = self.request(); [INFO] [stdout] 102 | | request [INFO] [stdout] ... | [INFO] [stdout] 109 | | let result = inner.get("result")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:109:51 [INFO] [stdout] | [INFO] [stdout] 99 | / pub fn login(&self) -> Result<(), Error> { [INFO] [stdout] 100 | | let token = self.get_token::()?; [INFO] [stdout] 101 | | let mut request = self.request(); [INFO] [stdout] 102 | | request [INFO] [stdout] ... | [INFO] [stdout] 109 | | let result = inner.get("result")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:132:30 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn get_token(&self) -> Result, Error> [INFO] [stdout] 122 | | where [INFO] [stdout] 123 | | T: TokenType, [INFO] [stdout] 124 | | { [INFO] [stdout] ... | [INFO] [stdout] 132 | | json.get("query")? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, Error>` [INFO] [stdout] ... | [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:133:31 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn get_token(&self) -> Result, Error> [INFO] [stdout] 122 | | where [INFO] [stdout] 123 | | T: TokenType, [INFO] [stdout] 124 | | { [INFO] [stdout] ... | [INFO] [stdout] 133 | | .get("tokens")? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, Error>` [INFO] [stdout] ... | [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn get_token(&self) -> Result, Error> [INFO] [stdout] 122 | | where [INFO] [stdout] 123 | | T: TokenType, [INFO] [stdout] 124 | | { [INFO] [stdout] ... | [INFO] [stdout] 134 | | .get(T::out_type())? [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, Error>` [INFO] [stdout] 135 | | .as_str()?, [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:135:26 [INFO] [stdout] | [INFO] [stdout] 121 | / pub fn get_token(&self) -> Result, Error> [INFO] [stdout] 122 | | where [INFO] [stdout] 123 | | T: TokenType, [INFO] [stdout] 124 | | { [INFO] [stdout] ... | [INFO] [stdout] 135 | | .as_str()?, [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result, Error>` [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:166:39 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 166 | | let images = json.get("query")?.get("pages")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:166:53 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 166 | | let images = json.get("query")?.get("pages")?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:167:39 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 167 | | let image = images.as_object()?.values().next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:167:56 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 167 | | let image = images.as_object()?.values().next()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:41 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 171 | | let url = image.get("imageinfo")?.get(0)?.get("url")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:49 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 171 | | let url = image.get("imageinfo")?.get(0)?.get("url")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:61 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 171 | | let url = image.get("imageinfo")?.get(0)?.get("url")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:71 [INFO] [stdout] | [INFO] [stdout] 159 | / pub fn download_file(&self, name: &str) -> Result>, Error> { [INFO] [stdout] 160 | | let mut request = self.request(); [INFO] [stdout] 161 | | request.arg("action", "query"); [INFO] [stdout] 162 | | request.arg("prop", "imageinfo"); [INFO] [stdout] ... | [INFO] [stdout] 171 | | let url = image.get("imageinfo")?.get(0)?.get("url")?.as_str()?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:317:36 [INFO] [stdout] | [INFO] [stdout] 315 | / fn fill(&mut self) -> Result { [INFO] [stdout] 316 | | let json = self.req.get()?; [INFO] [stdout] 317 | | let buf = json.get("query")?.get(&self.list)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:317:53 [INFO] [stdout] | [INFO] [stdout] 315 | / fn fill(&mut self) -> Result { [INFO] [stdout] 316 | | let json = self.req.get()?; [INFO] [stdout] 317 | | let buf = json.get("query")?.get(&self.list)?; [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:318:43 [INFO] [stdout] | [INFO] [stdout] 315 | / fn fill(&mut self) -> Result { [INFO] [stdout] 316 | | let json = self.req.get()?; [INFO] [stdout] 317 | | let buf = json.get("query")?.get(&self.list)?; [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:321:47 [INFO] [stdout] | [INFO] [stdout] 315 | / fn fill(&mut self) -> Result { [INFO] [stdout] 316 | | let json = self.req.get()?; [INFO] [stdout] 317 | | let buf = json.get("query")?.get(&self.list)?; [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 321 | | for (key, val) in cont.as_object()? { [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used on `Result`s, not `Option`s, in a method that returns `Result` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:322:50 [INFO] [stdout] | [INFO] [stdout] 315 | / fn fill(&mut self) -> Result { [INFO] [stdout] 316 | | let json = self.req.get()?; [INFO] [stdout] 317 | | let buf = json.get("query")?.get(&self.list)?; [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 322 | | self.req.arg(&**key, val.as_str()?); [INFO] [stdout] | | ^ use `.ok_or(...)?` to provide an error compatible with `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function returns a `Result` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 21 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mediawiki` due to 22 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7c6eb0db14425ce04c85410654bfa1d8856080acc639927736862f31a71a0c8d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c6eb0db14425ce04c85410654bfa1d8856080acc639927736862f31a71a0c8d", kill_on_drop: false }` [INFO] [stdout] 7c6eb0db14425ce04c85410654bfa1d8856080acc639927736862f31a71a0c8d