[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#2c4819a380dbddb1f2a0f4405a49fb6ed90983ae for pr-152996 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffreezetheflame%2Frust-lifetime" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-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-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/freezetheflame/rust-lifetime on toolchain 2c4819a380dbddb1f2a0f4405a49fb6ed90983ae [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "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" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7b7b08d83a8e69bdcc4dd8ae540571935a0fc8641111601619aff638ab480f6 [INFO] running `Command { std: "docker" "start" "-a" "a7b7b08d83a8e69bdcc4dd8ae540571935a0fc8641111601619aff638ab480f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7b7b08d83a8e69bdcc4dd8ae540571935a0fc8641111601619aff638ab480f6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7b7b08d83a8e69bdcc4dd8ae540571935a0fc8641111601619aff638ab480f6", kill_on_drop: false }` [INFO] [stdout] a7b7b08d83a8e69bdcc4dd8ae540571935a0fc8641111601619aff638ab480f6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+2c4819a380dbddb1f2a0f4405a49fb6ed90983ae" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6e8edabac22bc58bad23c44a7da62ff9219e73cb98f0a8788494b429c9ef7dd2 [INFO] running `Command { std: "docker" "start" "-a" "6e8edabac22bc58bad23c44a7da62ff9219e73cb98f0a8788494b429c9ef7dd2", kill_on_drop: false }` [INFO] [stderr] Checking ex07 v0.1.0 (/opt/rustwide/workdir/exercises/07_special_lifetimes/exercise) [INFO] [stderr] Checking soln07 v0.1.0 (/opt/rustwide/workdir/exercises/07_special_lifetimes/solutions) [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling require_lifetimes v0.3.0 [INFO] [stderr] Checking soln05 v0.1.0 (/opt/rustwide/workdir/exercises/05_lifetimes_on_types/solutions) [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 ex08 v0.1.0 (/opt/rustwide/workdir/exercises/08_finale/exercise) [INFO] [stderr] Checking soln03 v0.1.0 (/opt/rustwide/workdir/exercises/03_lifetime_elision/solutions) [INFO] [stderr] Checking soln04 v0.1.0 (/opt/rustwide/workdir/exercises/04_mutable_references_and_containers/solutions) [INFO] [stderr] Checking soln08 v0.1.0 (/opt/rustwide/workdir/exercises/08_finale/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 ex03 v0.1.0 (/opt/rustwide/workdir/exercises/03_lifetime_elision/exercise) [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] 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] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [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)]` (part of `#[warn(unused)]`) 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] [stderr] error: could not compile `ex05` (lib) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` (part of `#[warn(unused)]`) 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] [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] 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)]` (part of `#[warn(unused)]`) 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] [stdout] For more information about this error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ex05` (lib test) due to 2 previous errors [INFO] [stderr] error: could not compile `ex08` (bin "ex08") due to 7 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "6e8edabac22bc58bad23c44a7da62ff9219e73cb98f0a8788494b429c9ef7dd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6e8edabac22bc58bad23c44a7da62ff9219e73cb98f0a8788494b429c9ef7dd2", kill_on_drop: false }` [INFO] [stdout] 6e8edabac22bc58bad23c44a7da62ff9219e73cb98f0a8788494b429c9ef7dd2