[INFO] cloning repository https://github.com/chalmery/Rust_Learn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chalmery/Rust_Learn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchalmery%2FRust_Learn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchalmery%2FRust_Learn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 996360f930460993a5432e24fde9dce2b72f38ef [INFO] checking chalmery/Rust_Learn/996360f930460993a5432e24fde9dce2b72f38ef against try#04ea1e1f1a12cfa912c228ca278237d92d0bb6df for pr-148477-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchalmery%2FRust_Learn" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/chalmery/Rust_Learn [INFO] finished tweaking git repo https://github.com/chalmery/Rust_Learn [INFO] tweaked toml for git repo https://github.com/chalmery/Rust_Learn written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chalmery/Rust_Learn on toolchain 04ea1e1f1a12cfa912c228ca278237d92d0bb6df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chalmery/Rust_Learn 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" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cbb46a67280b289879e2512512f0a2a8363345d9a2cd315b1719d7c0334a9ba6 [INFO] running `Command { std: "docker" "start" "-a" "cbb46a67280b289879e2512512f0a2a8363345d9a2cd315b1719d7c0334a9ba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cbb46a67280b289879e2512512f0a2a8363345d9a2cd315b1719d7c0334a9ba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cbb46a67280b289879e2512512f0a2a8363345d9a2cd315b1719d7c0334a9ba6", kill_on_drop: false }` [INFO] [stdout] cbb46a67280b289879e2512512f0a2a8363345d9a2cd315b1719d7c0334a9ba6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+04ea1e1f1a12cfa912c228ca278237d92d0bb6df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 67dda7ef3e8023c862373f3a8c3486ba248654ba67124b95a4bdbde779cf500d [INFO] running `Command { std: "docker" "start" "-a" "67dda7ef3e8023c862373f3a8c3486ba248654ba67124b95a4bdbde779cf500d", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Checking getrandom v0.2.6 [INFO] [stderr] Checking rand_core v0.6.3 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust_learn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `News`, `Summary`, and `Tweet` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use l_trait::{News, Summary,Tweet}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `News`, `Summary`, and `Tweet` [INFO] [stdout] --> src/main.rs:2:15 [INFO] [stdout] | [INFO] [stdout] 2 | use l_trait::{News, Summary,Tweet}; [INFO] [stdout] | ^^^^ ^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/l_trait.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify1(item1: T, item2: T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/l_trait.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify2(item: impl Summary + Display) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/l_trait.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn notify3(item: T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/l_trait.rs:51:51 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [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/l_trait.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [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/l_trait.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [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/l_trait.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item2` [INFO] [stdout] --> src/l_trait.rs:41:38 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify1(item1: T, item2: T) { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_item2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/l_trait.rs:46:16 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify2(item: impl Summary + Display) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `item` [INFO] [stdout] --> src/l_trait.rs:48:38 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn notify3(item: T) {} [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_item` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/l_trait.rs:51:51 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [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/l_trait.rs:51:57 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [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/l_trait.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [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/l_trait.rs:55:24 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let result = largest(&num); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `car_res` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let car_res = largest(&chr); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_car_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_res` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let str_res = largest(&str); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let result = largest(&num); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `car_res` [INFO] [stdout] --> src/main.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let car_res = largest(&chr); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_car_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `str_res` [INFO] [stdout] --> src/main.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let str_res = largest(&str); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_str_res` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary` is never used [INFO] [stdout] --> src/l_trait.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `News` is never constructed [INFO] [stdout] --> src/l_trait.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct News { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/l_trait.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Tweet {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/l_trait.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn notify(item: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify1` is never used [INFO] [stdout] --> src/l_trait.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify1(item1: T, item2: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify2` is never used [INFO] [stdout] --> src/l_trait.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify2(item: impl Summary + Display) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/l_trait.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn notify3(item: T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sc` is never used [INFO] [stdout] --> src/l_trait.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sc2` is never used [INFO] [stdout] --> src/l_trait.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ret` is never used [INFO] [stdout] --> src/l_trait.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn ret() -> impl Summary { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/l_trait.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/l_trait.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Pair { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 77 | fn new (x: T, y:T) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/l_trait.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Pair { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 84 | fn cmp_display(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary` is never used [INFO] [stdout] --> src/l_trait.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait Summary { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `News` is never constructed [INFO] [stdout] --> src/l_trait.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct News { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tweet` is never constructed [INFO] [stdout] --> src/l_trait.rs:24:12 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct Tweet {} [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/l_trait.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn notify(item: T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify1` is never used [INFO] [stdout] --> src/l_trait.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn notify1(item1: T, item2: T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify2` is never used [INFO] [stdout] --> src/l_trait.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn notify2(item: impl Summary + Display) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/l_trait.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn notify3(item: T) {} [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sc` is never used [INFO] [stdout] --> src/l_trait.rs:51:8 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn sc(a: T, b: U) -> String { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sc2` is never used [INFO] [stdout] --> src/l_trait.rs:55:8 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn sc2(a: T, b: U) -> String [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ret` is never used [INFO] [stdout] --> src/l_trait.rs:65:8 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn ret() -> impl Summary { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/l_trait.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | struct Pair{ [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/l_trait.rs:77:8 [INFO] [stdout] | [INFO] [stdout] 76 | impl Pair { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 77 | fn new (x: T, y:T) -> Self{ [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `cmp_display` is never used [INFO] [stdout] --> src/l_trait.rs:84:8 [INFO] [stdout] | [INFO] [stdout] 83 | impl Pair { [INFO] [stdout] | ----------------------------------- method in this implementation [INFO] [stdout] 84 | fn cmp_display(&self){ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.13s [INFO] running `Command { std: "docker" "inspect" "67dda7ef3e8023c862373f3a8c3486ba248654ba67124b95a4bdbde779cf500d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "67dda7ef3e8023c862373f3a8c3486ba248654ba67124b95a4bdbde779cf500d", kill_on_drop: false }` [INFO] [stdout] 67dda7ef3e8023c862373f3a8c3486ba248654ba67124b95a4bdbde779cf500d