[INFO] cloning repository https://github.com/dopeter/rust_sample [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dopeter/rust_sample" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdopeter%2Frust_sample", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdopeter%2Frust_sample'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9f7d4afe11818870d0599e96a0e6cc5a21af6283 [INFO] building dopeter/rust_sample against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdopeter%2Frust_sample" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dopeter/rust_sample on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/dopeter/rust_sample [INFO] finished tweaking git repo https://github.com/dopeter/rust_sample [INFO] tweaked toml for git repo https://github.com/dopeter/rust_sample written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/dopeter/rust_sample 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93feeea73538fdc67d598a4ff4c0cf54d1c36d021ab5c5fb853130fe1847f3a4 [INFO] running `Command { std: "docker" "start" "-a" "93feeea73538fdc67d598a4ff4c0cf54d1c36d021ab5c5fb853130fe1847f3a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93feeea73538fdc67d598a4ff4c0cf54d1c36d021ab5c5fb853130fe1847f3a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93feeea73538fdc67d598a4ff4c0cf54d1c36d021ab5c5fb853130fe1847f3a4", kill_on_drop: false }` [INFO] [stdout] 93feeea73538fdc67d598a4ff4c0cf54d1c36d021ab5c5fb853130fe1847f3a4 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ae674a05549a0c59252f28e5bbdf86f339db1bb678e06a5c69a8b808eda32044 [INFO] running `Command { std: "docker" "start" "-a" "ae674a05549a0c59252f28e5bbdf86f339db1bb678e06a5c69a8b808eda32044", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.60 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling rand v0.3.23 [INFO] [stderr] Compiling hello_world_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io; [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/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::data_structure::priority_queue` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use algorithms::data_structure::priority_queue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:79:52 [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_open_file` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodeName` is never read [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 3 | nodeId: usize, [INFO] [stdout] 4 | nodeName: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `edge` is never read [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Edge { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 10 | edge: bool [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeId` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | nodeId: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `node_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeName` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | nodeName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeNums` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | nodeNums: usize, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nodeId` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(nodeId: usize, nodeName: String) -> Node { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nodeName` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(nodeId: usize, nodeName: String) -> Node { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "ae674a05549a0c59252f28e5bbdf86f339db1bb678e06a5c69a8b808eda32044", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae674a05549a0c59252f28e5bbdf86f339db1bb678e06a5c69a8b808eda32044", kill_on_drop: false }` [INFO] [stdout] ae674a05549a0c59252f28e5bbdf86f339db1bb678e06a5c69a8b808eda32044 [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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 28f994191855089ccf0a54facd1b96ed9472c8cb94d1385977d9c3ac93b5bfdb [INFO] running `Command { std: "docker" "start" "-a" "28f994191855089ccf0a54facd1b96ed9472c8cb94d1385977d9c3ac93b5bfdb", kill_on_drop: false }` [INFO] [stderr] Compiling hello_world_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::io` [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::io; [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/main.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> src/main.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `algorithms::data_structure::priority_queue` [INFO] [stdout] --> src/main.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 30 | use algorithms::data_structure::priority_queue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:66:54 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:79:52 [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_open_file` is never used [INFO] [stdout] --> src/main.rs:66:4 [INFO] [stdout] | [INFO] [stdout] 66 | fn test_open_file(filename: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_username_from_file` is never used [INFO] [stdout] --> src/main.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn read_username_from_file() -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `nodeName` is never read [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | struct Node { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 3 | nodeId: usize, [INFO] [stdout] 4 | nodeName: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `edge` is never read [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | struct Edge { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 10 | edge: bool [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Edge` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeId` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | nodeId: usize, [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `node_id` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeName` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | nodeName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `nodeNums` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | nodeNums: usize, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_nums` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nodeId` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(nodeId: usize, nodeName: String) -> Node { [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `node_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nodeName` should have a snake case name [INFO] [stdout] --> src/algorithms/data_structure/simply_graph.rs:21:27 [INFO] [stdout] | [INFO] [stdout] 21 | fn new(nodeId: usize, nodeName: String) -> Node { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `node_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.12s [INFO] running `Command { std: "docker" "inspect" "28f994191855089ccf0a54facd1b96ed9472c8cb94d1385977d9c3ac93b5bfdb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28f994191855089ccf0a54facd1b96ed9472c8cb94d1385977d9c3ac93b5bfdb", kill_on_drop: false }` [INFO] [stdout] 28f994191855089ccf0a54facd1b96ed9472c8cb94d1385977d9c3ac93b5bfdb