[INFO] cloning repository https://github.com/ecoates-bc/news_topic_modeling [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ecoates-bc/news_topic_modeling" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fecoates-bc%2Fnews_topic_modeling", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fecoates-bc%2Fnews_topic_modeling'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8318d8644469cc18914027aa7d69963349642a46 [INFO] testing ecoates-bc/news_topic_modeling/8318d8644469cc18914027aa7d69963349642a46 against 1.82.0 for beta-1.83-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fecoates-bc%2Fnews_topic_modeling" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ecoates-bc/news_topic_modeling on toolchain 1.82.0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.82.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ecoates-bc/news_topic_modeling [INFO] finished tweaking git repo https://github.com/ecoates-bc/news_topic_modeling [INFO] tweaked toml for git repo https://github.com/ecoates-bc/news_topic_modeling written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ecoates-bc/news_topic_modeling 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" "+1.82.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded macro_rules_attribute v0.1.3 [INFO] [stderr] Downloaded nlprule v0.6.4 [INFO] [stderr] Downloaded cached-path v0.5.3 [INFO] [stderr] Downloaded tokenizers v0.13.2 [INFO] [stderr] Downloaded spm_precompiled v0.1.4 [INFO] [stderr] Downloaded srx v0.1.3 [INFO] [stderr] Downloaded zip-extensions v0.6.1 [INFO] [stderr] Downloaded serde v1.0.154 [INFO] [stderr] Downloaded enum_dispatch v0.3.11 [INFO] [stderr] Downloaded selectors v0.24.0 [INFO] [stderr] Downloaded cssparser v0.29.6 [INFO] [stderr] Downloaded serde_derive v1.0.154 [INFO] [stderr] Downloaded unicode-normalization-alignments v0.1.12 [INFO] [stderr] Downloaded macro_rules_attribute-proc_macro v0.1.3 [INFO] [stderr] Downloaded rayon-cond v0.1.0 [INFO] [stderr] Downloaded serde_regex v1.1.0 [INFO] [stderr] Downloaded servo_arc v0.2.0 [INFO] [stderr] Downloaded scraper v0.15.0 [INFO] [stderr] Downloaded esaxx-rs v0.1.8 [INFO] [stderr] Downloaded syn v2.0.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 427df78268b65f71ee33774c7242ec7d9d27dd24ec4eaf03da36703be08e5cee [INFO] running `Command { std: "docker" "start" "-a" "427df78268b65f71ee33774c7242ec7d9d27dd24ec4eaf03da36703be08e5cee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "427df78268b65f71ee33774c7242ec7d9d27dd24ec4eaf03da36703be08e5cee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "427df78268b65f71ee33774c7242ec7d9d27dd24ec4eaf03da36703be08e5cee", kill_on_drop: false }` [INFO] [stdout] 427df78268b65f71ee33774c7242ec7d9d27dd24ec4eaf03da36703be08e5cee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3305f1a338620895fdd9b340ddafa7c77a0b9e931e747ff4b0c00600ccb18c2c [INFO] running `Command { std: "docker" "start" "-a" "3305f1a338620895fdd9b340ddafa7c77a0b9e931e747ff4b0c00600ccb18c2c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.54 [INFO] [stderr] Compiling libc v0.2.140 [INFO] [stderr] Compiling cc v1.0.79 [INFO] [stderr] Compiling pkg-config v0.3.26 [INFO] [stderr] Compiling serde_derive v1.0.154 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling serde v1.0.154 [INFO] [stderr] Compiling once_cell v1.17.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling itoa v1.0.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling futures-core v0.3.26 [INFO] [stderr] Compiling bytes v1.4.0 [INFO] [stderr] Compiling tokio v1.26.0 [INFO] [stderr] Compiling ucd-trie v0.1.5 [INFO] [stderr] Compiling crossbeam-utils v0.8.15 [INFO] [stderr] Compiling smallvec v1.10.0 [INFO] [stderr] Compiling miniz_oxide v0.6.2 [INFO] [stderr] Compiling memoffset v0.8.0 [INFO] [stderr] Compiling slab v0.4.8 [INFO] [stderr] Compiling ryu v1.0.13 [INFO] [stderr] Compiling proc-macro-hack v0.5.20+deprecated [INFO] [stderr] Compiling futures-task v0.3.26 [INFO] [stderr] Compiling tracing-core v0.1.30 [INFO] [stderr] Compiling indexmap v1.9.2 [INFO] [stderr] Compiling crossbeam-epoch v0.9.14 [INFO] [stderr] Compiling openssl v0.10.45 [INFO] [stderr] Compiling serde_json v1.0.94 [INFO] [stderr] Compiling futures-util v0.3.26 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling flate2 v1.0.25 [INFO] [stderr] Compiling http v0.2.9 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling hashbrown v0.12.3 [INFO] [stderr] Compiling futures-io v0.3.26 [INFO] [stderr] Compiling quote v1.0.26 [INFO] [stderr] Compiling tracing v0.1.37 [INFO] [stderr] Compiling native-tls v0.2.11 [INFO] [stderr] Compiling futures-sink v0.3.26 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling syn v2.0.12 [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling tinyvec_macros v0.1.1 [INFO] [stderr] Compiling httparse v1.8.0 [INFO] [stderr] Compiling futures-channel v0.3.26 [INFO] [stderr] Compiling tinyvec v1.6.0 [INFO] [stderr] Compiling parking_lot_core v0.9.7 [INFO] [stderr] Compiling openssl-sys v0.9.80 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling bzip2-sys v0.1.11+1.0.8 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Compiling cmake v0.1.50 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling simd-adler32 v0.3.5 [INFO] [stderr] Compiling try-lock v0.2.4 [INFO] [stderr] Compiling rayon-core v1.11.0 [INFO] [stderr] Compiling num_cpus v1.15.0 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling mio v0.8.6 [INFO] [stderr] Compiling socket2 v0.4.9 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling strsim v0.9.3 [INFO] [stderr] Compiling percent-encoding v2.2.0 [INFO] [stderr] Compiling io-lifetimes v1.0.6 [INFO] [stderr] Compiling unicode-normalization v0.1.22 [INFO] [stderr] Compiling form_urlencoded v1.1.0 [INFO] [stderr] Compiling freetype-sys v0.13.1 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling phf_generator v0.10.0 [INFO] [stderr] Compiling http-body v0.4.5 [INFO] [stderr] Compiling phf_codegen v0.10.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.2 [INFO] [stderr] Compiling crossbeam-deque v0.8.3 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling onig_sys v69.8.1 [INFO] [stderr] Compiling crossbeam-channel v0.5.7 [INFO] [stderr] Compiling yeslogic-fontconfig-sys v3.2.0 [INFO] [stderr] Compiling unicode-bidi v0.3.11 [INFO] [stderr] Compiling rustix v0.36.9 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling bzip2 v0.4.4 [INFO] [stderr] Compiling markup5ever v0.11.0 [INFO] [stderr] Compiling idna v0.3.0 [INFO] [stderr] Compiling miniz_oxide v0.7.1 [INFO] [stderr] Compiling fdeflate v0.3.0 [INFO] [stderr] Compiling console v0.15.5 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling linux-raw-sys v0.1.4 [INFO] [stderr] Compiling dtoa-short v0.3.3 [INFO] [stderr] Compiling png v0.17.8 [INFO] [stderr] Compiling url v2.3.1 [INFO] [stderr] Compiling thiserror-impl v1.0.40 [INFO] [stderr] Compiling dlib v0.5.0 [INFO] [stderr] Compiling selectors v0.24.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling filetime v0.2.20 [INFO] [stderr] Compiling xattr v0.2.3 [INFO] [stderr] Compiling esaxx-rs v0.1.8 [INFO] [stderr] Compiling encoding_rs v0.8.32 [INFO] [stderr] Compiling const-cstr v0.3.0 [INFO] [stderr] Compiling jpeg-decoder v0.3.0 [INFO] [stderr] Compiling nodrop v0.1.14 [INFO] [stderr] Compiling stable_deref_trait v1.2.0 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling fs-err v2.9.0 [INFO] [stderr] Compiling weezl v0.1.7 [INFO] [stderr] Compiling font-kit v0.11.0 [INFO] [stderr] Compiling derive_builder v0.9.0 [INFO] [stderr] Compiling plotters-backend v0.3.4 [INFO] [stderr] Compiling number_prefix v0.4.0 [INFO] [stderr] Compiling bytemuck v1.13.1 [INFO] [stderr] Compiling fst v0.4.7 [INFO] [stderr] Compiling ipnet v2.7.1 [INFO] [stderr] Compiling matches v0.1.10 [INFO] [stderr] Compiling base64 v0.21.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling image v0.24.6 [INFO] [stderr] Compiling indicatif v0.16.2 [INFO] [stderr] Compiling gif v0.11.4 [INFO] [stderr] Compiling walkdir v2.3.3 [INFO] [stderr] Compiling darling_core v0.10.2 [INFO] [stderr] Compiling thiserror v1.0.40 [INFO] [stderr] Compiling pest v2.5.7 [INFO] [stderr] Compiling zip v0.5.13 [INFO] [stderr] Compiling servo_arc v0.2.0 [INFO] [stderr] Compiling tokio-util v0.7.7 [INFO] [stderr] Compiling zip-extensions v0.6.1 [INFO] [stderr] Compiling tempfile v3.4.0 [INFO] [stderr] Compiling tar v0.4.38 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling freetype v0.7.0 [INFO] [stderr] Compiling h2 v0.3.16 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling dirs-sys v0.3.7 [INFO] [stderr] Compiling fs2 v0.4.3 [INFO] [stderr] Compiling phf v0.8.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling unicode-segmentation v1.10.1 [INFO] [stderr] Compiling base64 v0.13.1 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling iana-time-zone v0.1.53 [INFO] [stderr] Compiling anyhow v1.0.69 [INFO] [stderr] Compiling number_prefix v0.3.0 [INFO] [stderr] Compiling macro_rules_attribute-proc_macro v0.1.3 [INFO] [stderr] Compiling float-ord v0.2.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling clap v2.34.0 [INFO] [stderr] Compiling indicatif v0.15.0 [INFO] [stderr] Compiling chrono v0.4.23 [INFO] [stderr] Compiling onig v6.4.0 [INFO] [stderr] Compiling plotters-bitmap v0.3.2 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling rustc_version v0.3.3 [INFO] [stderr] Compiling dirs v3.0.2 [INFO] [stderr] Compiling openssl-macros v0.1.0 [INFO] [stderr] Compiling phf_macros v0.10.0 [INFO] [stderr] Compiling cssparser v0.29.6 [INFO] [stderr] Compiling darling_macro v0.10.2 [INFO] [stderr] Compiling cssparser-macros v0.6.0 [INFO] [stderr] Compiling html5ever v0.26.0 [INFO] [stderr] Compiling nlprule v0.6.4 [INFO] [stderr] Compiling pathfinder_simd v0.5.1 [INFO] [stderr] Compiling derive_more v0.99.17 [INFO] [stderr] Compiling macro_rules_attribute v0.1.3 [INFO] [stderr] Compiling derivative v2.2.0 [INFO] [stderr] Compiling enum_dispatch v0.3.11 [INFO] [stderr] Compiling darling v0.10.2 [INFO] [stderr] Compiling derive_builder_core v0.9.0 [INFO] [stderr] Compiling pathfinder_geometry v0.5.1 [INFO] [stderr] Compiling plotters-svg v0.3.3 [INFO] [stderr] Compiling phf v0.10.1 [INFO] [stderr] Compiling unicode-normalization-alignments v0.1.12 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling ego-tree v0.6.2 [INFO] [stderr] Compiling unicode_categories v0.1.1 [INFO] [stderr] Compiling ttf-parser v0.15.2 [INFO] [stderr] Compiling hyper v0.14.25 [INFO] [stderr] Compiling plotters v0.3.4 [INFO] [stderr] Compiling tokio-native-tls v0.3.1 [INFO] [stderr] Compiling hyper-tls v0.5.0 [INFO] [stderr] Compiling either v1.8.1 [INFO] [stderr] Compiling string_cache v0.8.7 [INFO] [stderr] Compiling serde_urlencoded v0.7.1 [INFO] [stderr] Compiling serde_regex v1.1.0 [INFO] [stderr] Compiling half v1.8.2 [INFO] [stderr] Compiling bimap v0.6.3 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling spm_precompiled v0.1.4 [INFO] [stderr] Compiling srx v0.1.3 [INFO] [stderr] Compiling rayon v1.7.0 [INFO] [stderr] Compiling itertools v0.8.2 [INFO] [stderr] Compiling itertools v0.10.5 [INFO] [stderr] Compiling itertools v0.9.0 [INFO] [stderr] Compiling reqwest v0.11.14 [INFO] [stderr] Compiling cached-path v0.5.3 [INFO] [stderr] Compiling scraper v0.15.0 [INFO] [stderr] Compiling rayon-cond v0.1.0 [INFO] [stderr] Compiling tokenizers v0.13.2 [INFO] [stderr] Compiling topic_modelling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokenize_headline_text` [INFO] [stdout] --> src/main.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::preprocess::{load_tokenizer, tokenize_headline_text}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/tf_idf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_article_text` [INFO] [stdout] --> src/tf_idf.rs:7:72 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::preprocess::{tokenize_headline_text, tokenize_article_text, read_article_text}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pub_date` is never read [INFO] [stdout] --> src/scrape_data.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut pub_date = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tf_idf.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | let mut tf_idf_set: HashSet<_> = HashSet::from_iter(res.iter()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deindexer` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let deindexer = preprocess::create_word_deindexer(&indexer); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deindexer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `date` and `site` are never read [INFO] [stdout] --> src/prepare_dataset.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ArticleEntry { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub date: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub path: PathBuf, [INFO] [stdout] 11 | pub site: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArticleEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `test` is never read [INFO] [stdout] --> src/prepare_dataset.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct RawDataset { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | pub train: Vec, [INFO] [stdout] 17 | pub test: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawDataset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index` and `encode_sequence` are never used [INFO] [stdout] --> src/preprocess.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Indexer { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_index(&self, token: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn encode_sequence(&self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_map` is never read [INFO] [stdout] --> src/preprocess.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Deindexer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 36 | token_map: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_token` and `decode_sequence` are never used [INFO] [stdout] --> src/preprocess.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Deindexer { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_token(&self, index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn decode_sequence(&self, idx: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Article` is never constructed [INFO] [stdout] --> src/scrape_data.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Article { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_from_timestamp` is never used [INFO] [stdout] --> src/scrape_data.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_date_from_timestamp(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_from_div` is never used [INFO] [stdout] --> src/scrape_data.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_date_from_div(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_article_from_span` is never used [INFO] [stdout] --> src/scrape_data.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn get_article_from_span(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_story_div` is never used [INFO] [stdout] --> src/scrape_data.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn get_story_div(doc: &Html, story_attr: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_article_elem` is never used [INFO] [stdout] --> src/scrape_data.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn get_article_elem(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_article` is never used [INFO] [stdout] --> src/scrape_data.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn parse_article(href: &str, site: &NewsSite) -> Result
{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_article` is never used [INFO] [stdout] --> src/scrape_data.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn save_article(article: &Article, path_root: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_news_links` is never used [INFO] [stdout] --> src/scrape_data.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn get_news_links(href: &str, a_attr: &str, link_prefix: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewsSite` is never constructed [INFO] [stdout] --> src/scrape_data.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | struct NewsSite { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_website` is never used [INFO] [stdout] --> src/scrape_data.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn scrape_website(site: NewsSite) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_cbc` is never used [INFO] [stdout] --> src/scrape_data.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn scrape_cbc() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_np` is never used [INFO] [stdout] --> src/scrape_data.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn scrape_np() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_star` is never used [INFO] [stdout] --> src/scrape_data.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn scrape_star() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_headline_frequencies` is never used [INFO] [stdout] --> src/tf_idf.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_token_headline_frequencies( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_into_headline_tfidf` is never used [INFO] [stdout] --> src/tf_idf.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn entry_into_headline_tfidf(counter: &DocumentFrequencyCounter, tokenizer: &Tokenizer, entry: &ArticleEntry) -> Result src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | dbg!(tf_idf::get_tfidf_distribution(&token_counter, &tokenizer, &raw_data.train)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/scrape_data.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | file.write_all(par.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = file.write_all(par.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/scrape_data.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | file.write_all(b"\n\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 174 | let _ = file.write_all(b"\n\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 23.52s [INFO] running `Command { std: "docker" "inspect" "3305f1a338620895fdd9b340ddafa7c77a0b9e931e747ff4b0c00600ccb18c2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3305f1a338620895fdd9b340ddafa7c77a0b9e931e747ff4b0c00600ccb18c2c", kill_on_drop: false }` [INFO] [stdout] 3305f1a338620895fdd9b340ddafa7c77a0b9e931e747ff4b0c00600ccb18c2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 780e0fc02d1e1fbf6b99304b421632027f62e2ac00f6f4da9364fb234fff43a9 [INFO] running `Command { std: "docker" "start" "-a" "780e0fc02d1e1fbf6b99304b421632027f62e2ac00f6f4da9364fb234fff43a9", kill_on_drop: false }` [INFO] [stderr] Compiling topic_modelling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `tokenize_headline_text` [INFO] [stdout] --> src/main.rs:3:41 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::preprocess::{load_tokenizer, tokenize_headline_text}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> src/tf_idf.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `read_article_text` [INFO] [stdout] --> src/tf_idf.rs:7:72 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::preprocess::{tokenize_headline_text, tokenize_article_text, read_article_text}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `pub_date` is never read [INFO] [stdout] --> src/scrape_data.rs:111:13 [INFO] [stdout] | [INFO] [stdout] 111 | let mut pub_date = String::new(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/tf_idf.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | let mut tf_idf_set: HashSet<_> = HashSet::from_iter(res.iter()); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `deindexer` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let deindexer = preprocess::create_word_deindexer(&indexer); [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deindexer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `date` and `site` are never read [INFO] [stdout] --> src/prepare_dataset.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct ArticleEntry { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 9 | pub date: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 10 | pub path: PathBuf, [INFO] [stdout] 11 | pub site: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ArticleEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `test` is never read [INFO] [stdout] --> src/prepare_dataset.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct RawDataset { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 16 | pub train: Vec, [INFO] [stdout] 17 | pub test: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RawDataset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_index` and `encode_sequence` are never used [INFO] [stdout] --> src/preprocess.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Indexer { [INFO] [stdout] | ------------ methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn get_index(&self, token: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn encode_sequence(&self, tokens: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token_map` is never read [INFO] [stdout] --> src/preprocess.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct Deindexer { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 36 | token_map: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_token` and `decode_sequence` are never used [INFO] [stdout] --> src/preprocess.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Deindexer { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn get_token(&self, index: usize) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn decode_sequence(&self, idx: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Article` is never constructed [INFO] [stdout] --> src/scrape_data.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Article { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_from_timestamp` is never used [INFO] [stdout] --> src/scrape_data.rs:19:4 [INFO] [stdout] | [INFO] [stdout] 19 | fn get_date_from_timestamp(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_date_from_div` is never used [INFO] [stdout] --> src/scrape_data.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn get_date_from_div(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_article_from_span` is never used [INFO] [stdout] --> src/scrape_data.rs:55:4 [INFO] [stdout] | [INFO] [stdout] 55 | fn get_article_from_span(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_story_div` is never used [INFO] [stdout] --> src/scrape_data.rs:71:4 [INFO] [stdout] | [INFO] [stdout] 71 | fn get_story_div(doc: &Html, story_attr: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_article_elem` is never used [INFO] [stdout] --> src/scrape_data.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn get_article_elem(doc: &Html) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_article` is never used [INFO] [stdout] --> src/scrape_data.rs:92:4 [INFO] [stdout] | [INFO] [stdout] 92 | fn parse_article(href: &str, site: &NewsSite) -> Result
{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `save_article` is never used [INFO] [stdout] --> src/scrape_data.rs:155:4 [INFO] [stdout] | [INFO] [stdout] 155 | fn save_article(article: &Article, path_root: &Path) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_news_links` is never used [INFO] [stdout] --> src/scrape_data.rs:179:4 [INFO] [stdout] | [INFO] [stdout] 179 | fn get_news_links(href: &str, a_attr: &str, link_prefix: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `NewsSite` is never constructed [INFO] [stdout] --> src/scrape_data.rs:203:8 [INFO] [stdout] | [INFO] [stdout] 203 | struct NewsSite { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_website` is never used [INFO] [stdout] --> src/scrape_data.rs:212:4 [INFO] [stdout] | [INFO] [stdout] 212 | fn scrape_website(site: NewsSite) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_cbc` is never used [INFO] [stdout] --> src/scrape_data.rs:231:8 [INFO] [stdout] | [INFO] [stdout] 231 | pub fn scrape_cbc() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_np` is never used [INFO] [stdout] --> src/scrape_data.rs:244:8 [INFO] [stdout] | [INFO] [stdout] 244 | pub fn scrape_np() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `scrape_star` is never used [INFO] [stdout] --> src/scrape_data.rs:257:8 [INFO] [stdout] | [INFO] [stdout] 257 | pub fn scrape_star() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_token_headline_frequencies` is never used [INFO] [stdout] --> src/tf_idf.rs:56:8 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn get_token_headline_frequencies( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `entry_into_headline_tfidf` is never used [INFO] [stdout] --> src/tf_idf.rs:115:8 [INFO] [stdout] | [INFO] [stdout] 115 | pub fn entry_into_headline_tfidf(counter: &DocumentFrequencyCounter, tokenizer: &Tokenizer, entry: &ArticleEntry) -> Result src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | dbg!(tf_idf::get_tfidf_distribution(&token_counter, &tokenizer, &raw_data.train)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/scrape_data.rs:173:13 [INFO] [stdout] | [INFO] [stdout] 173 | file.write_all(par.as_bytes()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 173 | let _ = file.write_all(par.as_bytes()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/scrape_data.rs:174:13 [INFO] [stdout] | [INFO] [stdout] 174 | file.write_all(b"\n\n"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 174 | let _ = file.write_all(b"\n\n"); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 30 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "780e0fc02d1e1fbf6b99304b421632027f62e2ac00f6f4da9364fb234fff43a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "780e0fc02d1e1fbf6b99304b421632027f62e2ac00f6f4da9364fb234fff43a9", kill_on_drop: false }` [INFO] [stdout] 780e0fc02d1e1fbf6b99304b421632027f62e2ac00f6f4da9364fb234fff43a9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+1.82.0" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e85c19a3fc2db1aee1d76fd06cdf12368df746cffe7fd19f496da2a5ec43aaf9 [INFO] running `Command { std: "docker" "start" "-a" "e85c19a3fc2db1aee1d76fd06cdf12368df746cffe7fd19f496da2a5ec43aaf9", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `tokenize_headline_text` [INFO] [stderr] --> src/main.rs:3:41 [INFO] [stderr] | [INFO] [stderr] 3 | use crate::preprocess::{load_tokenizer, tokenize_headline_text}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stderr] --> src/tf_idf.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::collections::hash_map::RandomState; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `read_article_text` [INFO] [stderr] --> src/tf_idf.rs:7:72 [INFO] [stderr] | [INFO] [stderr] 7 | use crate::preprocess::{tokenize_headline_text, tokenize_article_text, read_article_text}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: value assigned to `pub_date` is never read [INFO] [stderr] --> src/scrape_data.rs:111:13 [INFO] [stderr] | [INFO] [stderr] 111 | let mut pub_date = String::new(); [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = help: maybe it is overwritten before being read? [INFO] [stderr] = note: `#[warn(unused_assignments)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/tf_idf.rs:143:21 [INFO] [stderr] | [INFO] [stderr] 143 | let mut tf_idf_set: HashSet<_> = HashSet::from_iter(res.iter()); [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `deindexer` [INFO] [stderr] --> src/main.rs:19:9 [INFO] [stderr] | [INFO] [stderr] 19 | let deindexer = preprocess::create_word_deindexer(&indexer); [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_deindexer` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `date` and `site` are never read [INFO] [stderr] --> src/prepare_dataset.rs:9:9 [INFO] [stderr] | [INFO] [stderr] 8 | pub struct ArticleEntry { [INFO] [stderr] | ------------ fields in this struct [INFO] [stderr] 9 | pub date: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] 10 | pub path: PathBuf, [INFO] [stderr] 11 | pub site: String, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `ArticleEntry` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `test` is never read [INFO] [stderr] --> src/prepare_dataset.rs:17:9 [INFO] [stderr] | [INFO] [stderr] 15 | pub struct RawDataset { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 16 | pub train: Vec, [INFO] [stderr] 17 | pub test: Vec, [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `RawDataset` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: methods `get_index` and `encode_sequence` are never used [INFO] [stderr] --> src/preprocess.rs:22:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl Indexer { [INFO] [stderr] | ------------ methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 22 | pub fn get_index(&self, token: &String) -> usize { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 30 | pub fn encode_sequence(&self, tokens: &Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `token_map` is never read [INFO] [stderr] --> src/preprocess.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub struct Deindexer { [INFO] [stderr] | --------- field in this struct [INFO] [stderr] 36 | token_map: HashMap, [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `get_token` and `decode_sequence` are never used [INFO] [stderr] --> src/preprocess.rs:46:12 [INFO] [stderr] | [INFO] [stderr] 39 | impl Deindexer { [INFO] [stderr] | -------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 46 | pub fn get_token(&self, index: usize) -> String { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 54 | pub fn decode_sequence(&self, idx: &Vec) -> Vec { [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `Article` is never constructed [INFO] [stderr] --> src/scrape_data.rs:13:8 [INFO] [stderr] | [INFO] [stderr] 13 | struct Article { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_date_from_timestamp` is never used [INFO] [stderr] --> src/scrape_data.rs:19:4 [INFO] [stderr] | [INFO] [stderr] 19 | fn get_date_from_timestamp(doc: &Html) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_date_from_div` is never used [INFO] [stderr] --> src/scrape_data.rs:37:4 [INFO] [stderr] | [INFO] [stderr] 37 | fn get_date_from_div(doc: &Html) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_article_from_span` is never used [INFO] [stderr] --> src/scrape_data.rs:55:4 [INFO] [stderr] | [INFO] [stderr] 55 | fn get_article_from_span(doc: &Html) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_story_div` is never used [INFO] [stderr] --> src/scrape_data.rs:71:4 [INFO] [stderr] | [INFO] [stderr] 71 | fn get_story_div(doc: &Html, story_attr: String) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_article_elem` is never used [INFO] [stderr] --> src/scrape_data.rs:81:4 [INFO] [stderr] | [INFO] [stderr] 81 | fn get_article_elem(doc: &Html) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_article` is never used [INFO] [stderr] --> src/scrape_data.rs:92:4 [INFO] [stderr] | [INFO] [stderr] 92 | fn parse_article(href: &str, site: &NewsSite) -> Result
{ [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `save_article` is never used [INFO] [stderr] --> src/scrape_data.rs:155:4 [INFO] [stderr] | [INFO] [stderr] 155 | fn save_article(article: &Article, path_root: &Path) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_news_links` is never used [INFO] [stderr] --> src/scrape_data.rs:179:4 [INFO] [stderr] | [INFO] [stderr] 179 | fn get_news_links(href: &str, a_attr: &str, link_prefix: &str) -> Result> { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: struct `NewsSite` is never constructed [INFO] [stderr] --> src/scrape_data.rs:203:8 [INFO] [stderr] | [INFO] [stderr] 203 | struct NewsSite { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `scrape_website` is never used [INFO] [stderr] --> src/scrape_data.rs:212:4 [INFO] [stderr] | [INFO] [stderr] 212 | fn scrape_website(site: NewsSite) { [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `scrape_cbc` is never used [INFO] [stderr] --> src/scrape_data.rs:231:8 [INFO] [stderr] | [INFO] [stderr] 231 | pub fn scrape_cbc() { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `scrape_np` is never used [INFO] [stderr] --> src/scrape_data.rs:244:8 [INFO] [stderr] | [INFO] [stderr] 244 | pub fn scrape_np() { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `scrape_star` is never used [INFO] [stderr] --> src/scrape_data.rs:257:8 [INFO] [stderr] | [INFO] [stderr] 257 | pub fn scrape_star() { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `get_token_headline_frequencies` is never used [INFO] [stderr] --> src/tf_idf.rs:56:8 [INFO] [stderr] | [INFO] [stderr] 56 | pub fn get_token_headline_frequencies( [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `entry_into_headline_tfidf` is never used [INFO] [stderr] --> src/tf_idf.rs:115:8 [INFO] [stderr] | [INFO] [stderr] 115 | pub fn entry_into_headline_tfidf(counter: &DocumentFrequencyCounter, tokenizer: &Tokenizer, entry: &ArticleEntry) -> Result src/main.rs:24:5 [INFO] [stderr] | [INFO] [stderr] 24 | dbg!(tf_idf::get_tfidf_distribution(&token_counter, &tokenizer, &raw_data.train)); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] = note: this warning originates in the macro `dbg` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/scrape_data.rs:173:13 [INFO] [stderr] | [INFO] [stderr] 173 | file.write_all(par.as_bytes()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 173 | let _ = file.write_all(par.as_bytes()); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/scrape_data.rs:174:13 [INFO] [stderr] | [INFO] [stderr] 174 | file.write_all(b"\n\n"); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 174 | let _ = file.write_all(b"\n\n"); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `topic_modelling` (bin "topic_modelling" test) generated 30 warnings (run `cargo fix --bin "topic_modelling" --tests` to apply 4 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.17s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/topic_modelling-0dae78570df7529a) [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] running `Command { std: "docker" "inspect" "e85c19a3fc2db1aee1d76fd06cdf12368df746cffe7fd19f496da2a5ec43aaf9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e85c19a3fc2db1aee1d76fd06cdf12368df746cffe7fd19f496da2a5ec43aaf9", kill_on_drop: false }` [INFO] [stdout] e85c19a3fc2db1aee1d76fd06cdf12368df746cffe7fd19f496da2a5ec43aaf9