[INFO] cloning repository https://github.com/zgblog/rust-study [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zgblog/rust-study" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzgblog%2Frust-study", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzgblog%2Frust-study'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 979810785a1ae2349cfb7e0529b386adef18ccd9 [INFO] testing zgblog/rust-study against master#c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 for pr-146098-7 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzgblog%2Frust-study" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/zgblog/rust-study [INFO] finished tweaking git repo https://github.com/zgblog/rust-study [INFO] tweaked toml for git repo https://github.com/zgblog/rust-study written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/zgblog/rust-study on toolchain c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/zgblog/rust-study 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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe7176aed2d5810825f983a41a4b4b6991e7347e75654603d1382675759ce507 [INFO] running `Command { std: "docker" "start" "-a" "fe7176aed2d5810825f983a41a4b4b6991e7347e75654603d1382675759ce507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe7176aed2d5810825f983a41a4b4b6991e7347e75654603d1382675759ce507", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe7176aed2d5810825f983a41a4b4b6991e7347e75654603d1382675759ce507", kill_on_drop: false }` [INFO] [stdout] fe7176aed2d5810825f983a41a4b4b6991e7347e75654603d1382675759ce507 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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" "+c90bcb9571b7aab0d8beaa2ce8a998ffaf079d38" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5b53f585eef3b6e7a0f8a3e4fe8a1414b7b611c5fb486ffda5983839ec3da6bf [INFO] running `Command { std: "docker" "start" "-a" "5b53f585eef3b6e7a0f8a3e4fe8a1414b7b611c5fb486ffda5983839ec3da6bf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.155 [INFO] [stderr] Compiling getrandom v0.2.15 [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 study v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `seasonal_fruit` is never read [INFO] [stdout] --> src/lib.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Breakfast{ [INFO] [stdout] | --------- field in this struct [INFO] [stdout] 3 | pub toast: String, [INFO] [stdout] 4 | seasonal_fruit: String [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Appetizer` is never used [INFO] [stdout] --> src/lib.rs:16:14 [INFO] [stdout] | [INFO] [stdout] 16 | pub enum Appetizer {} [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `seat_at_table` is never used [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | fn seat_at_table() {} [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_order` is never used [INFO] [stdout] --> src/lib.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | fn take_order() {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_payment` is never used [INFO] [stdout] --> src/lib.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 29 | fn take_payment() {} [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `todo` is never used [INFO] [stdout] --> src/back_of_house/hosting.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn todo() {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `len` [INFO] [stdout] --> src/bin/borrow.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | let len = update(&mut s2); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_len` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Cons` and `Nil` [INFO] [stdout] --> src/bin/smartpointer/refcell_test.rs:77:19 [INFO] [stdout] | [INFO] [stdout] 77 | use crate::List::{Cons, Nil}; [INFO] [stdout] | ^^^^ ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `refcell` [INFO] [stdout] --> src/bin/smartpointer/refcell_test.rs:94:2 [INFO] [stdout] | [INFO] [stdout] 94 | } [INFO] [stdout] | ^ consider adding a `main` function to `src/bin/smartpointer/refcell_test.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Alabama` is never constructed [INFO] [stdout] --> src/bin/match_test.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | enum UsState { [INFO] [stdout] | ------- variant in this enum [INFO] [stdout] 3 | Alabama, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UsState` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Penny`, `Nickel`, and `Dime` are never constructed [INFO] [stdout] --> src/bin/match_test.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | enum Coin { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 7 | Penny, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 8 | Nickel, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 9 | Dime, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] [INFO] [stderr] error: could not compile `study` (bin "refcell") due to 1 previous error; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> src/bin/smartpointer/box_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let list = Cons(1, [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/bin/function.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let x = 5; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> src/bin/smartpointer/box_test.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_list` is never used [INFO] [stdout] --> src/bin/smartpointer/box_test.rs:17:4 [INFO] [stdout] | [INFO] [stdout] 17 | fn box_list() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `number2` [INFO] [stdout] --> src/bin/function.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let number2 = if true {5} else {6}; [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_number2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> src/bin/enum_test.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let four = IpAddrKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> src/bin/enum_test.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let six = IpAddrKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `home` [INFO] [stdout] --> src/bin/enum_test.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let home = IpAddr { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_home` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `loopback` [INFO] [stdout] --> src/bin/enum_test.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | let loopback = IpAddr { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_loopback` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ip_kind` [INFO] [stdout] --> src/bin/enum_test.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 37 | fn route(ip_kind: IpAddrKind) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ip_kind` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `IpAddrKind2` is never used [INFO] [stdout] --> src/bin/enum_test.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum IpAddrKind2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `call` is never used [INFO] [stdout] --> src/bin/enum_test.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl IpAddrKind2 { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] 12 | fn call(self) {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> src/bin/enum_test.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | struct IpAddr { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 16 | kind: IpAddrKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | address: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `route` is never used [INFO] [stdout] --> src/bin/enum_test.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn route(ip_kind: IpAddrKind) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `scores` [INFO] [stdout] --> src/bin/collect/map_test.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let scores: HashMap<_, _> = teams.iter().zip(init_scores.iter()).collect(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_scores` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary_2` should have an upper camel case name [INFO] [stdout] --> src/bin/generics/trait_test.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | trait Summary_2 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Summary2` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary_3` should have an upper camel case name [INFO] [stdout] --> src/bin/generics/trait_test.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | trait Summary_3 { [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper camel case: `Summary3` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `study` (bin "lifetime") due to 3 previous errors; 1 warning emitted [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0615]: attempted to take value of method `len` on type `&'a str` [INFO] [stdout] --> src/bin/generics/lifetime_test.rs:58:20 [INFO] [stdout] | [INFO] [stdout] 58 | if x.len() > y.len { [INFO] [stdout] | ^^^ method, not a field [INFO] [stdout] | [INFO] [stdout] help: use parentheses to call the method [INFO] [stdout] | [INFO] [stdout] 58 | if x.len() > y.len() { [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:28:13 [INFO] [stdout] | [INFO] [stdout] 28 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 8 - Cons(i32, Rc), [INFO] [stdout] 8 + Cons((), ()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rc_test1` is never used [INFO] [stdout] --> src/bin/smartpointer/rc_test.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn rc_test1() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/bin/generics/gen_test.rs:90:11 [INFO] [stdout] | [INFO] [stdout] 90 | if(self.x >= self.y) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 90 - if(self.x >= self.y) { [INFO] [stdout] 90 + if self.x >= self.y { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/generics/lifetime_test.rs:59:9 [INFO] [stdout] | [INFO] [stdout] 56 | fn longest_with_an_announcement<'a, T> (x: &'a str, y: &'a str, ann: T) where T: Display { [INFO] [stdout] | - help: try adding a return type: `-> &'a str` [INFO] [stdout] ... [INFO] [stdout] 59 | x [INFO] [stdout] | ^ expected `()`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/bin/generics/lifetime_test.rs:61:9 [INFO] [stdout] | [INFO] [stdout] 56 | fn longest_with_an_announcement<'a, T> (x: &'a str, y: &'a str, ann: T) where T: Display { [INFO] [stdout] | - help: try adding a return type: `-> &'a str` [INFO] [stdout] ... [INFO] [stdout] 61 | y [INFO] [stdout] | ^ expected `()`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/bin/generics/lifetime_test.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | let i = ImportantExcerpt {part: first_sentence}; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0615. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p3` [INFO] [stdout] --> src/bin/generics/gen_test.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | let p3 = p1.mixup(p2); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p3` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_i32` is never used [INFO] [stdout] --> src/bin/generics/gen_test.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn largest_i32(list: &[i32]) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `largest_char` is never used [INFO] [stdout] --> src/bin/generics/gen_test.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn largest_char(list: &[char]) -> char { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `x` is never used [INFO] [stdout] --> src/bin/generics/gen_test.rs:58:8 [INFO] [stdout] | [INFO] [stdout] 57 | impl Point { [INFO] [stdout] | ---------------------- method in this implementation [INFO] [stdout] 58 | fn x(&self) -> &T { [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Pair` is never constructed [INFO] [stdout] --> src/bin/generics/gen_test.rs:75:8 [INFO] [stdout] | [INFO] [stdout] 75 | struct Pair { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/bin/generics/gen_test.rs:81:8 [INFO] [stdout] | [INFO] [stdout] 80 | impl Pair { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 81 | 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/bin/generics/gen_test.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 88 | impl Pair { [INFO] [stdout] | ------------------------------------- method in this implementation [INFO] [stdout] 89 | fn cmp_display(&self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/bin/generics/trait_test.rs:90:19 [INFO] [stdout] | [INFO] [stdout] 90 | fn notify_5(t: T, u: U) where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/bin/generics/trait_test.rs:90:25 [INFO] [stdout] | [INFO] [stdout] 90 | fn notify_5(t: T, u: U) where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary_2` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:23:7 [INFO] [stdout] | [INFO] [stdout] 23 | trait Summary_2 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Summary_3` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 29 | trait Summary_3 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn notify(item: impl Summary) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_2` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn notify_2(item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_3` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:79:4 [INFO] [stdout] | [INFO] [stdout] 79 | fn notify_3(item: impl Summary + Display) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_4` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:83:4 [INFO] [stdout] | [INFO] [stdout] 83 | fn notify_4(item: T) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify_5` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:90:4 [INFO] [stdout] | [INFO] [stdout] 90 | fn notify_5(t: T, u: U) where T: Display + Clone, U: Clone + Debug { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return_summarizable` is never used [INFO] [stdout] --> src/bin/generics/trait_test.rs:97:4 [INFO] [stdout] | [INFO] [stdout] 97 | fn return_summarizable() -> impl Summary { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "5b53f585eef3b6e7a0f8a3e4fe8a1414b7b611c5fb486ffda5983839ec3da6bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b53f585eef3b6e7a0f8a3e4fe8a1414b7b611c5fb486ffda5983839ec3da6bf", kill_on_drop: false }` [INFO] [stdout] 5b53f585eef3b6e7a0f8a3e4fe8a1414b7b611c5fb486ffda5983839ec3da6bf