[INFO] fetching crate rsfile 0.1.2... [INFO] checking rsfile-0.1.2 against master#ceab6128fa48a616bfd3e3adf4bc80133b8ee223 for no-never-type-fallback [INFO] extracting crate rsfile 0.1.2 into /workspace/builds/worker-0-tc1/source [INFO] validating manifest of crates.io crate rsfile 0.1.2 on toolchain ceab6128fa48a616bfd3e3adf4bc80133b8ee223 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rsfile 0.1.2 [INFO] finished tweaking crates.io crate rsfile 0.1.2 [INFO] tweaked toml for crates.io crate rsfile 0.1.2 written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate crates.io crate rsfile 0.1.2 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" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded xml5ever v0.16.2 [INFO] [stderr] Downloaded webpage v1.4.0 [INFO] [stderr] Downloaded string_cache v0.8.2 [INFO] [stderr] Downloaded siphasher v0.3.9 [INFO] [stderr] Downloaded markup5ever_rcdom v0.1.0 [INFO] [stderr] Downloaded curl v0.4.42 [INFO] [stderr] Downloaded libc v0.2.116 [INFO] [stderr] Downloaded curl-sys v0.4.52+curl-7.81.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0d2554f194b219cda862ff720b721b8df89243712511efccbc3a8243795e2227 [INFO] running `Command { std: "docker" "start" "-a" "0d2554f194b219cda862ff720b721b8df89243712511efccbc3a8243795e2227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0d2554f194b219cda862ff720b721b8df89243712511efccbc3a8243795e2227", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d2554f194b219cda862ff720b721b8df89243712511efccbc3a8243795e2227", kill_on_drop: false }` [INFO] [stdout] 0d2554f194b219cda862ff720b721b8df89243712511efccbc3a8243795e2227 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+ceab6128fa48a616bfd3e3adf4bc80133b8ee223" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 04e5179147edfd699f0af202b7c7b8730d8446b7d05c20a2003eb5c5bdf1b5f3 [INFO] running `Command { std: "docker" "start" "-a" "04e5179147edfd699f0af202b7c7b8730d8446b7d05c20a2003eb5c5bdf1b5f3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.116 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Compiling curl-sys v0.4.52+curl-7.81.0 [INFO] [stderr] Checking futf v0.1.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling curl v0.4.42 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Checking tendril v0.4.2 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling markup5ever v0.10.1 [INFO] [stderr] Checking string_cache v0.8.2 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking xml5ever v0.16.2 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Checking markup5ever_rcdom v0.1.0 [INFO] [stderr] Checking webpage v1.4.0 [INFO] [stderr] Checking rsfile v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get_string_or_empty` [INFO] [stdout] --> src/web.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::web::{fetch_html,get_string_or_empty, read_html_file, read_html_string, show_dict}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - match(s){ [INFO] [stdout] 56 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - match(s){ [INFO] [stdout] 152 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> src/lib.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 30 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `BufRead` is already imported here [INFO] [stdout] ... [INFO] [stdout] 95 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - match(s){ [INFO] [stdout] 56 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - match(s){ [INFO] [stdout] 152 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> src/lib.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 30 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `BufRead` is already imported here [INFO] [stdout] ... [INFO] [stdout] 95 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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: `flag` [INFO] [stdout] --> src/web.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let flag=write_text("data/webpage.html",hh); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `html_str` [INFO] [stdout] --> src/web.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let html_str=match html_opt { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_html_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page1` [INFO] [stdout] --> src/web.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let page1=read_html_string(get_ref_string_str(html_opt)); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_page1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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: `value` [INFO] [stdout] --> src/lib.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/lib.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let len=model.keys(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let mut wtr = csv::Writer::from_path(filepath); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lib.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/lib.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let len=model.keys(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let mut wtr = csv::Writer::from_path(filepath); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:294:21 [INFO] [stdout] | [INFO] [stdout] 294 | writer.write_record(&headers); [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 294 | let _ = writer.write_record(&headers); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | writer.write_record(&values); [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] 311 | let _ = writer.write_record(&values); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 313 | writer.flush(); [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] 313 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/rsio.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let a:&str=v.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:294:21 [INFO] [stdout] | [INFO] [stdout] 294 | writer.write_record(&headers); [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] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 294 | let _ = writer.write_record(&headers); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:311:17 [INFO] [stdout] | [INFO] [stdout] 311 | writer.write_record(&values); [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] 311 | let _ = writer.write_record(&values); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:313:13 [INFO] [stdout] | [INFO] [stdout] 313 | writer.flush(); [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] 313 | let _ = writer.flush(); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/rsio.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let a:&str=v.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 17 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `stdin` [INFO] [stdout] --> src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, stdin}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `stdin` [INFO] [stdout] --> src/main.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use std::io::{Error, stdin}; [INFO] [stdout] | ^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsio::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rsio::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rsio::*` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use rsio::*; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::ptr::write` [INFO] [stdout] --> tests/file_test.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | use std::ptr::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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: `line` [INFO] [stdout] --> tests/rsio_test.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let line=input_line(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> tests/rsio_test.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let line=input_line_with_msg("Please input a line:"); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `content` [INFO] [stdout] --> tests/rsio_test.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let content = read_binary("data/test.txt"); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_content` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_line` is never used [INFO] [stdout] --> src/rsio.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn input_line()->String{ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> src/rsio.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input()->Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `println` is never used [INFO] [stdout] --> src/rsio.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn println(s:&str){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/rsio.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn print(s:&str){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eprintln` is never used [INFO] [stdout] --> src/rsio.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eprintln(s:&str){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input_line_with_msg` is never used [INFO] [stdout] --> src/rsio.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn input_line_with_msg(msg:&str)->String{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flag` [INFO] [stdout] --> tests/web_test.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let flag=write_text("data/webpage.html",hh); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_binary` is never used [INFO] [stdout] --> src/rsio.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn read_binary(filepath:&str)->Vec{ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `write_text_once` is never used [INFO] [stdout] --> src/rsio.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn write_text_once(filepath:&str,content:&str){ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `append_text` is never used [INFO] [stdout] --> src/rsio.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | pub fn append_text(filepath:&str,lines:Vec<&str>){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_all` is never used [INFO] [stdout] --> tests/rsio_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | fn test_all(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page1` [INFO] [stdout] --> tests/web_test.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let page1=read_html_string(html_str); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_page1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/rsio.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let a:&str=v.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `input` is never used [INFO] [stdout] --> src/rsio.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn input()->Vec{ [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `println` is never used [INFO] [stdout] --> src/rsio.rs:72:8 [INFO] [stdout] | [INFO] [stdout] 72 | pub fn println(s:&str){ [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/rsio.rs:79:8 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn print(s:&str){ [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eprintln` is never used [INFO] [stdout] --> src/rsio.rs:86:8 [INFO] [stdout] | [INFO] [stdout] 86 | pub fn eprintln(s:&str){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> tests/file_test.rs:40:29 [INFO] [stdout] | [INFO] [stdout] 40 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/rsio.rs:63:21 [INFO] [stdout] | [INFO] [stdout] 63 | let a:&str=v.clone(); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> tests/file_test.rs:64:29 [INFO] [stdout] | [INFO] [stdout] 64 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 7.14s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: html5ever v0.25.1, xml5ever v0.16.2 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 4` [INFO] running `Command { std: "docker" "inspect" "04e5179147edfd699f0af202b7c7b8730d8446b7d05c20a2003eb5c5bdf1b5f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "04e5179147edfd699f0af202b7c7b8730d8446b7d05c20a2003eb5c5bdf1b5f3", kill_on_drop: false }` [INFO] [stdout] 04e5179147edfd699f0af202b7c7b8730d8446b7d05c20a2003eb5c5bdf1b5f3 [INFO] checking rsfile-0.1.2 against try#3a4bc97f6385a3aa300a4fd689b44350e54fd676 for no-never-type-fallback [INFO] extracting crate rsfile 0.1.2 into /workspace/builds/worker-0-tc2/source [INFO] validating manifest of crates.io crate rsfile 0.1.2 on toolchain 3a4bc97f6385a3aa300a4fd689b44350e54fd676 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+3a4bc97f6385a3aa300a4fd689b44350e54fd676" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rsfile 0.1.2 [INFO] finished tweaking crates.io crate rsfile 0.1.2 [INFO] tweaked toml for crates.io crate rsfile 0.1.2 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate crates.io crate rsfile 0.1.2 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" "+3a4bc97f6385a3aa300a4fd689b44350e54fd676" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+3a4bc97f6385a3aa300a4fd689b44350e54fd676" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 89fe1cdcc1a71af5c3a7c0c0ec3d6dda5e355fdf8aa0567dde5540ca308f4c2e [INFO] running `Command { std: "docker" "start" "-a" "89fe1cdcc1a71af5c3a7c0c0ec3d6dda5e355fdf8aa0567dde5540ca308f4c2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "89fe1cdcc1a71af5c3a7c0c0ec3d6dda5e355fdf8aa0567dde5540ca308f4c2e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "89fe1cdcc1a71af5c3a7c0c0ec3d6dda5e355fdf8aa0567dde5540ca308f4c2e", kill_on_drop: false }` [INFO] [stdout] 89fe1cdcc1a71af5c3a7c0c0ec3d6dda5e355fdf8aa0567dde5540ca308f4c2e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+3a4bc97f6385a3aa300a4fd689b44350e54fd676" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ce9def392b2c503bb143ce95847406a958aa3ca9f8826a94e4690f2baea36a2c [INFO] running `Command { std: "docker" "start" "-a" "ce9def392b2c503bb143ce95847406a958aa3ca9f8826a94e4690f2baea36a2c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.116 [INFO] [stderr] Compiling ppv-lite86 v0.2.16 [INFO] [stderr] Compiling serde v1.0.136 [INFO] [stderr] Compiling siphasher v0.3.9 [INFO] [stderr] Checking smallvec v1.8.0 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling proc-macro2 v1.0.36 [INFO] [stderr] Checking new_debug_unreachable v1.0.4 [INFO] [stderr] Compiling libz-sys v1.1.3 [INFO] [stderr] Checking lock_api v0.4.6 [INFO] [stderr] Compiling openssl-sys v0.9.72 [INFO] [stderr] Compiling syn v1.0.86 [INFO] [stderr] Checking mac v0.1.1 [INFO] [stderr] Checking utf-8 v0.7.6 [INFO] [stderr] Checking precomputed-hash v0.1.1 [INFO] [stderr] Compiling curl-sys v0.4.52+curl-7.81.0 [INFO] [stderr] Checking futf v0.1.4 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling curl v0.4.42 [INFO] [stderr] Compiling phf_shared v0.8.0 [INFO] [stderr] Checking tendril v0.4.2 [INFO] [stderr] Compiling serde_json v1.0.78 [INFO] [stderr] Checking phf v0.8.0 [INFO] [stderr] Compiling quote v1.0.15 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking parking_lot_core v0.8.5 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking socket2 v0.4.4 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Checking parking_lot v0.11.2 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Compiling rand_pcg v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling phf_generator v0.8.0 [INFO] [stderr] Compiling string_cache_codegen v0.5.1 [INFO] [stderr] Compiling phf_codegen v0.8.0 [INFO] [stderr] Compiling markup5ever v0.10.1 [INFO] [stderr] Checking string_cache v0.8.2 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking csv v1.1.6 [INFO] [stderr] Checking xml5ever v0.16.2 [INFO] [stderr] Compiling html5ever v0.25.1 [INFO] [stderr] Checking markup5ever_rcdom v0.1.0 [INFO] [stderr] Checking webpage v1.4.0 [INFO] [stderr] Checking rsfile v0.1.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `get_string_or_empty` [INFO] [stdout] --> src/web.rs:4:33 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::web::{fetch_html,get_string_or_empty, read_html_file, read_html_string, show_dict}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - match(s){ [INFO] [stdout] 56 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - match(s){ [INFO] [stdout] 152 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> src/lib.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 30 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `BufRead` is already imported here [INFO] [stdout] ... [INFO] [stdout] 95 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:56:10 [INFO] [stdout] | [INFO] [stdout] 56 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 56 - match(s){ [INFO] [stdout] 56 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `match` scrutinee expression [INFO] [stdout] --> src/web.rs:152:14 [INFO] [stdout] | [INFO] [stdout] 152 | match(s){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 152 - match(s){ [INFO] [stdout] 152 + match s{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BorrowMut`, `Borrow` [INFO] [stdout] --> src/rsio.rs:39:19 [INFO] [stdout] | [INFO] [stdout] 39 | use std::borrow::{Borrow, BorrowMut}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `BufRead` is imported redundantly [INFO] [stdout] --> src/lib.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 30 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `BufRead` is already imported here [INFO] [stdout] ... [INFO] [stdout] 95 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / match file.write_all(content.as_bytes()) { [INFO] [stdout] 83 | | Err(why) => { [INFO] [stdout] 84 | | eprintln!("couldn't write to {}: {}", display, why); [INFO] [stdout] 85 | | return false; [INFO] [stdout] ... | [INFO] [stdout] 90 | | }, [INFO] [stdout] 91 | | }; [INFO] [stdout] | |_____^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:82:5 [INFO] [stdout] | [INFO] [stdout] 82 | / match file.write_all(content.as_bytes()) { [INFO] [stdout] 83 | | Err(why) => { [INFO] [stdout] 84 | | eprintln!("couldn't write to {}: {}", display, why); [INFO] [stdout] 85 | | return false; [INFO] [stdout] ... | [INFO] [stdout] 90 | | }, [INFO] [stdout] 91 | | }; [INFO] [stdout] | |_____^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `flag` [INFO] [stdout] --> src/web.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let flag=write_text("data/webpage.html",hh); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_flag` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `html_str` [INFO] [stdout] --> src/web.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let html_str=match html_opt { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_html_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `page1` [INFO] [stdout] --> src/web.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let page1=read_html_string(get_ref_string_str(html_opt)); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_page1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lib.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/lib.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let len=model.keys(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let mut wtr = csv::Writer::from_path(filepath); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut s = input.split_whitespace(); [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] error: aborting due to 1 previous error; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/rsio.rs:134:9 [INFO] [stdout] | [INFO] [stdout] 134 | let mut file = OpenOptions::new() [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rsfile` (lib) due to 2 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lib.rs:262:25 [INFO] [stdout] | [INFO] [stdout] 262 | let value=if let Some(v)=model.get(k){ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/lib.rs:288:21 [INFO] [stdout] | [INFO] [stdout] 288 | let len=model.keys(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:283:9 [INFO] [stdout] | [INFO] [stdout] 283 | let mut wtr = csv::Writer::from_path(filepath); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0282`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rsfile` (lib test) due to 2 previous errors; 13 warnings emitted [INFO] running `Command { std: "docker" "inspect" "ce9def392b2c503bb143ce95847406a958aa3ca9f8826a94e4690f2baea36a2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ce9def392b2c503bb143ce95847406a958aa3ca9f8826a94e4690f2baea36a2c", kill_on_drop: false }` [INFO] [stdout] ce9def392b2c503bb143ce95847406a958aa3ca9f8826a94e4690f2baea36a2c