[INFO] cloning repository https://github.com/somanadha/rust_app_for_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/somanadha/rust_app_for_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsomanadha%2Frust_app_for_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsomanadha%2Frust_app_for_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1a75978dd79cad3a0aa85b9409248551799e3df7 [INFO] checking somanadha/rust_app_for_learning against try#c659ee110de67e82444e4b6c8407c1a9af9c2cf6 for pr-145608-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsomanadha%2Frust_app_for_learning" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/somanadha/rust_app_for_learning [INFO] finished tweaking git repo https://github.com/somanadha/rust_app_for_learning [INFO] tweaked toml for git repo https://github.com/somanadha/rust_app_for_learning written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/somanadha/rust_app_for_learning on toolchain c659ee110de67e82444e4b6c8407c1a9af9c2cf6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/somanadha/rust_app_for_learning 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" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 99a915090256abf34a1622722a0dcf94ed4e9b6f79c7f066262532a98fbadc72 [INFO] running `Command { std: "docker" "start" "-a" "99a915090256abf34a1622722a0dcf94ed4e9b6f79c7f066262532a98fbadc72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "99a915090256abf34a1622722a0dcf94ed4e9b6f79c7f066262532a98fbadc72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "99a915090256abf34a1622722a0dcf94ed4e9b6f79c7f066262532a98fbadc72", kill_on_drop: false }` [INFO] [stdout] 99a915090256abf34a1622722a0dcf94ed4e9b6f79c7f066262532a98fbadc72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+c659ee110de67e82444e4b6c8407c1a9af9c2cf6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c21be33316ee59d17b3e0c50bd7b23eac170e3a47dc46dcd4c3449dcf64960fd [INFO] running `Command { std: "docker" "start" "-a" "c21be33316ee59d17b3e0c50bd7b23eac170e3a47dc46dcd4c3449dcf64960fd", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Checking winnow v0.6.18 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Checking toml_datetime v0.6.8 [INFO] [stderr] Checking serde_spanned v0.6.7 [INFO] [stderr] Checking toml_edit v0.22.21 [INFO] [stderr] Checking toml v0.8.19 [INFO] [stderr] Checking rust_app_for_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `age` is never read [INFO] [stdout] --> src/bin/arc_mutex_example_2.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct College { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] 7 | age: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `College` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Two` [INFO] [stdout] --> src/bin/smart_pointer_example.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use Test::{One, Two}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/bin/smart_pointer_example.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | Cons(T, Box>), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Cons(T, Box>), [INFO] [stdout] 12 + Cons(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Two` is never constructed [INFO] [stdout] --> src/bin/smart_pointer_example.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Test { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 17 | One, [INFO] [stdout] 18 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::BorrowMut` and `cell::RefCell` [INFO] [stdout] --> src/bin/linked_list_associated_types_example.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, fmt::Debug}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/bin/arc_mutex_example_1.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `finding_largest_generic` is never used [INFO] [stdout] --> src/bin/generic_example.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn finding_largest_generic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_largest` is never used [INFO] [stdout] --> src/bin/generic_example.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_largest(data: &Vec) -> (u32, T) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/bin/generic_example.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_x` is never used [INFO] [stdout] --> src/bin/generic_example.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 45 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_y` and `get_distance_from_origin` are never used [INFO] [stdout] --> src/bin/generic_example.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Point { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 51 | fn get_y(&self) -> &f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance_from_origin` is never used [INFO] [stdout] --> src/bin/generic_example.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn calculate_distance_from_origin() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `finding_largest_generic` is never used [INFO] [stdout] --> src/bin/generic_example.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn finding_largest_generic() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_largest` is never used [INFO] [stdout] --> src/bin/generic_example.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn get_largest(data: &Vec) -> (u32, T) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/bin/generic_example.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_x` is never used [INFO] [stdout] --> src/bin/generic_example.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 44 | impl Point { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 45 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_y` and `get_distance_from_origin` are never used [INFO] [stdout] --> src/bin/generic_example.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 50 | impl Point { [INFO] [stdout] | --------------- methods in this implementation [INFO] [stdout] 51 | fn get_y(&self) -> &f32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 54 | fn get_distance_from_origin(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_distance_from_origin` is never used [INFO] [stdout] --> src/bin/generic_example.rs:59:4 [INFO] [stdout] | [INFO] [stdout] 59 | fn calculate_distance_from_origin() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `fmt::Display` [INFO] [stdout] --> src/bin/default_generic_type.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{fmt::Display, ops::Add}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `borrow::BorrowMut` and `cell::RefCell` [INFO] [stdout] --> src/bin/linked_list_associated_types_example.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{borrow::BorrowMut, cell::RefCell, fmt::Debug}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_node` is never read [INFO] [stdout] --> src/bin/linked_list_associated_types_example.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | current_node = &mut Some(Box::new(Node { [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: field `age` is never read [INFO] [stdout] --> src/bin/arc_mutex_example_1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct College { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] 7 | age: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `College` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `current_node` is never read [INFO] [stdout] --> src/bin/linked_list_associated_types_example.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | current_node = &mut Some(Box::new(Node { [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] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/closure_example_2.rs:70:54 [INFO] [stdout] | [INFO] [stdout] 70 | fn workout_calculation(criteria: WorkoutCriteria) -> Workout { [INFO] [stdout] | ------------------- ^^^^^^^ expected `Workout`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `intensity` [INFO] [stdout] --> src/bin/closure_example_2.rs:76:21 [INFO] [stdout] | [INFO] [stdout] 76 | fn generate_workout(intensity: u32) {} [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_intensity` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_app_for_learning` (bin "closure_example_2") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused import: `Weak` [INFO] [stdout] --> src/bin/arc_mutex_example_1.rs:1:29 [INFO] [stdout] | [INFO] [stdout] 1 | use std::sync::{Arc, Mutex, Weak}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Two` [INFO] [stdout] --> src/bin/smart_pointer_example.rs:2:17 [INFO] [stdout] | [INFO] [stdout] 2 | use Test::{One, Two}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `1` is never read [INFO] [stdout] --> src/bin/smart_pointer_example.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | Cons(T, Box>), [INFO] [stdout] | ---- ^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 12 - Cons(T, Box>), [INFO] [stdout] 12 + Cons(T, ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Two` is never constructed [INFO] [stdout] --> src/bin/smart_pointer_example.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 16 | enum Test { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] 17 | One, [INFO] [stdout] 18 | Two, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` 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 `age` is never read [INFO] [stdout] --> src/bin/arc_mutex_example_1.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 5 | struct College { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] 7 | age: u32, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `College` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c21be33316ee59d17b3e0c50bd7b23eac170e3a47dc46dcd4c3449dcf64960fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c21be33316ee59d17b3e0c50bd7b23eac170e3a47dc46dcd4c3449dcf64960fd", kill_on_drop: false }` [INFO] [stdout] c21be33316ee59d17b3e0c50bd7b23eac170e3a47dc46dcd4c3449dcf64960fd