[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 master#ecb170afc878648c3ae355dbd596c8e4b6f7ebdc for pr-139022 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Finitinll-rust%2Flearning-generics-traits-lifetimes" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/initinll-rust/learning-generics-traits-lifetimes on toolchain ecb170afc878648c3ae355dbd596c8e4b6f7ebdc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "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-3-tc1/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" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 10753a5e3b87ddf02edd5d882567166c1707018108a8c479ed45cd45a9b701a7 [INFO] running `Command { std: "docker" "start" "-a" "10753a5e3b87ddf02edd5d882567166c1707018108a8c479ed45cd45a9b701a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "10753a5e3b87ddf02edd5d882567166c1707018108a8c479ed45cd45a9b701a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10753a5e3b87ddf02edd5d882567166c1707018108a8c479ed45cd45a9b701a7", kill_on_drop: false }` [INFO] [stdout] 10753a5e3b87ddf02edd5d882567166c1707018108a8c479ed45cd45a9b701a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 39bd2f55ede52a48f8ef477b5a62d42c9d795b806e53618362fae3b017e884ab [INFO] running `Command { std: "docker" "start" "-a" "39bd2f55ede52a48f8ef477b5a62d42c9d795b806e53618362fae3b017e884ab", 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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.20s [INFO] running `Command { std: "docker" "inspect" "39bd2f55ede52a48f8ef477b5a62d42c9d795b806e53618362fae3b017e884ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "39bd2f55ede52a48f8ef477b5a62d42c9d795b806e53618362fae3b017e884ab", kill_on_drop: false }` [INFO] [stdout] 39bd2f55ede52a48f8ef477b5a62d42c9d795b806e53618362fae3b017e884ab