[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] checking FTB-Gamepedia/bunnybutt-rs against try#4a23c45c7893f1416456144e3883cc48ea91722e for pr-82322 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFTB-Gamepedia%2Fbunnybutt-rs" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FTB-Gamepedia/bunnybutt-rs on toolchain 4a23c45c7893f1416456144e3883cc48ea91722e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "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-6/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" "+4a23c45c7893f1416456144e3883cc48ea91722e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cc v1.0.38 [INFO] [stderr] Downloaded miniz_oxide v0.3.1 [INFO] [stderr] Downloaded irc v0.11.8 [INFO] [stderr] Downloaded openssl-sys v0.9.48 [INFO] [stderr] Downloaded serde_derive v1.0.98 [INFO] [stderr] Downloaded backtrace v0.3.34 [INFO] [stderr] Downloaded miniz_oxide_c_api v0.2.3 [INFO] [stderr] Downloaded getrandom v0.1.8 [INFO] [stderr] Downloaded serde v1.0.98 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "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] bb165fb4524ee605a77728f2167e372b116c39742248c861def49d13b164ff55 [INFO] running `Command { std: "docker" "start" "-a" "bb165fb4524ee605a77728f2167e372b116c39742248c861def49d13b164ff55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb165fb4524ee605a77728f2167e372b116c39742248c861def49d13b164ff55", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb165fb4524ee605a77728f2167e372b116c39742248c861def49d13b164ff55", kill_on_drop: false }` [INFO] [stdout] bb165fb4524ee605a77728f2167e372b116c39742248c861def49d13b164ff55 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+4a23c45c7893f1416456144e3883cc48ea91722e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 721f50d384c110226fb653a150bc1329d0ffc818d9e34f2943a2ab779b8ef7b4 [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" "721f50d384c110226fb653a150bc1329d0ffc818d9e34f2943a2ab779b8ef7b4", kill_on_drop: false }` [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Checking smallvec v0.6.10 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Checking either v1.5.2 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Compiling pkg-config v0.3.15 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Compiling memchr v2.2.1 [INFO] [stderr] Compiling serde v1.0.98 [INFO] [stderr] Compiling ryu v1.0.0 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Checking regex-syntax v0.6.11 [INFO] [stderr] Compiling native-tls v0.2.3 [INFO] [stderr] Checking try-lock v0.2.2 [INFO] [stderr] Checking indexmap v1.0.2 [INFO] [stderr] Compiling encoding_rs v0.8.17 [INFO] [stderr] Checking dtoa v0.4.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Compiling miniz_oxide_c_api v0.2.3 [INFO] [stderr] Checking try_from v0.3.2 [INFO] [stderr] Checking tokio-sync v0.1.6 [INFO] [stderr] Checking miniz_oxide v0.3.1 [INFO] [stderr] Checking unicode-normalization v0.1.8 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking lock_api v0.1.5 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking iovec v0.1.2 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking net2 v0.2.33 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Compiling parking_lot_core v0.4.0 [INFO] [stderr] Compiling hyper v0.12.33 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking backtrace-sys v0.1.31 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling unicase v2.4.0 [INFO] [stderr] Compiling error-chain v0.12.1 [INFO] [stderr] Checking tokio-executor v0.1.8 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking futures-cpupool v0.1.8 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking backtrace v0.3.34 [INFO] [stderr] Checking mio v0.6.19 [INFO] [stderr] Checking want v0.2.0 [INFO] [stderr] Checking irc v0.11.8 [INFO] [stderr] Compiling openssl-sys v0.9.48 [INFO] [stderr] Checking tokio-current-thread v0.1.6 [INFO] [stderr] Checking tokio-timer v0.2.11 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Checking tokio-io v0.1.12 [INFO] [stderr] Checking http v0.1.18 [INFO] [stderr] Checking string v0.2.1 [INFO] [stderr] Checking tokio-buf v0.1.1 [INFO] [stderr] Checking flate2 v1.0.9 [INFO] [stderr] Checking idna v0.1.5 [INFO] [stderr] Checking idna v0.2.0 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking mime v0.3.13 [INFO] [stderr] Compiling mime_guess v2.0.1 [INFO] [stderr] Checking url v2.1.0 [INFO] [stderr] Checking tokio-threadpool v0.1.15 [INFO] [stderr] Checking uuid v0.7.4 [INFO] [stderr] Checking regex v1.2.1 [INFO] [stderr] Compiling openssl v0.10.24 [INFO] [stderr] Checking url v1.7.2 [INFO] [stderr] Checking parking_lot v0.7.1 [INFO] [stderr] Checking tokio-reactor v0.1.9 [INFO] [stderr] Checking cookie v0.12.0 [INFO] [stderr] Checking tokio-tcp v0.1.3 [INFO] [stderr] Checking publicsuffix v1.5.2 [INFO] [stderr] Checking h2 v0.1.26 [INFO] [stderr] Checking http-body v0.1.0 [INFO] [stderr] Checking tokio v0.1.22 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling serde_derive v1.0.98 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking hyper-tls v0.3.2 [INFO] [stderr] Checking serde_json v1.0.40 [INFO] [stderr] Checking serde_urlencoded v0.5.5 [INFO] [stderr] Checking cookie_store v0.7.0 [INFO] [stderr] Checking reqwest v0.9.19 [INFO] [stderr] Checking mediawiki v0.0.1 (https://github.com/FTB-Gamepedia/mediawiki-rs.git#d09bae79) [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:108:21 [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] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:109:22 [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] | | ^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:109:22 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result<(), Error>` [INFO] [stdout] ... | [INFO] [stdout] 116 | | } [INFO] [stdout] 117 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result<(), Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:132:13 [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] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result, Error>` [INFO] [stdout] ... | [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:132:13 [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] 133 | || .get("tokens")? [INFO] [stdout] | ||_______________________________^ cannot use the `?` operator in a method that returns `Result, Error>` [INFO] [stdout] ... | [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:132:13 [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] 133 | || .get("tokens")? [INFO] [stdout] 134 | || .get(T::out_type())? [INFO] [stdout] | ||____________________________________^ cannot use the `?` operator in a method that returns `Result, Error>` [INFO] [stdout] 135 | | .as_str()?, [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:132:13 [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] 133 | || .get("tokens")? [INFO] [stdout] 134 | || .get(T::out_type())? [INFO] [stdout] 135 | || .as_str()?, [INFO] [stdout] | ||__________________________^ cannot use the `?` operator in a method that returns `Result, Error>` [INFO] [stdout] 136 | | )) [INFO] [stdout] 137 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:166:22 [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] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:166:22 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:167:21 [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] | | ^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:167:21 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:19 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:19 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:19 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:171:19 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result>, Error>` [INFO] [stdout] ... | [INFO] [stdout] 184 | | Ok(Some(buf)) [INFO] [stdout] 185 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result>, Error>` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:317:19 [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] | | ^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:317:19 [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] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] 318 | | self.buf.clone_from(buf.as_array()?); [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:318:29 [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] | | ^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:321:31 [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] | | ^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a method that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/mediawiki-rs-ccdb6ca811e3accb/d09bae7/src/lib.rs:322:38 [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] | | ^^^^^^^^^^^^^ cannot use the `?` operator in a method that returns `Result` [INFO] [stdout] ... | [INFO] [stdout] 327 | | } [INFO] [stdout] 328 | | } [INFO] [stdout] | |_____- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual>` is not implemented for `Result` [INFO] [stdout] = note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `mediawiki` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "721f50d384c110226fb653a150bc1329d0ffc818d9e34f2943a2ab779b8ef7b4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "721f50d384c110226fb653a150bc1329d0ffc818d9e34f2943a2ab779b8ef7b4", kill_on_drop: false }` [INFO] [stdout] 721f50d384c110226fb653a150bc1329d0ffc818d9e34f2943a2ab779b8ef7b4