[INFO] cloning repository https://github.com/initinll-rust/learning-generics-traits-lifetimes [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/initinll-rust/learning-generics-traits-lifetimes" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finitinll-rust%2Flearning-generics-traits-lifetimes", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finitinll-rust%2Flearning-generics-traits-lifetimes'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] d0d8913f8e79f3ae65fc4c002a7f51d92951dc90 [INFO] checking initinll-rust/learning-generics-traits-lifetimes against try#121a90d34197f711021eeb158e7f4184b8be8ceb for pr-140313 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finitinll-rust%2Flearning-generics-traits-lifetimes" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes on toolchain 121a90d34197f711021eeb158e7f4184b8be8ceb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes [INFO] finished tweaking git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes [INFO] tweaked toml for git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes 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" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "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-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 748975441b10a8ea6f58ef2d0a6ce473aa24cf03a2d4fab0f9e3599b12ab02c6 [INFO] running `Command { std: "docker" "start" "-a" "748975441b10a8ea6f58ef2d0a6ce473aa24cf03a2d4fab0f9e3599b12ab02c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "748975441b10a8ea6f58ef2d0a6ce473aa24cf03a2d4fab0f9e3599b12ab02c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "748975441b10a8ea6f58ef2d0a6ce473aa24cf03a2d4fab0f9e3599b12ab02c6", kill_on_drop: false }` [INFO] [stdout] 748975441b10a8ea6f58ef2d0a6ce473aa24cf03a2d4fab0f9e3599b12ab02c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+121a90d34197f711021eeb158e7f4184b8be8ceb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b37a59dddfb452ece5b6ea64db9219642f19c51b54342f766ace4bb028564c16 [INFO] running `Command { std: "docker" "start" "-a" "b37a59dddfb452ece5b6ea64db9219642f19c51b54342f766ace4bb028564c16", kill_on_drop: false }` [INFO] [stderr] Checking learning-generics-traits-lifetimes v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/concepts/traits.rs:72:57 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/concepts/traits.rs:72:64 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/concepts/traits.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/concepts/traits.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/concepts/traits.rs:72:57 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/concepts/traits.rs:72:64 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/concepts/traits.rs:75:25 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `u` [INFO] [stdout] --> src/concepts/traits.rs:75:32 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_u` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let t = returns_summarizable(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/main.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | let t = returns_summarizable(); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/concepts/generics.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct PointA { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 44 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 45 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `PointA` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headline`, `author`, and `content` are never read [INFO] [stdout] --> src/concepts/traits.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | pub headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub location: String, [INFO] [stdout] 16 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewsArticle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/concepts/traits.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | pub username: String, [INFO] [stdout] 29 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub retweet: bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tweet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/concepts/traits.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn notify3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify4` is never used [INFO] [stdout] --> src/concepts/traits.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn notify4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify5` is never used [INFO] [stdout] --> src/concepts/traits.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn notify5(item: &(impl Summary + Display)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify6` is never used [INFO] [stdout] --> src/concepts/traits.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn notify6(item: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function1` is never used [INFO] [stdout] --> src/concepts/traits.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function2` is never used [INFO] [stdout] --> src/concepts/traits.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/concepts/lifetimes.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 15 | pub part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 34 | pub fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `announce_and_return_part` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 41 | pub fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/concepts/generics.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct PointA { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 44 | pub x: T, [INFO] [stdout] | ^ [INFO] [stdout] 45 | pub y: U, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `PointA` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `headline`, `author`, and `content` are never read [INFO] [stdout] --> src/concepts/traits.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct NewsArticle { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 14 | pub headline: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 15 | pub location: String, [INFO] [stdout] 16 | pub author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 17 | pub content: String [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NewsArticle` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `content`, `reply`, and `retweet` are never read [INFO] [stdout] --> src/concepts/traits.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 27 | pub struct Tweet { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 28 | pub username: String, [INFO] [stdout] 29 | pub content: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 30 | pub reply: bool, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 31 | pub retweet: bool [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Tweet` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify3` is never used [INFO] [stdout] --> src/concepts/traits.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn notify3(item1: &impl Summary, item2: &impl Summary) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify4` is never used [INFO] [stdout] --> src/concepts/traits.rs:57:8 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn notify4(item1: &T, item2: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify5` is never used [INFO] [stdout] --> src/concepts/traits.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn notify5(item: &(impl Summary + Display)) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `notify6` is never used [INFO] [stdout] --> src/concepts/traits.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn notify6(item: &T) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function1` is never used [INFO] [stdout] --> src/concepts/traits.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn some_function1(t: &T, u: &U) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `some_function2` is never used [INFO] [stdout] --> src/concepts/traits.rs:75:4 [INFO] [stdout] | [INFO] [stdout] 75 | fn some_function2(t: &T, u: &U) -> () [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `part` is never read [INFO] [stdout] --> src/concepts/lifetimes.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct ImportantExcerpt<'a> { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 15 | pub part: &'a str, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ImportantExcerpt` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `level` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 33 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 34 | pub fn level(&self) -> i32 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `announce_and_return_part` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 40 | impl<'a> ImportantExcerpt<'a> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] 41 | pub fn announce_and_return_part(&self, announcement: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `longest_with_an_announcement` is never used [INFO] [stdout] --> src/concepts/lifetimes.rs:51:4 [INFO] [stdout] | [INFO] [stdout] 51 | fn longest_with_an_announcement<'a, T>(x: &'a str, y: &'a str, ann: T) -> &'a str [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.09s [INFO] running `Command { std: "docker" "inspect" "b37a59dddfb452ece5b6ea64db9219642f19c51b54342f766ace4bb028564c16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b37a59dddfb452ece5b6ea64db9219642f19c51b54342f766ace4bb028564c16", kill_on_drop: false }` [INFO] [stdout] b37a59dddfb452ece5b6ea64db9219642f19c51b54342f766ace4bb028564c16