[INFO] cloning repository https://github.com/mghildiy/rustlearning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mghildiy/rustlearning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmghildiy%2Frustlearning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmghildiy%2Frustlearning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] fe11c9a59182bc4c3256f9c113a4f02e925a6e21 [INFO] building mghildiy/rustlearning 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%2Fmghildiy%2Frustlearning" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mghildiy/rustlearning 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/mghildiy/rustlearning [INFO] finished tweaking git repo https://github.com/mghildiy/rustlearning [INFO] tweaked toml for git repo https://github.com/mghildiy/rustlearning written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/mghildiy/rustlearning 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] [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 libc v0.2.150 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 7991415106ed7f6ba507d3a8f88874219bc6d13d55983339a41a7aa16af07d8a [INFO] running `Command { std: "docker" "start" "-a" "7991415106ed7f6ba507d3a8f88874219bc6d13d55983339a41a7aa16af07d8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7991415106ed7f6ba507d3a8f88874219bc6d13d55983339a41a7aa16af07d8a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7991415106ed7f6ba507d3a8f88874219bc6d13d55983339a41a7aa16af07d8a", kill_on_drop: false }` [INFO] [stdout] 7991415106ed7f6ba507d3a8f88874219bc6d13d55983339a41a7aa16af07d8a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 100565bbde75cd6e91607fdaaf611d701904ba12a1ef0ac490492f99ae04a1aa [INFO] running `Command { std: "docker" "start" "-a" "100565bbde75cd6e91607fdaaf611d701904ba12a1ef0ac490492f99ae04a1aa", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.150 [INFO] [stderr] Compiling getrandom v0.2.11 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling rustling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `emptyVec` [INFO] [stdout] --> src/collections/examples.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let emptyVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emptyVec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonemptyVec` [INFO] [stdout] --> src/collections/examples.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let nonemptyVec = vec![10,20,30]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nonemptyVec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second` is never read [INFO] [stdout] --> src/collections/examples.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut second = anotherEmptyVec[1]; [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: variable does not need to be mutable [INFO] [stdout] --> src/collections/examples.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut z = &anotherEmptyVec[0]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let x = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let m = "immutable"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut y = "mutable"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let z: u32 = "7".parse().expect("Not a number!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let a = 2.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let b: f32 = 2.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let c = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut y = "mutable"; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let str = if x <= 7 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/main.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let sq = Rectangle::square(20); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessingGame` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn guessingGame() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `experiments` is never used [INFO] [stdout] --> src/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn experiments() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `someRandomNumber` is never used [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn someRandomNumber(factor: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `controlFlow` is never used [INFO] [stdout] --> src/main.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn controlFlow() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/main.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `canHold`, and `square` are never used [INFO] [stdout] --> src/main.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 125 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn canHold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn square(dim: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `structs` is never used [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createUser` is never used [INFO] [stdout] --> src/main.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createFromAnotherUser` is never used [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn createFromAnotherUser(user: User) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | struct Point(i32, i32, i32); // tuple structs. no need for field names [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPoint` is never used [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn createPoint(x: i32, y: i32, z: i32) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyUnitLikeStruct` is never constructed [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | struct MyUnitLikeStruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessingGame` should have a snake case name [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn guessingGame() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `guessing_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secretNumber` should have a snake case name [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let secretNumber = rand::thread_rng().gen_range(1..=100); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `secret_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstDay` should have a snake case name [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let firstDay = days[0]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `someRandomNumber` should have a snake case name [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn someRandomNumber(factor: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `some_random_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `controlFlow` should have a snake case name [INFO] [stdout] --> src/main.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn controlFlow() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `control_flow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `userName` should have a snake case name [INFO] [stdout] --> src/main.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | userName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `signInAmount` should have a snake case name [INFO] [stdout] --> src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | signInAmount: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sign_in_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `canHold` should have a snake case name [INFO] [stdout] --> src/main.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | fn canHold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `can_hold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createUser` should have a snake case name [INFO] [stdout] --> src/main.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `create_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userName` should have a snake case name [INFO] [stdout] --> src/main.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createFromAnotherUser` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn createFromAnotherUser(user: User) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_from_another_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPoint` should have a snake case name [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn createPoint(x: i32, y: i32, z: i32) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorDemo` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn vectorDemo() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vector_demo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `emptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let emptyVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `empty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nonemptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let nonemptyVec = vec![10,20,30]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `nonempty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `anotherEmptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut anotherEmptyVec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `another_empty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mayBe` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mayBe = anotherEmptyVec.get(2); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `may_be` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.81s [INFO] running `Command { std: "docker" "inspect" "100565bbde75cd6e91607fdaaf611d701904ba12a1ef0ac490492f99ae04a1aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "100565bbde75cd6e91607fdaaf611d701904ba12a1ef0ac490492f99ae04a1aa", kill_on_drop: false }` [INFO] [stdout] 100565bbde75cd6e91607fdaaf611d701904ba12a1ef0ac490492f99ae04a1aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 1a1f3357d6f33b4a366491678b72fdbcd507ea28760af9d3e91cc08cc0e9f086 [INFO] running `Command { std: "docker" "start" "-a" "1a1f3357d6f33b4a366491678b72fdbcd507ea28760af9d3e91cc08cc0e9f086", kill_on_drop: false }` [INFO] [stderr] Compiling rustling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `emptyVec` [INFO] [stdout] --> src/collections/examples.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let emptyVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_emptyVec` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `nonemptyVec` [INFO] [stdout] --> src/collections/examples.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let nonemptyVec = vec![10,20,30]; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_nonemptyVec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `second` is never read [INFO] [stdout] --> src/collections/examples.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let mut second = anotherEmptyVec[1]; [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: variable does not need to be mutable [INFO] [stdout] --> src/collections/examples.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let mut z = &anotherEmptyVec[0]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | let x = "hello"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `m` [INFO] [stdout] --> src/main.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | let m = "immutable"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_m` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:60:13 [INFO] [stdout] | [INFO] [stdout] 60 | let mut y = "mutable"; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 63 | let z: u32 = "7".parse().expect("Not a number!"); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let a = 2.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let b: f32 = 2.0; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let c = true; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:60:9 [INFO] [stdout] | [INFO] [stdout] 60 | let mut y = "mutable"; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str` [INFO] [stdout] --> src/main.rs:95:9 [INFO] [stdout] | [INFO] [stdout] 95 | let str = if x <= 7 { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sq` [INFO] [stdout] --> src/main.rs:164:9 [INFO] [stdout] | [INFO] [stdout] 164 | let sq = Rectangle::square(20); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_sq` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessingGame` is never used [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn guessingGame() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `experiments` is never used [INFO] [stdout] --> src/main.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn experiments() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `someRandomNumber` is never used [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn someRandomNumber(factor: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `controlFlow` is never used [INFO] [stdout] --> src/main.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn controlFlow() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `User` is never constructed [INFO] [stdout] --> src/main.rs:112:8 [INFO] [stdout] | [INFO] [stdout] 112 | struct User { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> src/main.rs:120:8 [INFO] [stdout] | [INFO] [stdout] 120 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `area`, `canHold`, and `square` are never used [INFO] [stdout] --> src/main.rs:129:8 [INFO] [stdout] | [INFO] [stdout] 125 | impl Rectangle { [INFO] [stdout] | -------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 129 | fn area(&self) -> u32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 133 | fn canHold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 138 | fn square(dim: u32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `structs` is never used [INFO] [stdout] --> src/main.rs:143:4 [INFO] [stdout] | [INFO] [stdout] 143 | fn structs() { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createUser` is never used [INFO] [stdout] --> src/main.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createFromAnotherUser` is never used [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn createFromAnotherUser(user: User) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Point` is never constructed [INFO] [stdout] --> src/main.rs:184:8 [INFO] [stdout] | [INFO] [stdout] 184 | struct Point(i32, i32, i32); // tuple structs. no need for field names [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPoint` is never used [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn createPoint(x: i32, y: i32, z: i32) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyUnitLikeStruct` is never constructed [INFO] [stdout] --> src/main.rs:190:8 [INFO] [stdout] | [INFO] [stdout] 190 | struct MyUnitLikeStruct; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `guessingGame` should have a snake case name [INFO] [stdout] --> src/main.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn guessingGame() { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `guessing_game` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `secretNumber` should have a snake case name [INFO] [stdout] --> src/main.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | let secretNumber = rand::thread_rng().gen_range(1..=100); [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `secret_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `firstDay` should have a snake case name [INFO] [stdout] --> src/main.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | let firstDay = days[0]; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `first_day` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `someRandomNumber` should have a snake case name [INFO] [stdout] --> src/main.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn someRandomNumber(factor: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `some_random_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `controlFlow` should have a snake case name [INFO] [stdout] --> src/main.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn controlFlow() { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `control_flow` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `userName` should have a snake case name [INFO] [stdout] --> src/main.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | userName: String, [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: structure field `signInAmount` should have a snake case name [INFO] [stdout] --> src/main.rs:116:5 [INFO] [stdout] | [INFO] [stdout] 116 | signInAmount: u64, [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `sign_in_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `canHold` should have a snake case name [INFO] [stdout] --> src/main.rs:133:8 [INFO] [stdout] | [INFO] [stdout] 133 | fn canHold(&self, other: &Rectangle) -> bool { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `can_hold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createUser` should have a snake case name [INFO] [stdout] --> src/main.rs:167:4 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `create_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `userName` should have a snake case name [INFO] [stdout] --> src/main.rs:167:15 [INFO] [stdout] | [INFO] [stdout] 167 | fn createUser(userName: String, email: String) -> User { [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `user_name` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createFromAnotherUser` should have a snake case name [INFO] [stdout] --> src/main.rs:176:4 [INFO] [stdout] | [INFO] [stdout] 176 | fn createFromAnotherUser(user: User) -> User { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `create_from_another_user` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `createPoint` should have a snake case name [INFO] [stdout] --> src/main.rs:185:4 [INFO] [stdout] | [INFO] [stdout] 185 | fn createPoint(x: i32, y: i32, z: i32) -> Point { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `create_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorDemo` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn vectorDemo() { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `vector_demo` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `emptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let emptyVec: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to snake case: `empty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `nonemptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let nonemptyVec = vec![10,20,30]; [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `nonempty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `anotherEmptyVec` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut anotherEmptyVec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `another_empty_vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `mayBe` should have a snake case name [INFO] [stdout] --> src/collections/examples.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let mayBe = anotherEmptyVec.get(2); [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `may_be` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "1a1f3357d6f33b4a366491678b72fdbcd507ea28760af9d3e91cc08cc0e9f086", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1a1f3357d6f33b4a366491678b72fdbcd507ea28760af9d3e91cc08cc0e9f086", kill_on_drop: false }` [INFO] [stdout] 1a1f3357d6f33b4a366491678b72fdbcd507ea28760af9d3e91cc08cc0e9f086