[INFO] cloning repository https://github.com/freezetheflame/rust-lifetime [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/freezetheflame/rust-lifetime" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffreezetheflame%2Frust-lifetime", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffreezetheflame%2Frust-lifetime'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e922bcd0943ff8c754c5e05e1f2a9fb9d30592a1 [INFO] checking freezetheflame/rust-lifetime against try#fafe42c59556a4233f03dd0d900b575a9afeece8 for pr-143764 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffreezetheflame%2Frust-lifetime" "/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/freezetheflame/rust-lifetime [INFO] finished tweaking git repo https://github.com/freezetheflame/rust-lifetime [INFO] tweaked toml for git repo https://github.com/freezetheflame/rust-lifetime written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/freezetheflame/rust-lifetime on toolchain fafe42c59556a4233f03dd0d900b575a9afeece8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/freezetheflame/rust-lifetime 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" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded require_lifetimes v0.3.0 [INFO] [stderr] Downloaded unicode-ident v1.0.13 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24ed0b66ebae8c3330abec3b2630183e163fc0b16080aa6f8d2eb9427814a288 [INFO] running `Command { std: "docker" "start" "-a" "24ed0b66ebae8c3330abec3b2630183e163fc0b16080aa6f8d2eb9427814a288", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24ed0b66ebae8c3330abec3b2630183e163fc0b16080aa6f8d2eb9427814a288", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24ed0b66ebae8c3330abec3b2630183e163fc0b16080aa6f8d2eb9427814a288", kill_on_drop: false }` [INFO] [stdout] 24ed0b66ebae8c3330abec3b2630183e163fc0b16080aa6f8d2eb9427814a288 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+fafe42c59556a4233f03dd0d900b575a9afeece8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 823f3b26fe0383bc5d66a06de645e4032a79210f4f226afa86de8e1ba9c01b3d [INFO] running `Command { std: "docker" "start" "-a" "823f3b26fe0383bc5d66a06de645e4032a79210f4f226afa86de8e1ba9c01b3d", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Checking soln07 v0.1.0 (/opt/rustwide/workdir/exercises/07_special_lifetimes/solutions) [INFO] [stderr] Checking ex07 v0.1.0 (/opt/rustwide/workdir/exercises/07_special_lifetimes/exercise) [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling require_lifetimes v0.3.0 [INFO] [stderr] Checking ex02 v0.1.0 (/opt/rustwide/workdir/exercises/02_lifetimes_explained/exercise) [INFO] [stderr] Checking ex05 v0.1.0 (/opt/rustwide/workdir/exercises/05_lifetimes_on_types/exercise) [INFO] [stderr] Checking soln04 v0.1.0 (/opt/rustwide/workdir/exercises/04_mutable_references_and_containers/solutions) [INFO] [stderr] Checking ex04 v0.1.0 (/opt/rustwide/workdir/exercises/04_mutable_references_and_containers/exercise) [INFO] [stderr] Checking soln02 v0.1.0 (/opt/rustwide/workdir/exercises/02_lifetimes_explained/solutions) [INFO] [stderr] Checking soln03 v0.1.0 (/opt/rustwide/workdir/exercises/03_lifetime_elision/solutions) [INFO] [stderr] Checking soln08 v0.1.0 (/opt/rustwide/workdir/exercises/08_finale/solutions) [INFO] [stderr] Checking ex03 v0.1.0 (/opt/rustwide/workdir/exercises/03_lifetime_elision/exercise) [INFO] [stderr] Checking ex08 v0.1.0 (/opt/rustwide/workdir/exercises/08_finale/exercise) [INFO] [stderr] Checking soln05 v0.1.0 (/opt/rustwide/workdir/exercises/05_lifetimes_on_types/solutions) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/05_lifetimes_on_types/exercise/src/lib.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | first_only: Vec<&str>, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ pub struct Difference<'a> { [INFO] [stdout] 5 ~ first_only: Vec<&'a str>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/05_lifetimes_on_types/exercise/src/lib.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | second_only: Vec<&str>, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ pub struct Difference<'a> { [INFO] [stdout] 5 | first_only: Vec<&str>, [INFO] [stdout] 6 ~ second_only: Vec<&'a str>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/05_lifetimes_on_types/exercise/src/lib.rs:5:21 [INFO] [stdout] | [INFO] [stdout] 5 | first_only: Vec<&str>, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ pub struct Difference<'a> { [INFO] [stdout] 5 ~ first_only: Vec<&'a str>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/05_lifetimes_on_types/exercise/src/lib.rs:6:22 [INFO] [stdout] | [INFO] [stdout] 6 | second_only: Vec<&str>, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ pub struct Difference<'a> { [INFO] [stdout] 5 | first_only: Vec<&str>, [INFO] [stdout] 6 ~ second_only: Vec<&'a str>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn new(text: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:54 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:69 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | RawText(&str), [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ enum MatcherToken<'a> { [INFO] [stdout] 5 | /// This is just text without anything special. [INFO] [stdout] 6 ~ RawText(&'a str), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | OneOfText(Vec<&str>), [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ enum MatcherToken<'a> { [INFO] [stdout] 5 | /// This is just text without anything special. [INFO] [stdout] ... [INFO] [stdout] 9 | /// `one`, `two` or `three` are the allowed strings. [INFO] [stdout] 10 ~ OneOfText(Vec<&'a str>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | text: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 17 ~ struct Matcher<'a> { [INFO] [stdout] 18 | /// This is the actual text of the matcher [INFO] [stdout] 19 ~ text: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ex05` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ex05` (lib test) due to 2 previous errors [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | fn new(text: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:30:18 [INFO] [stdout] | [INFO] [stdout] 30 | fn new(text: &str) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:40 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:54 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: In this function, all references must be annotated with a lifetime. [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:69 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:6:13 [INFO] [stdout] | [INFO] [stdout] 6 | RawText(&str), [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ enum MatcherToken<'a> { [INFO] [stdout] 5 | /// This is just text without anything special. [INFO] [stdout] 6 ~ RawText(&'a str), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:10:19 [INFO] [stdout] | [INFO] [stdout] 10 | OneOfText(Vec<&str>), [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 4 ~ enum MatcherToken<'a> { [INFO] [stdout] 5 | /// This is just text without anything special. [INFO] [stdout] ... [INFO] [stdout] 9 | /// `one`, `two` or `three` are the allowed strings. [INFO] [stdout] 10 ~ OneOfText(Vec<&'a str>), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:19:11 [INFO] [stdout] | [INFO] [stdout] 19 | text: &str, [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 17 ~ struct Matcher<'a> { [INFO] [stdout] 18 | /// This is the actual text of the matcher [INFO] [stdout] 19 ~ text: &'a str, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ex08` (bin "ex08") due to 7 previous errors; 2 warnings emitted [INFO] [stdout] warning: enum `MatcherToken` is never used [INFO] [stdout] --> exercises/08_finale/solutions/src/main.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum MatcherToken<'a> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Matcher` is never constructed [INFO] [stdout] --> exercises/08_finale/solutions/src/main.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | struct Matcher<'a> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `match_string` are never used [INFO] [stdout] --> exercises/08_finale/solutions/src/main.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 26 | impl<'a> Matcher<'a> { [INFO] [stdout] | -------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 30 | fn new(text: &'a str) -> Option> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 65 | fn match_string<'b, 'c>(&'b mut self, string: &'c str) -> Vec<(&'b MatcherToken<'a>, &'c str)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `text` [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 30 | fn new(text: &str) -> Option { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_text` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `string` [INFO] [stdout] --> exercises/08_finale/exercise/src/main.rs:37:32 [INFO] [stdout] | [INFO] [stdout] 37 | fn match_string(&mut self, string: &str) -> Vec<(&MatcherToken, &str)> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_string` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ex08` (bin "ex08" test) due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "823f3b26fe0383bc5d66a06de645e4032a79210f4f226afa86de8e1ba9c01b3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "823f3b26fe0383bc5d66a06de645e4032a79210f4f226afa86de8e1ba9c01b3d", kill_on_drop: false }` [INFO] [stdout] 823f3b26fe0383bc5d66a06de645e4032a79210f4f226afa86de8e1ba9c01b3d