[INFO] cloning repository https://github.com/YJChan/rust-practices [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/YJChan/rust-practices" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYJChan%2Frust-practices", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYJChan%2Frust-practices'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06675c25054be4088ac804ed4c252c4d65b4af49 [INFO] checking YJChan/rust-practices against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYJChan%2Frust-practices" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/YJChan/rust-practices on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/YJChan/rust-practices [INFO] finished tweaking git repo https://github.com/YJChan/rust-practices [INFO] tweaked toml for git repo https://github.com/YJChan/rust-practices written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/YJChan/rust-practices already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ee3cceca9126e559c0be5d8c081ed06486780774d9861c779c41247a74069bf2 [INFO] running `Command { std: "docker" "start" "-a" "ee3cceca9126e559c0be5d8c081ed06486780774d9861c779c41247a74069bf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ee3cceca9126e559c0be5d8c081ed06486780774d9861c779c41247a74069bf2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ee3cceca9126e559c0be5d8c081ed06486780774d9861c779c41247a74069bf2", kill_on_drop: false }` [INFO] [stdout] ee3cceca9126e559c0be5d8c081ed06486780774d9861c779c41247a74069bf2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 944a7303a9c20eff8e172198661ca973a4e60a7f0e0df795434832d734e7759b [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "944a7303a9c20eff8e172198661ca973a4e60a7f0e0df795434832d734e7759b", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking getrandom v0.1.14 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking rust-ds v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:39:65 [INFO] [stdout] | [INFO] [stdout] 39 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:45:65 [INFO] [stdout] | [INFO] [stdout] 45 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:65:65 [INFO] [stdout] | [INFO] [stdout] 65 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 74 | Err(why) => panic!("couldn't create file, {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:119:60 [INFO] [stdout] | [INFO] [stdout] 119 | Err(why) => panic!("couldn't create file, {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:143:65 [INFO] [stdout] | [INFO] [stdout] 143 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:149:65 [INFO] [stdout] | [INFO] [stdout] 149 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:39:65 [INFO] [stdout] | [INFO] [stdout] 39 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:45:65 [INFO] [stdout] | [INFO] [stdout] 45 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:65:65 [INFO] [stdout] | [INFO] [stdout] 65 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:74:60 [INFO] [stdout] | [INFO] [stdout] 74 | Err(why) => panic!("couldn't create file, {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:119:60 [INFO] [stdout] | [INFO] [stdout] 119 | Err(why) => panic!("couldn't create file, {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pos` is assigned to, but never used [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mut pos = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_pos` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:143:65 [INFO] [stdout] | [INFO] [stdout] 143 | Err(why) => panic!("couldn't open {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:149:65 [INFO] [stdout] | [INFO] [stdout] 149 | Err(why) => panic!("couldn't read {}: {}", display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encoding_decoding` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn encoding_decoding() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_encoded_txt` [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn read_encoded_txt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_str_write_encoding` [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn read_str_write_encoding() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_buff` [INFO] [stdout] --> src/main.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn write_buff() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_buff` [INFO] [stdout] --> src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn read_buff() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_file` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn write_file() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_file` [INFO] [stdout] --> src/main.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn read_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sorting_algorithm` [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn sorting_algorithm() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bubble_sort` [INFO] [stdout] --> src/main.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn bubble_sort(v: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compare_2_val` [INFO] [stdout] --> src/main.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn compare_2_val(num1: u8, num2: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_sort` [INFO] [stdout] --> src/main.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn insert_sort(v: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `user_input` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn user_input() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_random` [INFO] [stdout] --> src/main.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn gen_random(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `BufRead` [INFO] [stdout] --> src/main.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | use std::io::{self, BufRead}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `pos` is assigned to, but never used [INFO] [stdout] --> src/main.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | let mut pos = 0; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: consider using `_pos` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `encoding_decoding` [INFO] [stdout] --> src/main.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn encoding_decoding() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_encoded_txt` [INFO] [stdout] --> src/main.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn read_encoded_txt() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_str_write_encoding` [INFO] [stdout] --> src/main.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn read_str_write_encoding() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_buff` [INFO] [stdout] --> src/main.rs:91:4 [INFO] [stdout] | [INFO] [stdout] 91 | fn write_buff() -> std::io::Result<()> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_buff` [INFO] [stdout] --> src/main.rs:102:4 [INFO] [stdout] | [INFO] [stdout] 102 | fn read_buff() -> io::Result<()> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `write_file` [INFO] [stdout] --> src/main.rs:113:4 [INFO] [stdout] | [INFO] [stdout] 113 | fn write_file() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `read_file` [INFO] [stdout] --> src/main.rs:137:4 [INFO] [stdout] | [INFO] [stdout] 137 | fn read_file() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sorting_algorithm` [INFO] [stdout] --> src/main.rs:154:4 [INFO] [stdout] | [INFO] [stdout] 154 | fn sorting_algorithm() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bubble_sort` [INFO] [stdout] --> src/main.rs:169:4 [INFO] [stdout] | [INFO] [stdout] 169 | fn bubble_sort(v: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compare_2_val` [INFO] [stdout] --> src/main.rs:194:4 [INFO] [stdout] | [INFO] [stdout] 194 | fn compare_2_val(num1: u8, num2: u8) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `insert_sort` [INFO] [stdout] --> src/main.rs:202:4 [INFO] [stdout] | [INFO] [stdout] 202 | fn insert_sort(v: &Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `user_input` [INFO] [stdout] --> src/main.rs:222:4 [INFO] [stdout] | [INFO] [stdout] 222 | fn user_input() -> i32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gen_random` [INFO] [stdout] --> src/main.rs:242:4 [INFO] [stdout] | [INFO] [stdout] 242 | fn gen_random(num: i32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.55s [INFO] running `Command { std: "docker" "inspect" "944a7303a9c20eff8e172198661ca973a4e60a7f0e0df795434832d734e7759b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "944a7303a9c20eff8e172198661ca973a4e60a7f0e0df795434832d734e7759b", kill_on_drop: false }` [INFO] [stdout] 944a7303a9c20eff8e172198661ca973a4e60a7f0e0df795434832d734e7759b