[INFO] cloning repository https://github.com/jaysantosh/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jaysantosh/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaysantosh%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaysantosh%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b4640c6345a213232c6a573a9c88b2d12a77d4ca [INFO] testing jaysantosh/rust_learning against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjaysantosh%2Frust_learning" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jaysantosh/rust_learning [INFO] finished tweaking git repo https://github.com/jaysantosh/rust_learning [INFO] tweaked toml for git repo https://github.com/jaysantosh/rust_learning written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jaysantosh/rust_learning on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jaysantosh/rust_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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded slab v0.4.10 [INFO] [stderr] Downloaded redox_syscall v0.5.15 [INFO] [stderr] Downloaded syn v2.0.104 [INFO] [stderr] Downloaded tokio v1.46.1 [INFO] [stderr] Downloaded libc v0.2.174 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c8a615e58773dfbfb26d711adc2c16e731a51a78900748db85319eb3ec598a96 [INFO] running `Command { std: "docker" "start" "-a" "c8a615e58773dfbfb26d711adc2c16e731a51a78900748db85319eb3ec598a96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8a615e58773dfbfb26d711adc2c16e731a51a78900748db85319eb3ec598a96", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8a615e58773dfbfb26d711adc2c16e731a51a78900748db85319eb3ec598a96", kill_on_drop: false }` [INFO] [stdout] c8a615e58773dfbfb26d711adc2c16e731a51a78900748db85319eb3ec598a96 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bcd4c65202e3f228d7579c83fe9190b9bcbdefd168a64cdcc5748d05e41356a4 [INFO] running `Command { std: "docker" "start" "-a" "bcd4c65202e3f228d7579c83fe9190b9bcbdefd168a64cdcc5748d05e41356a4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling socket2 v0.5.10 [INFO] [stderr] Compiling signal-hook-registry v1.4.5 [INFO] [stderr] Compiling mio v1.0.4 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.46.1 [INFO] [stderr] Compiling hello_cargo v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `;`, found keyword `enum` [INFO] [stdout] --> src/bin/traffic_light.rs:1:24 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{thread, time} [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 2 | [INFO] [stdout] 3 | enum TrafficLight{ [INFO] [stdout] | ---- unexpected token [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `=>` [INFO] [stdout] --> src/bin/traffic_light.rs:19:26 [INFO] [stdout] | [INFO] [stdout] 19 | TrafficLight::Red=>2, [INFO] [stdout] | ^^ expected one of 8 possible tokens [INFO] [stdout] | [INFO] [stdout] help: you might have meant to write a "greater than or equal to" comparison [INFO] [stdout] | [INFO] [stdout] 19 - TrafficLight::Red=>2, [INFO] [stdout] 19 + TrafficLight::Red>=2, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Quit`, `Write`, and `ChangeColor` are never constructed [INFO] [stdout] --> src/bin/problem4.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Message{ [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 2 | Quit, [INFO] [stdout] | ^^^^ [INFO] [stdout] 3 | Move{x:i32, y:i32}, [INFO] [stdout] 4 | Write(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 5 | ChangeColor(u8, u8, u8), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `compare` should have an upper camel case name [INFO] [stdout] --> src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum compare{ [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Compare` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `TrafficLight` doesn't implement `Debug` [INFO] [stdout] --> src/bin/traffic_light.rs:28:63 [INFO] [stdout] | [INFO] [stdout] 28 | println!("Current Light: {:?}, Duration: {} seconds", light, light.duration()); [INFO] [stdout] | ---- ^^^^^ `TrafficLight` cannot be formatted using `{:?}` because it doesn't implement `Debug` [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `TrafficLight` [INFO] [stdout] = note: add `#[derive(Debug)]` to `TrafficLight` or manually `impl Debug for TrafficLight` [INFO] [stdout] help: consider annotating `TrafficLight` with `#[derive(Debug)]` [INFO] [stdout] | [INFO] [stdout] 3 + #[derive(Debug)] [INFO] [stdout] 4 | enum TrafficLight{ [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_cargo` (bin "traffic_light") due to 3 previous errors [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: type `shapeEnum` should have an upper camel case name [INFO] [stdout] --> src/bin/shape_drawing.rs:38:6 [INFO] [stdout] | [INFO] [stdout] 38 | enum shapeEnum{ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `ShapeEnum` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Checking` and `FixedDeposit` are never constructed [INFO] [stdout] --> src/bin/bank.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum AccountType{ [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 3 | Checking, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | Savings, [INFO] [stdout] 5 | FixedDeposit, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `account_type` is never read [INFO] [stdout] --> src/bin/bank.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | struct BankAccount{ [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 15 | account_type: AccountType, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `South` and `West` are never constructed [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum Direction{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 2 | North, [INFO] [stdout] 3 | South, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 4 | East, [INFO] [stdout] 5 | West, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Add`, `Subtract`, and `Multiply` are never constructed [INFO] [stdout] --> src/main.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 19 | enum CalculatorOp{ [INFO] [stdout] | ------------ variants in this enum [INFO] [stdout] 20 | Add(i32, i32), [INFO] [stdout] | ^^^ [INFO] [stdout] 21 | Subtract(i32,i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 22 | Multiply(i32,i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `doOperation` should have a snake case name [INFO] [stdout] --> src/main.rs:86:4 [INFO] [stdout] | [INFO] [stdout] 86 | fn doOperation(op:CalculatorOp){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `do_operation` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/bank.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | account1.apply_transaction(Transaction::Deposit(1000.0)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 47 | let _ = account1.apply_transaction(Transaction::Deposit(1000.0)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/bank.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/bank.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 54 | let _ = account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/bin/bank.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 60 | account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 60 | let _ = account1.apply_transaction(Transaction::CheckBalance); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/string_to_word.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let mut s = "hello world hello rust"; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bin/shape_drawing.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | let mut c1 = shapeEnum::Circle(Circle{radius:4.0}); [INFO] [stdout] | ----^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Rectangle` and `Triangle` are never constructed [INFO] [stdout] --> src/bin/shape_drawing.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 38 | enum shapeEnum{ [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 39 | Circle(Circle), [INFO] [stdout] 40 | Rectangle(Rectangle), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 41 | Triangle(Triangle), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Closed` and `Error` are never constructed [INFO] [stdout] --> src/bin/problem5.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 1 | enum FileStatus{ [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 2 | Open(String), [INFO] [stdout] 3 | Closed(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 4 | Error(String), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "bcd4c65202e3f228d7579c83fe9190b9bcbdefd168a64cdcc5748d05e41356a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bcd4c65202e3f228d7579c83fe9190b9bcbdefd168a64cdcc5748d05e41356a4", kill_on_drop: false }` [INFO] [stdout] bcd4c65202e3f228d7579c83fe9190b9bcbdefd168a64cdcc5748d05e41356a4