[INFO] fetching crate basic_example 0.1.0... [INFO] checking basic_example-0.1.0 against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] extracting crate basic_example 0.1.0 into /workspace/builds/worker-10/source [INFO] validating manifest of crates.io crate basic_example 0.1.0 on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", 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-10/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" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 836d35c9c9c46685a640ea39a02d3b23d4b420ff5c6013d32831244ac2b90a59 [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" "836d35c9c9c46685a640ea39a02d3b23d4b420ff5c6013d32831244ac2b90a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "836d35c9c9c46685a640ea39a02d3b23d4b420ff5c6013d32831244ac2b90a59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "836d35c9c9c46685a640ea39a02d3b23d4b420ff5c6013d32831244ac2b90a59", kill_on_drop: false }` [INFO] [stdout] 836d35c9c9c46685a640ea39a02d3b23d4b420ff5c6013d32831244ac2b90a59 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9b5a9cd65929f72c09b028646822cbbd7bcc6078276f6326e9e29e56675bc1db [INFO] running `Command { std: "docker" "start" "-a" "9b5a9cd65929f72c09b028646822cbbd7bcc6078276f6326e9e29e56675bc1db", kill_on_drop: false }` [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: 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: 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: 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: `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] [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 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: 2 warnings emitted [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] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.63s [INFO] running `Command { std: "docker" "inspect" "9b5a9cd65929f72c09b028646822cbbd7bcc6078276f6326e9e29e56675bc1db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b5a9cd65929f72c09b028646822cbbd7bcc6078276f6326e9e29e56675bc1db", kill_on_drop: false }` [INFO] [stdout] 9b5a9cd65929f72c09b028646822cbbd7bcc6078276f6326e9e29e56675bc1db