[INFO] fetching crate firerust 1.0.1... [INFO] testing firerust-1.0.1 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate firerust 1.0.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate firerust 1.0.1 [INFO] finished tweaking crates.io crate firerust 1.0.1 [INFO] tweaked toml for crates.io crate firerust 1.0.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate firerust 1.0.1 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate firerust 1.0.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2bb2864b28601b9dbebc0d20ec1a589aabb36e77da8210bb0401281cad9b4d5 [INFO] running `Command { std: "docker" "start" "-a" "f2bb2864b28601b9dbebc0d20ec1a589aabb36e77da8210bb0401281cad9b4d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2bb2864b28601b9dbebc0d20ec1a589aabb36e77da8210bb0401281cad9b4d5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2bb2864b28601b9dbebc0d20ec1a589aabb36e77da8210bb0401281cad9b4d5", kill_on_drop: false }` [INFO] [stdout] f2bb2864b28601b9dbebc0d20ec1a589aabb36e77da8210bb0401281cad9b4d5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64596afa38c094b2a871402088fdf29e5f35a65f20fb18bc1f191ab84793ee36 [INFO] running `Command { std: "docker" "start" "-a" "64596afa38c094b2a871402088fdf29e5f35a65f20fb18bc1f191ab84793ee36", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling pkg-config v0.3.25 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling tinyvec_macros v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling matches v0.1.9 [INFO] [stderr] Compiling openssl v0.10.38 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling unicode-bidi v0.3.7 [INFO] [stderr] Compiling serde_json v1.0.79 [INFO] [stderr] Compiling native-tls v0.2.10 [INFO] [stderr] Compiling tinyvec v1.5.1 [INFO] [stderr] Compiling once_cell v1.10.0 [INFO] [stderr] Compiling ryu v1.0.9 [INFO] [stderr] Compiling form_urlencoded v1.0.1 [INFO] [stderr] Compiling itoa v1.0.1 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling unicode-normalization v0.1.19 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling idna v0.2.3 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling firerust v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.18s [INFO] running `Command { std: "docker" "inspect" "64596afa38c094b2a871402088fdf29e5f35a65f20fb18bc1f191ab84793ee36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64596afa38c094b2a871402088fdf29e5f35a65f20fb18bc1f191ab84793ee36", kill_on_drop: false }` [INFO] [stdout] 64596afa38c094b2a871402088fdf29e5f35a65f20fb18bc1f191ab84793ee36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a0c6f04b4419b1de4251195f52848a7dfc37a0681fbf50b5371f37f4399db24 [INFO] running `Command { std: "docker" "start" "-a" "2a0c6f04b4419b1de4251195f52848a7dfc37a0681fbf50b5371f37f4399db24", kill_on_drop: false }` [INFO] [stderr] Compiling firerust v1.0.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.62s [INFO] running `Command { std: "docker" "inspect" "2a0c6f04b4419b1de4251195f52848a7dfc37a0681fbf50b5371f37f4399db24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a0c6f04b4419b1de4251195f52848a7dfc37a0681fbf50b5371f37f4399db24", kill_on_drop: false }` [INFO] [stdout] 2a0c6f04b4419b1de4251195f52848a7dfc37a0681fbf50b5371f37f4399db24 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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" "RUSTDOCFLAGS=--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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 412d5dd28c7d6a498eb6f404b2da3b3576e2553446f78b71ee94e5ac9e3032d3 [INFO] running `Command { std: "docker" "start" "-a" "412d5dd28c7d6a498eb6f404b2da3b3576e2553446f78b71ee94e5ac9e3032d3", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/firerust-2b9972602a06a88b) [INFO] [stderr] Doc-tests firerust [INFO] [stdout] [INFO] [stdout] running 14 tests [INFO] [stdout] test src/connector.rs - connector::Connector::request (line 83) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::delete (line 259) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::child (line 141) ... FAILED [INFO] [stdout] test src/connector.rs - connector::Connector::reconnect (line 53) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::update (line 233) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::set (line 181) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::set_unique (line 207) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::on_snapshot (line 281) ... FAILED [INFO] [stdout] test src/lib.rs - FirebaseClient::reference (line 110) ... FAILED [INFO] [stdout] test src/lib.rs - connector (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - FirebaseClient::auth (line 97) ... FAILED [INFO] [stdout] test src/lib.rs - FirebaseClient::new (line 60) ... FAILED [INFO] [stdout] test src/lib.rs - RealtimeReference::get (line 155) ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/connector.rs - connector::Connector::request (line 83) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connector.rs:87:67 [INFO] [stdout] | [INFO] [stdout] 84 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_83_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 87 | let connector = Connector::new("docs-example.firebaseio.com", 443)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 84 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_83_0() -> Result<(), Box> { [INFO] [stdout] 85 | use firerust::connector::{ Connector, Method }; [INFO] [stdout] ... [INFO] [stdout] 88 | connector.request(Method::Get, "/", None, None)?; [INFO] [stdout] 89 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connector.rs:88:48 [INFO] [stdout] | [INFO] [stdout] 84 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_83_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 88 | connector.request(Method::Get, "/", None, None)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 84 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_83_0() -> Result<(), Box> { [INFO] [stdout] 85 | use firerust::connector::{ Connector, Method }; [INFO] [stdout] ... [INFO] [stdout] 88 | connector.request(Method::Get, "/", None, None)?; [INFO] [stdout] 89 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::delete (line 259) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:263:74 [INFO] [stdout] | [INFO] [stdout] 260 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_259_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 263 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 260 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_259_0() -> Result<(), Box> { [INFO] [stdout] 261 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 264 | client.reference("/").delete()?; [INFO] [stdout] 265 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:264:31 [INFO] [stdout] | [INFO] [stdout] 260 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_259_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 264 | client.reference("/").delete()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 260 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_259_0() -> Result<(), Box> { [INFO] [stdout] 261 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 264 | client.reference("/").delete()?; [INFO] [stdout] 265 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::child (line 141) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:145:74 [INFO] [stdout] | [INFO] [stdout] 142 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_141_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 145 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 142 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_141_0() -> Result<(), Box> { [INFO] [stdout] 143 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 147 | let child_reference = reference.child("child"); [INFO] [stdout] 148 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/connector.rs - connector::Connector::reconnect (line 53) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connector.rs:57:67 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_53_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 57 | let connector = Connector::new("docs-example.firebaseio.com", 443)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 54 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 55 | use firerust::connector::Connector; [INFO] [stdout] ... [INFO] [stdout] 58 | connector.reconnect()?; [INFO] [stdout] 59 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/connector.rs:58:22 [INFO] [stdout] | [INFO] [stdout] 54 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_53_0() { [INFO] [stdout] | ---------------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 58 | connector.reconnect()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 54 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_connector_rs_53_0() -> Result<(), Box> { [INFO] [stdout] 55 | use firerust::connector::Connector; [INFO] [stdout] ... [INFO] [stdout] 58 | connector.reconnect()?; [INFO] [stdout] 59 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::update (line 233) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:237:74 [INFO] [stdout] | [INFO] [stdout] 234 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_233_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 237 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 234 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_233_0() -> Result<(), Box> { [INFO] [stdout] 235 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 240 | }))?; [INFO] [stdout] 241 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:240:4 [INFO] [stdout] | [INFO] [stdout] 234 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_233_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 240 | }))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 234 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_233_0() -> Result<(), Box> { [INFO] [stdout] 235 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 240 | }))?; [INFO] [stdout] 241 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::set (line 181) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:185:74 [INFO] [stdout] | [INFO] [stdout] 182 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 185 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 182 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() -> Result<(), Box> { [INFO] [stdout] 183 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 188 | }))?; [INFO] [stdout] 189 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:188:4 [INFO] [stdout] | [INFO] [stdout] 182 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 188 | }))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 182 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_181_0() -> Result<(), Box> { [INFO] [stdout] 183 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 188 | }))?; [INFO] [stdout] 189 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::set_unique (line 207) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:211:74 [INFO] [stdout] | [INFO] [stdout] 208 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_207_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 211 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 208 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_207_0() -> Result<(), Box> { [INFO] [stdout] 209 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 214 | }))?; [INFO] [stdout] 215 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:214:4 [INFO] [stdout] | [INFO] [stdout] 208 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_207_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 214 | }))?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 208 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_207_0() -> Result<(), Box> { [INFO] [stdout] 209 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 214 | }))?; [INFO] [stdout] 215 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::on_snapshot (line 281) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:286:74 [INFO] [stdout] | [INFO] [stdout] 282 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_281_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 286 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 282 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_281_0() -> Result<(), Box> { [INFO] [stdout] 283 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 290 | }); [INFO] [stdout] 291 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - FirebaseClient::reference (line 110) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:114:74 [INFO] [stdout] | [INFO] [stdout] 111 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_110_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 114 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 111 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_110_0() -> Result<(), Box> { [INFO] [stdout] 112 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 115 | let reference = client.reference("/"); [INFO] [stdout] 116 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - connector (line 46) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Method` [INFO] [stdout] --> src/lib.rs:51:34 [INFO] [stdout] | [INFO] [stdout] 51 | let response = connector.request(Method::Get, "/", None, None)?; [INFO] [stdout] | ^^^^^^ use of undeclared type `Method` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 45 + use firerust::connector::Method; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:50:67 [INFO] [stdout] | [INFO] [stdout] 47 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_46_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 50 | let connector = Connector::new("docs-example.firebaseio.com", 443)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 47 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_46_0() -> Result<(), Box> { [INFO] [stdout] 48 | use firerust::connector::Connector; [INFO] [stdout] ... [INFO] [stdout] 53 | drop(connector); [INFO] [stdout] 54 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:51:63 [INFO] [stdout] | [INFO] [stdout] 47 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_46_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 51 | let response = connector.request(Method::Get, "/", None, None)?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 47 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_46_0() -> Result<(), Box> { [INFO] [stdout] 48 | use firerust::connector::Connector; [INFO] [stdout] ... [INFO] [stdout] 53 | drop(connector); [INFO] [stdout] 54 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - FirebaseClient::auth (line 97) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:101:74 [INFO] [stdout] | [INFO] [stdout] 98 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_97_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 101 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 98 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_97_0() -> Result<(), Box> { [INFO] [stdout] 99 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 102 | client.auth("ID_TOKEN"); [INFO] [stdout] 103 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - FirebaseClient::new (line 60) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:64:74 [INFO] [stdout] | [INFO] [stdout] 61 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_60_0() { [INFO] [stdout] | ---------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 64 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 61 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_60_0() -> Result<(), Box> { [INFO] [stdout] 62 | use firerust::FirebaseClient; [INFO] [stdout] 63 | [INFO] [stdout] 64 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] 65 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - RealtimeReference::get (line 155) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:160:74 [INFO] [stdout] | [INFO] [stdout] 156 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_155_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 160 | let client = FirebaseClient::new("https://docs-examples.firebaseio.com/")?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 156 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_155_0() -> Result<(), Box> { [INFO] [stdout] 157 | use firerust::FirebaseClient; [INFO] [stdout] ... [INFO] [stdout] 161 | assert_eq!(client.reference("/").get::().is_ok(), true); [INFO] [stdout] 162 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 12) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: GatewayTimeout [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/connector.rs - connector::Connector::reconnect (line 53) [INFO] [stdout] src/connector.rs - connector::Connector::request (line 83) [INFO] [stdout] src/lib.rs - (line 12) [INFO] [stdout] src/lib.rs - FirebaseClient::auth (line 97) [INFO] [stdout] src/lib.rs - FirebaseClient::new (line 60) [INFO] [stdout] src/lib.rs - FirebaseClient::reference (line 110) [INFO] [stdout] src/lib.rs - RealtimeReference::child (line 141) [INFO] [stdout] src/lib.rs - RealtimeReference::delete (line 259) [INFO] [stdout] src/lib.rs - RealtimeReference::get (line 155) [INFO] [stdout] src/lib.rs - RealtimeReference::on_snapshot (line 281) [INFO] [stdout] src/lib.rs - RealtimeReference::set (line 181) [INFO] [stdout] src/lib.rs - RealtimeReference::set_unique (line 207) [INFO] [stdout] src/lib.rs - RealtimeReference::update (line 233) [INFO] [stdout] src/lib.rs - connector (line 46) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 14 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.54s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "412d5dd28c7d6a498eb6f404b2da3b3576e2553446f78b71ee94e5ac9e3032d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "412d5dd28c7d6a498eb6f404b2da3b3576e2553446f78b71ee94e5ac9e3032d3", kill_on_drop: false }` [INFO] [stdout] 412d5dd28c7d6a498eb6f404b2da3b3576e2553446f78b71ee94e5ac9e3032d3