[INFO] fetching crate basic_example 0.1.0... [INFO] checking basic_example-0.1.0 against master#0d37dca25a51fb900a402c94c8818ad1c2789e30 for pr-77526 [INFO] extracting crate basic_example 0.1.0 into /workspace/builds/worker-7/source [INFO] validating manifest of crates.io crate basic_example 0.1.0 on toolchain 0d37dca25a51fb900a402c94c8818ad1c2789e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate basic_example 0.1.0 [INFO] finished tweaking crates.io crate basic_example 0.1.0 [INFO] tweaked toml for crates.io crate basic_example 0.1.0 written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate crates.io crate basic_example 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 36276e9bf01a07bf3affb7677b9b1f5887747a10e3d5612f2438a4d1d7f7ca09 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "36276e9bf01a07bf3affb7677b9b1f5887747a10e3d5612f2438a4d1d7f7ca09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "36276e9bf01a07bf3affb7677b9b1f5887747a10e3d5612f2438a4d1d7f7ca09", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "36276e9bf01a07bf3affb7677b9b1f5887747a10e3d5612f2438a4d1d7f7ca09", kill_on_drop: false }` [INFO] [stdout] 36276e9bf01a07bf3affb7677b9b1f5887747a10e3d5612f2438a4d1d7f7ca09 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+0d37dca25a51fb900a402c94c8818ad1c2789e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3c2f938f53115cae418ffb62e878fa85d485e6f0e22330bc4cec0b1393462382 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "3c2f938f53115cae418ffb62e878fa85d485e6f0e22330bc4cec0b1393462382", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking basic_example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `cmp`, `hash` [INFO] [stdout] --> src/example/closures/mod.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{thread, cmp, hash}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cmp`, `hash` [INFO] [stdout] --> src/example/closures/mod.rs:1:19 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{thread, cmp, hash}; [INFO] [stdout] | ^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fix_incorrect_order` [INFO] [stdout] --> src/back_of_house.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fix_incorrect_order (){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cook_order` [INFO] [stdout] --> src/back_of_house.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn cook_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ImportantExcerpt` [INFO] [stdout] --> src/example/lifetime/example.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level` [INFO] [stdout] --> src/example/lifetime/example.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `announce_and_return_part` [INFO] [stdout] --> src/example/lifetime/example.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `shoes_in_my_size` [INFO] [stdout] --> src/example/iterator/mod.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn shoes_in_my_size(shoes: Vec, shoe_size: u32) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/example/iterator/mod.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | fn new() -> Counter { Counter{ count: 0 } } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> src/lib.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorMatch` should have a snake case name [INFO] [stdout] --> src/example/vector/example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn vectorMatch(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vector_match` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutilType` should have a snake case name [INFO] [stdout] --> src/example/vector/example.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mutilType() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mutil_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testStruct` should have a snake case name [INFO] [stdout] --> src/example/lifetime/example.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn testStruct(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `test_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order1` [INFO] [stdout] --> src/lib.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | let order1 = back_of_house::Appetizer::Soup; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `order2` [INFO] [stdout] --> src/lib.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let order2 = back_of_house::Appetizer::Salad; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_order2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> src/example/closures/mod.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | let v1 = c.value(1); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Formatter` [INFO] [stdout] --> src/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Formatter, Error}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Error`, `Formatter` [INFO] [stdout] --> src/main.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | use std::fmt::{Formatter, Error}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let f = std::fs::File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let f = std::fs::File::open("hello.txt").unwrap_or_else(|error| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `fix_incorrect_order` [INFO] [stdout] --> src/back_of_house.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn fix_incorrect_order (){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `cook_order` [INFO] [stdout] --> src/back_of_house.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn cook_order(){} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ImportantExcerpt` [INFO] [stdout] --> src/example/lifetime/example.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | struct ImportantExcerpt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `level` [INFO] [stdout] --> src/example/lifetime/example.rs:26:8 [INFO] [stdout] | [INFO] [stdout] 26 | fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `announce_and_return_part` [INFO] [stdout] --> src/example/lifetime/example.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `serve_order` [INFO] [stdout] --> src/lib.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn serve_order(){} [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `vectorMatch` should have a snake case name [INFO] [stdout] --> src/example/vector/example.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn vectorMatch(){ [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `vector_match` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutilType` should have a snake case name [INFO] [stdout] --> src/example/vector/example.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn mutilType() { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to snake case: `mutil_type` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `testStruct` should have a snake case name [INFO] [stdout] --> src/example/lifetime/example.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn testStruct(){ [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case: `test_struct` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.74s [INFO] running `Command { std: "docker" "inspect" "3c2f938f53115cae418ffb62e878fa85d485e6f0e22330bc4cec0b1393462382", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3c2f938f53115cae418ffb62e878fa85d485e6f0e22330bc4cec0b1393462382", kill_on_drop: false }` [INFO] [stdout] 3c2f938f53115cae418ffb62e878fa85d485e6f0e22330bc4cec0b1393462382