[INFO] cloning repository https://github.com/thebinij/rust-learning-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/thebinij/rust-learning-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthebinij%2Frust-learning-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthebinij%2Frust-learning-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c897eb2c2652020ef727ef2c50b7be28b7285bfa [INFO] building thebinij/rust-learning-basics against master#ad85bc524b1ad696e42061ad8338d382dffbdbe5 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fthebinij%2Frust-learning-basics" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/thebinij/rust-learning-basics [INFO] finished tweaking git repo https://github.com/thebinij/rust-learning-basics [INFO] tweaked toml for git repo https://github.com/thebinij/rust-learning-basics written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/thebinij/rust-learning-basics on toolchain ad85bc524b1ad696e42061ad8338d382dffbdbe5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/thebinij/rust-learning-basics 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" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded wit-bindgen v0.45.0 [INFO] [stderr] Downloaded getopts v0.2.23 [INFO] [stderr] Downloaded wasi v0.14.3+wasi-0.2.4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 81589af287f4f8e1562269768aa991f875df80cd5a1075951574d3b34dd95891 [INFO] running `Command { std: "docker" "start" "-a" "81589af287f4f8e1562269768aa991f875df80cd5a1075951574d3b34dd95891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "81589af287f4f8e1562269768aa991f875df80cd5a1075951574d3b34dd95891", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81589af287f4f8e1562269768aa991f875df80cd5a1075951574d3b34dd95891", kill_on_drop: false }` [INFO] [stdout] 81589af287f4f8e1562269768aa991f875df80cd5a1075951574d3b34dd95891 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d02f0ae1e2708d4b28cbdffad487b6d742efffcd93fbb05b475b4c135eaa0860 [INFO] running `Command { std: "docker" "start" "-a" "d02f0ae1e2708d4b28cbdffad487b6d742efffcd93fbb05b475b4c135eaa0860", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling hashbrown v0.15.5 [INFO] [stderr] Compiling slab v0.4.11 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Compiling ref-cast v1.0.24 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling percent-encoding v2.3.2 [INFO] [stderr] Compiling bitflags v2.9.3 [INFO] [stderr] Compiling stable-pattern v0.1.0 [INFO] [stderr] Compiling toml_write v0.1.2 [INFO] [stderr] Compiling winnow v0.7.13 [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling anstyle-query v1.1.4 [INFO] [stderr] Compiling anstream v0.6.20 [INFO] [stderr] Compiling rustix v1.0.8 [INFO] [stderr] Compiling encoding_rs v0.8.35 [INFO] [stderr] Compiling glob v0.3.3 [INFO] [stderr] Compiling pulldown-cmark v0.13.0 [INFO] [stderr] Compiling getopts v0.2.23 [INFO] [stderr] Compiling csv-core v0.1.12 [INFO] [stderr] Compiling pulldown-cmark-escape v0.11.0 [INFO] [stderr] Compiling clap_builder v4.5.46 [INFO] [stderr] Compiling indexmap v2.11.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling socket2 v0.6.0 [INFO] [stderr] Compiling signal-hook-registry v1.4.6 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling is-terminal v0.4.16 [INFO] [stderr] Compiling getrandom v0.2.16 [INFO] [stderr] Compiling yansi v1.0.1 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling num_cpus v1.17.0 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tempfile v3.21.0 [INFO] [stderr] Compiling tokio v1.47.1 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling cookie v0.18.1 [INFO] [stderr] Compiling proc-macro2-diagnostics v0.10.1 [INFO] [stderr] Compiling hyper v0.14.32 [INFO] [stderr] Compiling devise_core v0.4.2 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling pear_codegen v0.2.9 [INFO] [stderr] Compiling ref-cast-impl v1.0.24 [INFO] [stderr] Compiling async-stream-impl v0.3.6 [INFO] [stderr] Compiling async-trait v0.1.89 [INFO] [stderr] Compiling clap_derive v4.5.45 [INFO] [stderr] Compiling maud_macros v0.27.0 [INFO] [stderr] Compiling devise_codegen v0.4.2 [INFO] [stderr] Compiling pear v0.2.9 [INFO] [stderr] Compiling async-stream v0.3.6 [INFO] [stderr] Compiling maud v0.27.0 [INFO] [stderr] Compiling devise v0.4.2 [INFO] [stderr] Compiling clap v4.5.46 [INFO] [stderr] Compiling rocket_http v0.5.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling rocket_codegen v0.5.1 [INFO] [stderr] Compiling tokio-util v0.7.16 [INFO] [stderr] Compiling tokio-stream v0.1.17 [INFO] [stderr] Compiling serde_spanned v0.6.9 [INFO] [stderr] Compiling toml_datetime v0.6.11 [INFO] [stderr] Compiling uncased v0.9.10 [INFO] [stderr] Compiling ubyte v0.10.4 [INFO] [stderr] Compiling csv v1.3.1 [INFO] [stderr] Compiling multer v3.1.0 [INFO] [stderr] Compiling h2 v0.3.27 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Compiling toml v0.8.23 [INFO] [stderr] Compiling figment v0.10.19 [INFO] [stderr] Compiling rocket v0.5.1 [INFO] [stderr] Compiling rust-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `v_i32` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let v_i32 = vec![1,2,3,4]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_f64` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let v_f64 = vec![1_f64, 2_f64,3_f64]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_i64` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let v_i64: Vec = vec![100,200,300]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_elements` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn sum_of_elements(nums : &[i32]) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_elements_generic` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn sum_of_elements_generic(nums : &[T]) -> T{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sellable` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Sellable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sword` is never constructed [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Sword { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shield` is never constructed [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Shield { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vendor_text_static` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn vendor_text_static(item: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vendor_text_dyanmic` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn vendor_text_dyanmic(item: &dyn Sellable) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 05s [INFO] running `Command { std: "docker" "inspect" "d02f0ae1e2708d4b28cbdffad487b6d742efffcd93fbb05b475b4c135eaa0860", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d02f0ae1e2708d4b28cbdffad487b6d742efffcd93fbb05b475b4c135eaa0860", kill_on_drop: false }` [INFO] [stdout] d02f0ae1e2708d4b28cbdffad487b6d742efffcd93fbb05b475b4c135eaa0860 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ad85bc524b1ad696e42061ad8338d382dffbdbe5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5a21dfb6c9a26b4f441ec03d6546aebb19224d6def5abfd3ad04aa86eeddffbc [INFO] running `Command { std: "docker" "start" "-a" "5a21dfb6c9a26b4f441ec03d6546aebb19224d6def5abfd3ad04aa86eeddffbc", kill_on_drop: false }` [INFO] [stderr] Compiling rust-learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `v_i32` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let v_i32 = vec![1,2,3,4]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_i32` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_f64` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:68:9 [INFO] [stdout] | [INFO] [stdout] 68 | let v_f64 = vec![1_f64, 2_f64,3_f64]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v_i64` [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:69:9 [INFO] [stdout] | [INFO] [stdout] 69 | let v_i64: Vec = vec![100,200,300]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v_i64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_elements` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn sum_of_elements(nums : &[i32]) -> i32{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sum_of_elements_generic` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn sum_of_elements_generic(nums : &[T]) -> T{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/advanced_rust/generics_traits.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn main(){ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Sellable` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:1:7 [INFO] [stdout] | [INFO] [stdout] 1 | trait Sellable { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Sword` is never constructed [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | struct Sword { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Shield` is never constructed [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:24:8 [INFO] [stdout] | [INFO] [stdout] 24 | struct Shield { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vendor_text_static` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn vendor_text_static(item: &T) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vendor_text_dyanmic` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn vendor_text_dyanmic(item: &dyn Sellable) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/advanced_rust/polymorphism.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.58s [INFO] running `Command { std: "docker" "inspect" "5a21dfb6c9a26b4f441ec03d6546aebb19224d6def5abfd3ad04aa86eeddffbc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a21dfb6c9a26b4f441ec03d6546aebb19224d6def5abfd3ad04aa86eeddffbc", kill_on_drop: false }` [INFO] [stdout] 5a21dfb6c9a26b4f441ec03d6546aebb19224d6def5abfd3ad04aa86eeddffbc