[INFO] fetching crate rust_file_encode_mode_convert 11.45.14... [INFO] checking rust_file_encode_mode_convert-11.45.14 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate rust_file_encode_mode_convert 11.45.14 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate rust_file_encode_mode_convert 11.45.14 [INFO] finished tweaking crates.io crate rust_file_encode_mode_convert 11.45.14 [INFO] tweaked toml for crates.io crate rust_file_encode_mode_convert 11.45.14 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate rust_file_encode_mode_convert 11.45.14 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate rust_file_encode_mode_convert 11.45.14 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: `panic` setting is ignored for `bench` profile [INFO] [stderr] warning: profile `doc` is deprecated and has no effect [INFO] [stderr] warning: `panic` setting is ignored for `test` profile [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8feb9e3160e7a03560877e11d2e47b30d7575fed918828418e24e16dca39d29c [INFO] running `Command { std: "docker" "start" "-a" "8feb9e3160e7a03560877e11d2e47b30d7575fed918828418e24e16dca39d29c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8feb9e3160e7a03560877e11d2e47b30d7575fed918828418e24e16dca39d29c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8feb9e3160e7a03560877e11d2e47b30d7575fed918828418e24e16dca39d29c", kill_on_drop: false }` [INFO] [stdout] 8feb9e3160e7a03560877e11d2e47b30d7575fed918828418e24e16dca39d29c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 614a370e004e2bff8f147b84819e66fe868a87871e6a55012a01ce4cba4afd82 [INFO] running `Command { std: "docker" "start" "-a" "614a370e004e2bff8f147b84819e66fe868a87871e6a55012a01ce4cba4afd82", kill_on_drop: false }` [INFO] [stderr] warning: `panic` setting is ignored for `bench` profile [INFO] [stderr] warning: profile `doc` is deprecated and has no effect [INFO] [stderr] warning: `panic` setting is ignored for `test` profile [INFO] [stderr] Compiling proc-macro2 v1.0.92 [INFO] [stderr] Compiling unicode-ident v1.0.14 [INFO] [stderr] Compiling serde v1.0.216 [INFO] [stderr] Compiling virtue v0.0.13 [INFO] [stderr] Compiling serde_json v1.0.134 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Checking unicode-width v0.1.14 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking itoa v1.0.14 [INFO] [stderr] Checking encoding_rs v0.8.35 [INFO] [stderr] Checking getopts v0.2.21 [INFO] [stderr] Compiling bincode_derive v2.0.0-rc.3 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.91 [INFO] [stderr] Checking bincode v2.0.0-rc.3 [INFO] [stderr] Compiling serde_derive v1.0.216 [INFO] [stderr] Checking rust_file_encode_mode_convert v11.45.14 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest` is never read [INFO] [stdout] --> src/lib.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | dest = detect_gbk_encoding_and_transform_utf8(file_path)?; [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/bin/io_read_file_decode_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut contents = String::from_utf8_lossy(&contents); [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 import: `rust_file_encode_mode_convert` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_file_encode_mode_convert; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_file_encode_mode_convert::DecodeReaderBytes` [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rust_file_encode_mode_convert::DecodeReaderBytes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `detect_gbk_encoding_and_transform_utf8` is never used [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn detect_gbk_encoding_and_transform_utf8(file_path: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_bom_and_convert_to_utf8` is never used [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn remove_bom_and_convert_to_utf8(dest: &mut String, filepath: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `dest` is never read [INFO] [stdout] --> src/lib.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | dest = detect_gbk_encoding_and_transform_utf8(file_path)?; [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: value assigned to `dest` is never read [INFO] [stdout] --> src/lib.rs:435:9 [INFO] [stdout] | [INFO] [stdout] 435 | dest = detect_gbk_encoding_and_transform_utf8(file_path)?; [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: unused import: `rust_file_encode_mode_convert` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use rust_file_encode_mode_convert; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `OpenOptions` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:2:21 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::{File, OpenOptions}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::thread::current` [INFO] [stdout] --> src/bin/detect_encode_cli.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::thread::current; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `rust_file_encode_mode_convert::DecodeReaderBytes` [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use rust_file_encode_mode_convert::DecodeReaderBytes; [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/bin/io_read_file_decode_test.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let mut contents = String::from_utf8_lossy(&contents); [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: function `detect_gbk_encoding_and_transform_utf8` is never used [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn detect_gbk_encoding_and_transform_utf8(file_path: &str) -> io::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `remove_bom_and_convert_to_utf8` is never used [INFO] [stdout] --> src/bin/encoding_rs_io_demo.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn remove_bom_and_convert_to_utf8(dest: &mut String, filepath: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized] target(s) in 12.91s [INFO] running `Command { std: "docker" "inspect" "614a370e004e2bff8f147b84819e66fe868a87871e6a55012a01ce4cba4afd82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "614a370e004e2bff8f147b84819e66fe868a87871e6a55012a01ce4cba4afd82", kill_on_drop: false }` [INFO] [stdout] 614a370e004e2bff8f147b84819e66fe868a87871e6a55012a01ce4cba4afd82