[INFO] cloning repository https://github.com/qlfy17/github-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qlfy17/github-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqlfy17%2Fgithub-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqlfy17%2Fgithub-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3a5c2710677db7a97136a8af4037cce892185c15 [INFO] testing qlfy17/github-rs/3a5c2710677db7a97136a8af4037cce892185c15 against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqlfy17%2Fgithub-rs" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/qlfy17/github-rs [INFO] finished tweaking git repo https://github.com/qlfy17/github-rs [INFO] tweaked toml for git repo https://github.com/qlfy17/github-rs written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/qlfy17/github-rs on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/qlfy17/github-rs 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wasm-bindgen-futures v0.4.45 [INFO] [stderr] Downloaded unicode-bidi v0.3.17 [INFO] [stderr] Downloaded windows-result v0.2.0 [INFO] [stderr] Downloaded windows-registry v0.2.0 [INFO] [stderr] Downloaded windows-strings v0.1.0 [INFO] [stderr] Downloaded security-framework-sys v2.12.0 [INFO] [stderr] Downloaded tokio-rustls v0.26.0 [INFO] [stderr] Downloaded rustls-pki-types v1.10.0 [INFO] [stderr] Downloaded oauth2 v4.4.2 [INFO] [stderr] Downloaded hyper-util v0.1.9 [INFO] [stderr] Downloaded openssl-sys v0.9.104 [INFO] [stderr] Downloaded tokio-util v0.7.12 [INFO] [stderr] Downloaded schannel v0.1.26 [INFO] [stderr] Downloaded hyper v1.5.0 [INFO] [stderr] Downloaded h2 v0.4.6 [INFO] [stderr] Downloaded rustls-webpki v0.102.8 [INFO] [stderr] Downloaded reqwest v0.12.8 [INFO] [stderr] Downloaded hyper-rustls v0.27.3 [INFO] [stderr] Downloaded ipnet v2.10.1 [INFO] [stderr] Downloaded proc-macro2 v1.0.87 [INFO] [stderr] Downloaded native-tls v0.2.12 [INFO] [stderr] Downloaded openssl v0.10.67 [INFO] [stderr] Downloaded rustls v0.23.15 [INFO] [stderr] Downloaded tokio v1.40.0 [INFO] [stderr] Downloaded encoding_rs v0.8.34 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 473faa4f8491997af71f3006f2958a0caabd1aeb67ebdaf449b08033dd1def65 [INFO] running `Command { std: "docker" "start" "-a" "473faa4f8491997af71f3006f2958a0caabd1aeb67ebdaf449b08033dd1def65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "473faa4f8491997af71f3006f2958a0caabd1aeb67ebdaf449b08033dd1def65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "473faa4f8491997af71f3006f2958a0caabd1aeb67ebdaf449b08033dd1def65", kill_on_drop: false }` [INFO] [stdout] 473faa4f8491997af71f3006f2958a0caabd1aeb67ebdaf449b08033dd1def65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 239c8d1243c7b306d9f9422b32b519f57a3f6305911e8df3b3c5b8ce521afa5e [INFO] running `Command { std: "docker" "start" "-a" "239c8d1243c7b306d9f9422b32b519f57a3f6305911e8df3b3c5b8ce521afa5e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.87 [INFO] [stderr] Compiling libc v0.2.159 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Compiling cc v1.1.30 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling http v1.1.0 [INFO] [stderr] Compiling futures-task v0.3.31 [INFO] [stderr] Compiling openssl v0.10.67 [INFO] [stderr] Compiling hashbrown v0.15.0 [INFO] [stderr] Compiling httparse v1.9.5 [INFO] [stderr] Compiling native-tls v0.2.12 [INFO] [stderr] Compiling tinyvec v1.8.0 [INFO] [stderr] Compiling bitflags v2.6.0 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling smallvec v1.13.2 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling unicode-bidi v0.3.17 [INFO] [stderr] Compiling log v0.4.22 [INFO] [stderr] Compiling rustls-pki-types v1.10.0 [INFO] [stderr] Compiling cpufeatures v0.2.14 [INFO] [stderr] Compiling sync_wrapper v1.0.1 [INFO] [stderr] Compiling encoding_rs v0.8.34 [INFO] [stderr] Compiling http v0.2.12 [INFO] [stderr] Compiling indexmap v2.6.0 [INFO] [stderr] Compiling rustls-pemfile v2.2.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling unicode-normalization v0.1.24 [INFO] [stderr] Compiling http-body v1.0.1 [INFO] [stderr] Compiling syn v2.0.79 [INFO] [stderr] Compiling mio v1.0.2 [INFO] [stderr] Compiling socket2 v0.5.7 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling http-body-util v0.1.2 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling tokio v1.40.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling ipnet v2.10.1 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.8 [INFO] [stderr] Compiling openssl-sys v0.9.104 [INFO] [stderr] Compiling tokio-util v0.7.12 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling thiserror-impl v1.0.64 [INFO] [stderr] Compiling async-trait v0.1.83 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling thiserror v1.0.64 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling url v2.5.2 [INFO] [stderr] Compiling serde_json v1.0.128 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_path_to_error v0.1.16 [INFO] [stderr] Compiling chrono v0.4.38 [INFO] [stderr] Compiling h2 v0.4.6 [INFO] [stderr] Compiling oauth2 v4.4.2 [INFO] [stderr] Compiling hyper v1.5.0 [INFO] [stderr] Compiling hyper-util v0.1.9 [INFO] [stderr] Compiling hyper-tls v0.6.0 [INFO] [stderr] Compiling reqwest v0.12.8 [INFO] [stderr] Compiling github v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/client.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::{header, RequestBuilder, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/organization.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/client.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoRequest` is never used [INFO] [stdout] --> src/client.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait IntoRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_request`, `send`, `request`, and `request_basic` are never used [INFO] [stdout] --> src/client.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Client { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(client: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_request(&self, req: impl IntoRequest) -> RequestBuilder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn send(&self, req: RequestBuilder) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn request(&self, url: &str, auth: &AccessToken) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn request_basic(&self, url: &str, username: &str, password: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `avatar_url` are never read [INFO] [stdout] --> src/organization.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Organization { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | pub avatar_url: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Organization` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `org_by_name` is never used [INFO] [stdout] --> src/organization.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 14 | pub async fn org_by_name(&self, org_name: &str, auth: &AccessToken) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `organization` are never read [INFO] [stdout] --> src/team.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Team { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub organization: Organization, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Team` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `team_by_name` is never used [INFO] [stdout] --> src/team.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 14 | pub async fn team_by_name( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl UserRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build` is never used [INFO] [stdout] --> src/user.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl UserRequestBuilder { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 36 | pub fn build(&self) -> UserRequest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `current_user` is never used [INFO] [stdout] --> src/user.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 41 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 42 | pub async fn current_user(&self, req: UserRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2m 50s [INFO] running `Command { std: "docker" "inspect" "239c8d1243c7b306d9f9422b32b519f57a3f6305911e8df3b3c5b8ce521afa5e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "239c8d1243c7b306d9f9422b32b519f57a3f6305911e8df3b3c5b8ce521afa5e", kill_on_drop: false }` [INFO] [stdout] 239c8d1243c7b306d9f9422b32b519f57a3f6305911e8df3b3c5b8ce521afa5e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6977b257095e747dacb42957a85d378ce31960a54330aa2a73ca1ef9873ae5e0 [INFO] running `Command { std: "docker" "start" "-a" "6977b257095e747dacb42957a85d378ce31960a54330aa2a73ca1ef9873ae5e0", kill_on_drop: false }` [INFO] [stderr] Compiling github v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/client.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::{header, RequestBuilder, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/organization.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Client` is never constructed [INFO] [stdout] --> src/client.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Client { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `IntoRequest` is never used [INFO] [stdout] --> src/client.rs:22:11 [INFO] [stdout] | [INFO] [stdout] 22 | pub trait IntoRequest { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `new_request`, `send`, `request`, and `request_basic` are never used [INFO] [stdout] --> src/client.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl Client { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 27 | pub fn new(client: Option) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 36 | pub fn new_request(&self, req: impl IntoRequest) -> RequestBuilder { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub async fn send(&self, req: RequestBuilder) -> Result [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 76 | pub async fn request(&self, url: &str, auth: &AccessToken) -> Result [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 84 | pub async fn request_basic(&self, url: &str, username: &str, password: &str) -> Result [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id` and `avatar_url` are never read [INFO] [stdout] --> src/organization.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Organization { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 10 | pub avatar_url: Option, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Organization` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `org_by_name` is never used [INFO] [stdout] --> src/organization.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 14 | pub async fn org_by_name(&self, org_name: &str, auth: &AccessToken) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `organization` are never read [INFO] [stdout] --> src/team.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct Team { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 8 | pub id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 9 | pub name: Option, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub organization: Organization, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Team` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `team_by_name` is never used [INFO] [stdout] --> src/team.rs:14:18 [INFO] [stdout] | [INFO] [stdout] 13 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 14 | pub async fn team_by_name( [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/user.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 26 | impl UserRequest { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 27 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `build` is never used [INFO] [stdout] --> src/user.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl UserRequestBuilder { [INFO] [stdout] | ----------------------- method in this implementation [INFO] [stdout] 36 | pub fn build(&self) -> UserRequest { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `current_user` is never used [INFO] [stdout] --> src/user.rs:42:18 [INFO] [stdout] | [INFO] [stdout] 41 | impl Client { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 42 | pub async fn current_user(&self, req: UserRequest) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: async functions cannot be used for tests [INFO] [stdout] --> src/user.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | async fn current_user_should_work() -> Result<()> { [INFO] [stdout] | ^---- [INFO] [stdout] | | [INFO] [stdout] | _`async` because of this [INFO] [stdout] | | [INFO] [stdout] 50 | | let client = Client::new(None); [INFO] [stdout] 51 | | client [INFO] [stdout] 52 | | .current_user(UserRequestBuilder::build(&self)) [INFO] [stdout] 53 | | .await? [INFO] [stdout] 54 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0424]: expected value, found module `self` [INFO] [stdout] --> src/user.rs:52:50 [INFO] [stdout] | [INFO] [stdout] 49 | async fn current_user_should_work() -> Result<()> { [INFO] [stdout] | ------------------------ this function can't have a `self` parameter [INFO] [stdout] ... [INFO] [stdout] 52 | .current_user(UserRequestBuilder::build(&self)) [INFO] [stdout] | ^^^^ `self` value is a keyword only available in methods with a `self` parameter [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Response` [INFO] [stdout] --> src/client.rs:4:39 [INFO] [stdout] | [INFO] [stdout] 4 | use reqwest::{header, RequestBuilder, Response}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `async_trait::async_trait` [INFO] [stdout] --> src/organization.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use async_trait::async_trait; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `?` operator has incompatible types [INFO] [stdout] --> src/user.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | async fn current_user_should_work() -> Result<()> { [INFO] [stdout] | ---------- expected `std::result::Result<(), error::Error>` because of return type [INFO] [stdout] 50 | let client = Client::new(None); [INFO] [stdout] 51 | / client [INFO] [stdout] 52 | | .current_user(UserRequestBuilder::build(&self)) [INFO] [stdout] 53 | | .await? [INFO] [stdout] | |_______________^ expected `Result<(), Error>`, found `UserResponse` [INFO] [stdout] | [INFO] [stdout] = note: `?` operator cannot convert from `UserResponse` to `std::result::Result<(), error::Error>` [INFO] [stdout] = note: expected enum `std::result::Result<(), error::Error>` [INFO] [stdout] found struct `UserResponse` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0424. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `github` (lib test) due to 3 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6977b257095e747dacb42957a85d378ce31960a54330aa2a73ca1ef9873ae5e0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6977b257095e747dacb42957a85d378ce31960a54330aa2a73ca1ef9873ae5e0", kill_on_drop: false }` [INFO] [stdout] 6977b257095e747dacb42957a85d378ce31960a54330aa2a73ca1ef9873ae5e0