[INFO] fetching crate r621 0.3.0... [INFO] testing r621-0.3.0 against master#caccb4d0368bd918ef6668af8e13834d07040417 for pr-146098-1 [INFO] extracting crate r621 0.3.0 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate r621 0.3.0 [INFO] finished tweaking crates.io crate r621 0.3.0 [INFO] tweaked toml for crates.io crate r621 0.3.0 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate r621 0.3.0 on toolchain caccb4d0368bd918ef6668af8e13834d07040417 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate r621 0.3.0 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" "+caccb4d0368bd918ef6668af8e13834d07040417" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 190a5ee17f0458b74c3bfaa6a6ee7bfdef3fd315cd377c68038adfd29dd266ef [INFO] running `Command { std: "docker" "start" "-a" "190a5ee17f0458b74c3bfaa6a6ee7bfdef3fd315cd377c68038adfd29dd266ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "190a5ee17f0458b74c3bfaa6a6ee7bfdef3fd315cd377c68038adfd29dd266ef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "190a5ee17f0458b74c3bfaa6a6ee7bfdef3fd315cd377c68038adfd29dd266ef", kill_on_drop: false }` [INFO] [stdout] 190a5ee17f0458b74c3bfaa6a6ee7bfdef3fd315cd377c68038adfd29dd266ef [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca5d770b7785325316b00cbcd6bbb2630a2b1fb536fd67603a02fe95bedfc152 [INFO] running `Command { std: "docker" "start" "-a" "ca5d770b7785325316b00cbcd6bbb2630a2b1fb536fd67603a02fe95bedfc152", kill_on_drop: false }` [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling cc v1.2.31 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling openssl v0.10.73 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling bitflags v2.9.1 [INFO] [stderr] Compiling native-tls v0.2.14 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling openssl-probe v0.1.6 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling sync_wrapper v1.0.2 [INFO] [stderr] Compiling tower-layer v0.3.3 [INFO] [stderr] Compiling ipnet v2.11.0 [INFO] [stderr] Compiling serde_json v1.0.142 [INFO] [stderr] Compiling http-body-util v0.1.3 [INFO] [stderr] Compiling memchr v2.7.5 [INFO] [stderr] Compiling zeroize v1.8.1 [INFO] [stderr] Compiling iri-string v0.7.8 [INFO] [stderr] Compiling rustls-pki-types v1.12.0 [INFO] [stderr] Compiling openssl-sys v0.9.109 [INFO] [stderr] Compiling synstructure v0.13.2 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.8.0 [INFO] [stderr] Compiling zerovec-derive v0.11.1 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.8.0 [INFO] [stderr] Compiling zerovec v0.11.2 [INFO] [stderr] Compiling zerotrie v0.2.2 [INFO] [stderr] Compiling tinystr v0.8.1 [INFO] [stderr] Compiling potential_utf v0.1.2 [INFO] [stderr] Compiling icu_collections v2.0.0 [INFO] [stderr] Compiling icu_locale_core v2.0.0 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling icu_provider v2.0.0 [INFO] [stderr] Compiling icu_normalizer v2.0.0 [INFO] [stderr] Compiling icu_properties v2.0.1 [INFO] [stderr] Compiling idna_adapter v1.2.1 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling tokio-util v0.7.15 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling tower v0.5.2 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.4.11 [INFO] [stderr] Compiling tower-http v0.6.6 [INFO] [stderr] Compiling hyper v1.6.0 [INFO] [stderr] Compiling hyper-util v0.1.16 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.22 [INFO] [stderr] Compiling r621 v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 08s [INFO] running `Command { std: "docker" "inspect" "ca5d770b7785325316b00cbcd6bbb2630a2b1fb536fd67603a02fe95bedfc152", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca5d770b7785325316b00cbcd6bbb2630a2b1fb536fd67603a02fe95bedfc152", kill_on_drop: false }` [INFO] [stdout] ca5d770b7785325316b00cbcd6bbb2630a2b1fb536fd67603a02fe95bedfc152 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3bae7fc6fd03651ec95fc80465fa10f3dda1a1bec6f8ba952b05eae65a048a8 [INFO] running `Command { std: "docker" "start" "-a" "f3bae7fc6fd03651ec95fc80465fa10f3dda1a1bec6f8ba952b05eae65a048a8", kill_on_drop: false }` [INFO] [stderr] Compiling r621 v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.38s [INFO] running `Command { std: "docker" "inspect" "f3bae7fc6fd03651ec95fc80465fa10f3dda1a1bec6f8ba952b05eae65a048a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3bae7fc6fd03651ec95fc80465fa10f3dda1a1bec6f8ba952b05eae65a048a8", kill_on_drop: false }` [INFO] [stdout] f3bae7fc6fd03651ec95fc80465fa10f3dda1a1bec6f8ba952b05eae65a048a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+caccb4d0368bd918ef6668af8e13834d07040417" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 15fa480f751d1eb34784f5a0a7b5f4b1038f3a0fbcf41c44f5d4dc8c99950cc3 [INFO] running `Command { std: "docker" "start" "-a" "15fa480f751d1eb34784f5a0a7b5f4b1038f3a0fbcf41c44f5d4dc8c99950cc3", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/r621-806dbbfff58ff523) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests r621 [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] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/client.rs - client::Client::new (line 22) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::list_posts (line 58) ... FAILED [INFO] [stdout] test src/client.rs - client::Client::get_post (line 87) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/client.rs - client::Client::new (line 22) stdout ---- [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | -------------------------- expected `Result<(), Box<(dyn std::error::Error + 'static)>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 14 | let mut esix_client = Client::new(auth, user_agent); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 14 ~ let mut esix_client = Client::new(auth, user_agent);; [INFO] [stdout] 15 + 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 E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::list_posts (line 58) stdout ---- [INFO] [stdout] error[E0599]: no method named `list_posts` found for enum `Result` in the current scope [INFO] [stdout] --> src/client.rs:71:28 [INFO] [stdout] | [INFO] [stdout] 15 | let posts = esix_client.list_posts(None, Some("lucario"), None).await?; [INFO] [stdout] | ^^^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `list_posts` exists on the type `r621::client::Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / pub async fn list_posts( [INFO] [stdout] 74 | | &mut self, [INFO] [stdout] 75 | | limit: Option, [INFO] [stdout] 76 | | tags: Option, [INFO] [stdout] 77 | | page: Option, [INFO] [stdout] 78 | | ) -> Result> { [INFO] [stdout] | |__________________________^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `r621::client::Client` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 15 | let posts = esix_client.expect("REASON").list_posts(None, Some("lucario"), None).await?; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/client.rs:71:73 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | -------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | let posts = esix_client.list_posts(None, Some("lucario"), None).await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | -------------------------- expected `Result<(), Box<(dyn std::error::Error + 'static)>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 15 | let posts = esix_client.list_posts(None, Some("lucario"), None).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 15 ~ let posts = esix_client.list_posts(None, Some("lucario"), None).await?;; [INFO] [stdout] 16 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/client.rs - client::Client::get_post (line 87) stdout ---- [INFO] [stdout] error[E0599]: no method named `get_post` found for enum `Result` in the current scope [INFO] [stdout] --> src/client.rs:100:27 [INFO] [stdout] | [INFO] [stdout] 15 | let post = esix_client.get_post(1337).await?; [INFO] [stdout] | ^^^^^^^^ method not found in `Result` [INFO] [stdout] | [INFO] [stdout] note: the method `get_post` exists on the type `r621::client::Client` [INFO] [stdout] --> /opt/rustwide/workdir/src/client.rs:102:5 [INFO] [stdout] | [INFO] [stdout] 102 | pub async fn get_post(&mut self, post_id: Id) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] help: consider using `Result::expect` to unwrap the `r621::client::Client` value, panicking if the value is a `Result::Err` [INFO] [stdout] | [INFO] [stdout] 15 | let post = esix_client.expect("REASON").get_post(1337).await?; [INFO] [stdout] | +++++++++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in an async block that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/client.rs:100:47 [INFO] [stdout] | [INFO] [stdout] 7 | #[tokio::main] [INFO] [stdout] | -------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 15 | let post = esix_client.get_post(1337).await?; [INFO] [stdout] | ^ cannot use the `?` operator in an async block that returns `()` [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/client.rs:100:4 [INFO] [stdout] | [INFO] [stdout] 8 | async fn main() -> Result<(), Box> { [INFO] [stdout] | -------------------------- expected `Result<(), Box<(dyn std::error::Error + 'static)>>` because of return type [INFO] [stdout] ... [INFO] [stdout] 15 | let post = esix_client.get_post(1337).await?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result<(), Box>`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(), Box<(dyn std::error::Error + 'static)>>` [INFO] [stdout] found unit type `()` [INFO] [stdout] help: try adding an expression at the end of the block [INFO] [stdout] | [INFO] [stdout] 15 ~ let post = esix_client.get_post(1337).await?;; [INFO] [stdout] 16 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/client.rs - client::Client::get_post (line 87) [INFO] [stdout] src/client.rs - client::Client::list_posts (line 58) [INFO] [stdout] src/client.rs - client::Client::new (line 22) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.50s [INFO] [stdout] [INFO] [stdout] all doctests ran in 0.80s; merged doctests compilation took 0.29s [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "15fa480f751d1eb34784f5a0a7b5f4b1038f3a0fbcf41c44f5d4dc8c99950cc3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15fa480f751d1eb34784f5a0a7b5f4b1038f3a0fbcf41c44f5d4dc8c99950cc3", kill_on_drop: false }` [INFO] [stdout] 15fa480f751d1eb34784f5a0a7b5f4b1038f3a0fbcf41c44f5d4dc8c99950cc3