[INFO] fetching crate rustlab 0.1.0... [INFO] checking rustlab-0.1.0 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate rustlab 0.1.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate rustlab 0.1.0 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate rustlab 0.1.0 [INFO] finished tweaking crates.io crate rustlab 0.1.0 [INFO] tweaked toml for crates.io crate rustlab 0.1.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate rustlab 0.1.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3dc603e2d2caec4c15a66dd1ea7e9791c24a341be8002a54a5f29e14a7dbc19c [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" "3dc603e2d2caec4c15a66dd1ea7e9791c24a341be8002a54a5f29e14a7dbc19c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3dc603e2d2caec4c15a66dd1ea7e9791c24a341be8002a54a5f29e14a7dbc19c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3dc603e2d2caec4c15a66dd1ea7e9791c24a341be8002a54a5f29e14a7dbc19c", kill_on_drop: false }` [INFO] [stdout] 3dc603e2d2caec4c15a66dd1ea7e9791c24a341be8002a54a5f29e14a7dbc19c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5ef2132fa2f8553a98cd294f07f957802fd3e835d02e2269193e5406bec48b77 [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" "5ef2132fa2f8553a98cd294f07f957802fd3e835d02e2269193e5406bec48b77", kill_on_drop: false }` [INFO] [stderr] Checking rustlab v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/hashmap_base.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/option_base.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/string_base.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/struct_base.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/struct_base.rs:56:20 [INFO] [stdout] | [INFO] [stdout] 56 | struct A {}; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/collection_vector.rs:40:6 [INFO] [stdout] | [INFO] [stdout] 40 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_i32` [INFO] [stdout] --> src/generic_base.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest` [INFO] [stdout] --> src/generic_base.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn largest(list: &[T]) -> T { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Option` [INFO] [stdout] --> src/generic_base.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> src/generic_base.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_x` [INFO] [stdout] --> src/generic_base.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | fn get_x(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_y` [INFO] [stdout] --> src/generic_base.rs:43:8 [INFO] [stdout] | [INFO] [stdout] 43 | fn get_y(&self) -> &T { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point2` [INFO] [stdout] --> src/generic_base.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | struct Point2 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `creat_point` [INFO] [stdout] --> src/generic_base.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn creat_point(self, other: Point2) -> Point2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Dog` [INFO] [stdout] --> src/struct_base.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Dog { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `square` [INFO] [stdout] --> src/fn_base.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn square>(x: T, y: T) -> T { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `gcd` [INFO] [stdout] --> src/fn_base.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn gcd(a: u32, b: u32) -> u32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `show` [INFO] [stdout] --> src/fn_base.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 21 | fn show(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_debug` [INFO] [stdout] --> src/generic_bound.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn print_debug(t: &T) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `area` [INFO] [stdout] --> src/generic_bound.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn area(t: &T) -> f64 { t.area() } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Turkey` [INFO] [stdout] --> src/generic_bound.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Turkey; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `red` [INFO] [stdout] --> src/generic_bound.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn red(_: &T) -> &'static str { "red" } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `blue` [INFO] [stdout] --> src/generic_bound.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn blue(_: &T) -> &'static str { "blue" } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/generic_bound.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compare_prints` [INFO] [stdout] --> src/generic_bound.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn compare_prints(t: &T) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `compare_types` [INFO] [stdout] --> src/generic_bound.rs:88:4 [INFO] [stdout] | [INFO] [stdout] 88 | fn compare_types(t: &T, u: &U) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Val` [INFO] [stdout] --> src/generic_impl.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Val { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `GenVal` [INFO] [stdout] --> src/generic_impl.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct GenVal { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/generic_impl.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | fn value(&self) -> &f64 { &self.val } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `value` [INFO] [stdout] --> src/generic_impl.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn value(&self) -> &T { &self.gen_val } [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Empty` [INFO] [stdout] --> src/trait_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Empty; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Null` [INFO] [stdout] --> src/trait_test.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Null; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_number` [INFO] [stdout] --> src/option_base.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | let some_number = Some(5); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_number` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_string` [INFO] [stdout] --> src/option_base.rs:8:13 [INFO] [stdout] | [INFO] [stdout] 8 | let some_string = Some(String::from("a string")); [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `absent_number` [INFO] [stdout] --> src/option_base.rs:9:13 [INFO] [stdout] | [INFO] [stdout] 9 | let absent_number: Option = None; [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_absent_number` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/struct_base.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let b = Point(30, 11); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/fn_base.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let a: i32 = square(37, 41); [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/fn_base.rs:36:13 [INFO] [stdout] | [INFO] [stdout] 36 | let b: f64 = square(37.2, 41.1); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v` [INFO] [stdout] --> src/collection_vector.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut v: Vec = Vec::new(); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_v` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v1` [INFO] [stdout] --> src/collection_vector.rs:11:13 [INFO] [stdout] | [INFO] [stdout] 11 | let v1 = vec![1, 2, 3]; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/collection_vector.rs:42:9 [INFO] [stdout] | [INFO] [stdout] 42 | let c = vec![ [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/collection_vector.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | let mut v: Vec = Vec::new(); [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: variable does not need to be mutable [INFO] [stdout] --> src/collection_vector.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let mut v = vec![1, 2, 3, 4, 5]; [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `largest_i32` [INFO] [stdout] --> src/generic_base.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Option` [INFO] [stdout] --> src/generic_base.rs:21:6 [INFO] [stdout] | [INFO] [stdout] 21 | enum Option { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Result` [INFO] [stdout] --> src/generic_base.rs:26:6 [INFO] [stdout] | [INFO] [stdout] 26 | enum Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Dog` [INFO] [stdout] --> src/struct_base.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Dog { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `A` [INFO] [stdout] --> src/struct_base.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | struct A {}; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_weight` [INFO] [stdout] --> src/struct_base.rs:77:16 [INFO] [stdout] | [INFO] [stdout] 77 | fn get_weight(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_height` [INFO] [stdout] --> src/struct_base.rs:81:16 [INFO] [stdout] | [INFO] [stdout] 81 | fn get_height(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Turkey` [INFO] [stdout] --> src/generic_bound.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | struct Turkey; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `red` [INFO] [stdout] --> src/generic_bound.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn red(_: &T) -> &'static str { "red" } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `blue` [INFO] [stdout] --> src/generic_bound.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn blue(_: &T) -> &'static str { "blue" } [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `main` [INFO] [stdout] --> src/generic_bound.rs:67:4 [INFO] [stdout] | [INFO] [stdout] 67 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.29s [INFO] running `Command { std: "docker" "inspect" "5ef2132fa2f8553a98cd294f07f957802fd3e835d02e2269193e5406bec48b77", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5ef2132fa2f8553a98cd294f07f957802fd3e835d02e2269193e5406bec48b77", kill_on_drop: false }` [INFO] [stdout] 5ef2132fa2f8553a98cd294f07f957802fd3e835d02e2269193e5406bec48b77