[INFO] cloning repository https://github.com/daniman123/author-background [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/daniman123/author-background" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaniman123%2Fauthor-background", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaniman123%2Fauthor-background'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f412b4202f038d0fb52de8c7c452a25273e6fac9 [INFO] testing daniman123/author-background against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdaniman123%2Fauthor-background" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/daniman123/author-background on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/daniman123/author-background [INFO] finished tweaking git repo https://github.com/daniman123/author-background [INFO] tweaked toml for git repo https://github.com/daniman123/author-background written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/daniman123/author-background 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 65d5cb1a211bee3f6808398c2044512656868ede109661a8bc5e0541901a058c [INFO] running `Command { std: "docker" "start" "-a" "65d5cb1a211bee3f6808398c2044512656868ede109661a8bc5e0541901a058c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "65d5cb1a211bee3f6808398c2044512656868ede109661a8bc5e0541901a058c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "65d5cb1a211bee3f6808398c2044512656868ede109661a8bc5e0541901a058c", kill_on_drop: false }` [INFO] [stdout] 65d5cb1a211bee3f6808398c2044512656868ede109661a8bc5e0541901a058c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96d9fcf42e319bf4a084d2833e4a154d0e4b5f433f2c144783dd0c6eb26e74b1 [INFO] running `Command { std: "docker" "start" "-a" "96d9fcf42e319bf4a084d2833e4a154d0e4b5f433f2c144783dd0c6eb26e74b1", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling siphasher v0.3.11 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling smallvec v1.13.1 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling cc v1.0.88 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling bytes v1.5.0 [INFO] [stderr] Compiling log v0.4.21 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling futures-core v0.3.30 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling openssl v0.10.64 [INFO] [stderr] Compiling phf_shared v0.10.0 [INFO] [stderr] Compiling phf_shared v0.11.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling http v0.2.11 [INFO] [stderr] Compiling futures-task v0.3.30 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling futures-sink v0.3.30 [INFO] [stderr] Compiling equivalent v1.0.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling hashbrown v0.14.3 [INFO] [stderr] Compiling mac v0.1.1 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling futf v0.1.5 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling futures-util v0.3.30 [INFO] [stderr] Compiling dtoa v1.0.9 [INFO] [stderr] Compiling percent-encoding v2.3.1 [INFO] [stderr] Compiling openssl-probe v0.1.5 [INFO] [stderr] Compiling utf-8 v0.7.6 [INFO] [stderr] Compiling version_check v0.9.4 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling try-lock v0.2.5 [INFO] [stderr] Compiling tendril v0.4.3 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling dtoa-short v0.3.4 [INFO] [stderr] Compiling futures-channel v0.3.30 [INFO] [stderr] Compiling http-body v0.4.6 [INFO] [stderr] Compiling getrandom v0.2.12 [INFO] [stderr] Compiling syn v2.0.52 [INFO] [stderr] Compiling num_cpus v1.16.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.1 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling socket2 v0.5.6 [INFO] [stderr] Compiling indexmap v2.2.5 [INFO] [stderr] Compiling ahash v0.8.10 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling want v0.3.1 [INFO] [stderr] Compiling openssl-sys v0.9.101 [INFO] [stderr] Compiling unicode-bidi v0.3.15 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling unicode-normalization v0.1.23 [INFO] [stderr] Compiling tower-service v0.3.2 [INFO] [stderr] Compiling httpdate v1.0.3 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling ryu v1.0.17 [INFO] [stderr] Compiling byteorder v1.5.0 [INFO] [stderr] Compiling idna v0.5.0 [INFO] [stderr] Compiling servo_arc v0.3.0 [INFO] [stderr] Compiling zerocopy v0.7.32 [INFO] [stderr] Compiling base64 v0.21.7 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling fxhash v0.2.1 [INFO] [stderr] Compiling thiserror v1.0.57 [INFO] [stderr] Compiling encoding_rs v0.8.33 [INFO] [stderr] Compiling ipnet v2.9.0 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling mime v0.3.17 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling sync_wrapper v0.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rustls-pemfile v1.0.4 [INFO] [stderr] Compiling url v2.5.0 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling phf_generator v0.11.2 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling selectors v0.25.0 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling tokio-macros v2.2.0 [INFO] [stderr] Compiling openssl-macros v0.1.1 [INFO] [stderr] Compiling phf_macros v0.11.2 [INFO] [stderr] Compiling cssparser-macros v0.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.57 [INFO] [stderr] Compiling tokio v1.36.0 [INFO] [stderr] Compiling phf v0.11.2 [INFO] [stderr] Compiling cssparser v0.31.2 [INFO] [stderr] Compiling tokio-util v0.7.10 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling h2 v0.3.24 [INFO] [stderr] Compiling scraper v0.19.0 [INFO] [stderr] Compiling hyper v0.14.28 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling reqwest v0.11.24 [INFO] [stderr] Compiling author-background v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/twitter_query_builder/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Url` and `form_urlencoded::parse` [INFO] [stdout] --> src/twitter_query_builder/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use url::{form_urlencoded::parse, Url}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::shared::domain_handler::get_web_domain` [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::shared::domain_handler::get_web_domain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `InvalidUrl` is never constructed [INFO] [stdout] --> src/error.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Error { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 5 | #[error("url is invalid")] [INFO] [stdout] 6 | InvalidUrl, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Error` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwitterURLQueries` is never constructed [INFO] [stdout] --> src/twitter_query_builder/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct TwitterURLQueries { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwitterURLQueriesBuilder` is never constructed [INFO] [stdout] --> src/twitter_query_builder/mod.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct TwitterURLQueriesBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TwitterURLQueriesBuilder` has a derived impl for the trait `Default`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `get_json_data`, and `build_compose_tweet_query` are never used [INFO] [stdout] --> src/twitter_query_builder/mod.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 30 | impl TwitterURLQueriesBuilder { [INFO] [stdout] | ----------------------------- associated items in this implementation [INFO] [stdout] 31 | fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn get_json_data(&mut self) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | fn build_compose_tweet_query( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TweetUrlData` is never constructed [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TweetUrlData { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TweetUrlData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tweet_id` and `linked_article_url` are never read [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct TweetUrlDataBuilder { [INFO] [stdout] | ------------------- fields in this struct [INFO] [stdout] 12 | pub tweet_id: Option, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 13 | pub linked_article_url: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TweetUrlDataBuilder` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `tweet_id`, `linked_article_url`, and `build` are never used [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:17:12 [INFO] [stdout] | [INFO] [stdout] 16 | impl TweetUrlDataBuilder { [INFO] [stdout] | ------------------------ associated items in this implementation [INFO] [stdout] 17 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn tweet_id(&mut self, tweet_id: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 26 | pub fn linked_article_url(&mut self, linked_article_url: impl Into) -> &mut Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn build(&self) -> Result { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_web_domain` is never used [INFO] [stdout] --> src/utils/shared/domain_handler.rs:3:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn get_web_domain(url: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 47.77s [INFO] running `Command { std: "docker" "inspect" "96d9fcf42e319bf4a084d2833e4a154d0e4b5f433f2c144783dd0c6eb26e74b1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96d9fcf42e319bf4a084d2833e4a154d0e4b5f433f2c144783dd0c6eb26e74b1", kill_on_drop: false }` [INFO] [stdout] 96d9fcf42e319bf4a084d2833e4a154d0e4b5f433f2c144783dd0c6eb26e74b1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08c059224bc72eb3039e9d9abfb2d9b7e7fa249d2ab1254b717c43a00ffdfd32 [INFO] running `Command { std: "docker" "start" "-a" "08c059224bc72eb3039e9d9abfb2d9b7e7fa249d2ab1254b717c43a00ffdfd32", kill_on_drop: false }` [INFO] [stderr] Compiling author-background v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `serde_json::Value` [INFO] [stdout] --> src/twitter_query_builder/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use serde_json::Value; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Url` and `form_urlencoded::parse` [INFO] [stdout] --> src/twitter_query_builder/mod.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | use url::{form_urlencoded::parse, Url}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::utils::shared::domain_handler::get_web_domain` [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::utils::shared::domain_handler::get_web_domain; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `TwitterURLQueries` is never constructed [INFO] [stdout] --> src/twitter_query_builder/mod.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct TwitterURLQueries { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `tweet_id` and `linked_article_url` are never read [INFO] [stdout] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct TweetUrlData { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 6 | pub tweet_id: i32, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 7 | pub linked_article_url: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TweetUrlData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.48s [INFO] running `Command { std: "docker" "inspect" "08c059224bc72eb3039e9d9abfb2d9b7e7fa249d2ab1254b717c43a00ffdfd32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08c059224bc72eb3039e9d9abfb2d9b7e7fa249d2ab1254b717c43a00ffdfd32", kill_on_drop: false }` [INFO] [stdout] 08c059224bc72eb3039e9d9abfb2d9b7e7fa249d2ab1254b717c43a00ffdfd32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 536da67990c62a021fb868532fff20d3544b88a3bb9aff0331c9c09d9862d00c [INFO] running `Command { std: "docker" "start" "-a" "536da67990c62a021fb868532fff20d3544b88a3bb9aff0331c9c09d9862d00c", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `serde_json::Value` [INFO] [stderr] --> src/twitter_query_builder/mod.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | use serde_json::Value; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Url` and `form_urlencoded::parse` [INFO] [stderr] --> src/twitter_query_builder/mod.rs:7:11 [INFO] [stderr] | [INFO] [stderr] 7 | use url::{form_urlencoded::parse, Url}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ ^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `crate::utils::shared::domain_handler::get_web_domain` [INFO] [stderr] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use crate::utils::shared::domain_handler::get_web_domain; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `TwitterURLQueries` is never constructed [INFO] [stderr] --> src/twitter_query_builder/mod.rs:9:8 [INFO] [stderr] | [INFO] [stderr] 9 | struct TwitterURLQueries { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `tweet_id` and `linked_article_url` are never read [INFO] [stderr] --> src/extract_info_from_tweet/tweet_url_data_builder.rs:6:9 [INFO] [stderr] | [INFO] [stderr] 5 | pub struct TweetUrlData { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 6 | pub tweet_id: i32, [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] 7 | pub linked_article_url: Option, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `TweetUrlData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: `author-background` (bin "author-background" test) generated 5 warnings (run `cargo fix --bin "author-background" --tests` to apply 3 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.19s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/author_background-463cc582bbd9473f) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test build_tweet::build_tweet::tests::test_build_tweet ... ok [INFO] [stdout] test extract_info_from_tweet::tweet_url_data_builder::tests::test_builder_constructor ... ok [INFO] [stdout] test prepare_tweet_data::get_organisation::tests::test_get_org_name ... ok [INFO] [stdout] test utils::shared::domain_handler::tests::test_get_web_domain_invalid_url ... ok [INFO] [stdout] test utils::shared::domain_handler::tests::test_get_web_domain_valid_url ... ok [INFO] [stdout] test twitter_query_builder::tests::test_get_json_data ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- twitter_query_builder::tests::test_get_json_data stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'twitter_query_builder::tests::test_get_json_data' panicked at src/utils/read_from_data_dir.rs:8:44: [INFO] [stdout] Failed to read file: Os { code: 2, kind: NotFound, message: "No such file or directory" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5fd0c2b58852 - std::backtrace_rs::backtrace::libunwind::trace::h8d95625898284e7d [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x5fd0c2b58852 - std::backtrace_rs::backtrace::trace_unsynchronized::h9eafd5c61303e492 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x5fd0c2b58852 - std::sys::backtrace::_print_fmt::hec2578e807cc4a3f [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5fd0c2b58852 - ::fmt::hd8ebefbbcb1fe23a [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5fd0c2b809c3 - core::fmt::rt::Argument::fmt::h09f3c4b7b5ff5386 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/fmt/rt.rs:185:76 [INFO] [stdout] 5: 0x5fd0c2b809c3 - core::fmt::write::hef9d041e1d5d9592 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/fmt/mod.rs:1449:21 [INFO] [stdout] 6: 0x5fd0c2b555e3 - std::io::Write::write_fmt::h7cfb9383e0a29362 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/io/mod.rs:1890:15 [INFO] [stdout] 7: 0x5fd0c2b586a2 - std::sys::backtrace::BacktraceLock::print::h263d323f217ce3a7 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x5fd0c2b59cfa - std::panicking::default_hook::{{closure}}::h25050253f7dc0d3e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:298:22 [INFO] [stdout] 9: 0x5fd0c2b59ae9 - std::panicking::default_hook::hf3291a4c87ea2887 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:322:9 [INFO] [stdout] 10: 0x5fd0c2abbf87 - as core::ops::function::Fn>::call::h51204ed24e282361 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 11: 0x5fd0c2abbf87 - test::test_main::{{closure}}::h3588678a150ab7c4 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:136:21 [INFO] [stdout] 12: 0x5fd0c2b5a7e3 - as core::ops::function::Fn>::call::h95d63edfac47e230 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1984:9 [INFO] [stdout] 13: 0x5fd0c2b5a7e3 - std::panicking::rust_panic_with_hook::h3550dbeaa1041124 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:839:13 [INFO] [stdout] 14: 0x5fd0c2b5a49a - std::panicking::begin_panic_handler::{{closure}}::hde0dd646a9e2b5b7 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:704:13 [INFO] [stdout] 15: 0x5fd0c2b58d49 - std::sys::backtrace::__rust_end_short_backtrace::haeb22ba48b4d728e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 16: 0x5fd0c2b5a12d - rust_begin_unwind [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:695:5 [INFO] [stdout] 17: 0x5fd0c2b7e8a0 - core::panicking::panic_fmt::hca923aa694825dc3 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panicking.rs:75:14 [INFO] [stdout] 18: 0x5fd0c2b7ed16 - core::result::unwrap_failed::h1fd41ecb05679f50 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/result.rs:1704:5 [INFO] [stdout] 19: 0x5fd0c2a778cc - core::result::Result::expect::h590e7b320ad3637a [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/result.rs:1061:23 [INFO] [stdout] 20: 0x5fd0c2a7a839 - author_background::utils::read_from_data_dir::read_data::h1f9f1181cb2317cd [INFO] [stdout] at /opt/rustwide/workdir/src/utils/read_from_data_dir.rs:8:19 [INFO] [stdout] 21: 0x5fd0c2a701f7 - author_background::twitter_query_builder::TwitterURLQueriesBuilder::get_json_data::hfb47cb0a25d6b942 [INFO] [stdout] at /opt/rustwide/workdir/src/twitter_query_builder/mod.rs:36:26 [INFO] [stdout] 22: 0x5fd0c2a7b4a0 - author_background::twitter_query_builder::tests::test_get_json_data::h8a3794b0df02bcbc [INFO] [stdout] at /opt/rustwide/workdir/src/twitter_query_builder/mod.rs:80:21 [INFO] [stdout] 23: 0x5fd0c2a7b467 - author_background::twitter_query_builder::tests::test_get_json_data::{{closure}}::h65894a7711e7cc20 [INFO] [stdout] at /opt/rustwide/workdir/src/twitter_query_builder/mod.rs:78:28 [INFO] [stdout] 24: 0x5fd0c2a6be96 - core::ops::function::FnOnce::call_once::h3c8f32f49d712bf7 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x5fd0c2ac186b - core::ops::function::FnOnce::call_once::hbd335dbb4bb5fce4 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 26: 0x5fd0c2ac186b - test::__rust_begin_short_backtrace::h04cc5e3b375a80f9 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:638:18 [INFO] [stdout] 27: 0x5fd0c2ac0925 - test::run_test_in_process::{{closure}}::h820e05c00a84ca94 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:661:60 [INFO] [stdout] 28: 0x5fd0c2ac0925 - as core::ops::function::FnOnce<()>>::call_once::h5d54c80bc199f62c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 29: 0x5fd0c2ac0925 - std::panicking::try::do_call::h832d61a9fc2b6e3e [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:587:40 [INFO] [stdout] 30: 0x5fd0c2ac0925 - std::panicking::try::h9a404c5f3a090501 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:550:19 [INFO] [stdout] 31: 0x5fd0c2ac0925 - std::panic::catch_unwind::hf5157d4c366d9053 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panic.rs:359:14 [INFO] [stdout] 32: 0x5fd0c2ac0925 - test::run_test_in_process::h671deca6957ee157 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:661:27 [INFO] [stdout] 33: 0x5fd0c2ac0925 - test::run_test::{{closure}}::h8a18e214254d2663 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:582:43 [INFO] [stdout] 34: 0x5fd0c2a83914 - test::run_test::{{closure}}::ha2abac7cc0a13c10 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/test/src/lib.rs:612:41 [INFO] [stdout] 35: 0x5fd0c2a83914 - std::sys::backtrace::__rust_begin_short_backtrace::h013f8b8ca29e5f67 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 36: 0x5fd0c2a8744a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc0336636a8c55b05 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 37: 0x5fd0c2a8744a - as core::ops::function::FnOnce<()>>::call_once::h256d9472a72a8c66 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 38: 0x5fd0c2a8744a - std::panicking::try::do_call::hf49ea3ffcc3bd1db [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:587:40 [INFO] [stdout] 39: 0x5fd0c2a8744a - std::panicking::try::h2a067a3336161e1c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panicking.rs:550:19 [INFO] [stdout] 40: 0x5fd0c2a8744a - std::panic::catch_unwind::h931ea2a9df59b7fa [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/panic.rs:359:14 [INFO] [stdout] 41: 0x5fd0c2a8744a - std::thread::Builder::spawn_unchecked_::{{closure}}::haf08f1439431615c [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 42: 0x5fd0c2a8744a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd1dc5dd1edff0233 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 43: 0x5fd0c2b5de0b - as core::ops::function::FnOnce>::call_once::hf6ad22f40418d409 [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 44: 0x5fd0c2b5de0b - as core::ops::function::FnOnce>::call_once::h734c3e370b18da4b [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1970:9 [INFO] [stdout] 45: 0x5fd0c2b5de0b - std::sys::pal::unix::thread::Thread::new::thread_start::hfbde3a90511cd82d [INFO] [stdout] at /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/std/src/sys/pal/unix/thread.rs:109:17 [INFO] [stdout] 46: 0x7712695cbac3 - [INFO] [stdout] 47: 0x77126965ca04 - clone [INFO] [stdout] 48: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] twitter_query_builder::tests::test_get_json_data [INFO] [stdout] [INFO] [stdout] test result: FAILED. 5 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.08s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin author-background` [INFO] running `Command { std: "docker" "inspect" "536da67990c62a021fb868532fff20d3544b88a3bb9aff0331c9c09d9862d00c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "536da67990c62a021fb868532fff20d3544b88a3bb9aff0331c9c09d9862d00c", kill_on_drop: false }` [INFO] [stdout] 536da67990c62a021fb868532fff20d3544b88a3bb9aff0331c9c09d9862d00c