[INFO] cloning repository https://github.com/jonasthewolf/mrq [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jonasthewolf/mrq" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonasthewolf%2Fmrq", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonasthewolf%2Fmrq'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8a4c1f055ec0beb8917c382cebc72736f1d9165b [INFO] checking jonasthewolf/mrq/8a4c1f055ec0beb8917c382cebc72736f1d9165b against master#a2db9280539229a3b8a084a09886670a57bc7e9c for pr-147185 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjonasthewolf%2Fmrq" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jonasthewolf/mrq [INFO] finished tweaking git repo https://github.com/jonasthewolf/mrq [INFO] tweaked toml for git repo https://github.com/jonasthewolf/mrq written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jonasthewolf/mrq on toolchain a2db9280539229a3b8a084a09886670a57bc7e9c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jonasthewolf/mrq 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" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded synstructure v0.6.1 [INFO] [stderr] Downloaded failure v0.1.1 [INFO] [stderr] Downloaded rustc-demangle v0.1.8 [INFO] [stderr] Downloaded backtrace v0.3.8 [INFO] [stderr] Downloaded failure_derive v0.1.1 [INFO] [stderr] Downloaded itertools v0.7.8 [INFO] [stderr] Downloaded backtrace-sys v0.1.23 [INFO] [stderr] Downloaded codespan-reporting v0.1.3 [INFO] [stderr] Downloaded codespan v0.1.2 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0e85c720a7cb8f61c163bf500ae216d2f451d304413ec50d74ca6f79bbe2ccf [INFO] running `Command { std: "docker" "start" "-a" "d0e85c720a7cb8f61c163bf500ae216d2f451d304413ec50d74ca6f79bbe2ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0e85c720a7cb8f61c163bf500ae216d2f451d304413ec50d74ca6f79bbe2ccf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0e85c720a7cb8f61c163bf500ae216d2f451d304413ec50d74ca6f79bbe2ccf", kill_on_drop: false }` [INFO] [stdout] d0e85c720a7cb8f61c163bf500ae216d2f451d304413ec50d74ca6f79bbe2ccf [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+a2db9280539229a3b8a084a09886670a57bc7e9c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0d37167896991ee974d9c6fe489162be10d99bd4aa7aca873a945bb792d5c538 [INFO] running `Command { std: "docker" "start" "-a" "0d37167896991ee974d9c6fe489162be10d99bd4aa7aca873a945bb792d5c538", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking libc v0.2.42 [INFO] [stderr] Compiling cc v1.0.17 [INFO] [stderr] Checking cfg-if v0.1.3 [INFO] [stderr] Checking rustc-demangle v0.1.8 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking either v1.5.0 [INFO] [stderr] Checking ucd-util v0.1.1 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Checking unicode-width v0.1.5 [INFO] [stderr] Checking lazy_static v1.0.1 [INFO] [stderr] Checking termcolor v0.3.6 [INFO] [stderr] Checking bitflags v1.0.3 [INFO] [stderr] Checking utf8-ranges v1.0.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Checking glob v0.2.11 [INFO] [stderr] Checking log v0.4.2 [INFO] [stderr] Checking itertools v0.7.8 [INFO] [stderr] Checking regex-syntax v0.5.6 [INFO] [stderr] Checking textwrap v0.9.0 [INFO] [stderr] Checking unreachable v1.0.0 [INFO] [stderr] Checking thread_local v0.3.5 [INFO] [stderr] Compiling backtrace-sys v0.1.23 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Checking memchr v2.0.1 [INFO] [stderr] Checking atty v0.2.10 [INFO] [stderr] Checking clap v2.31.2 [INFO] [stderr] Checking aho-corasick v0.6.4 [INFO] [stderr] Checking backtrace v0.3.8 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking codespan v0.1.2 [INFO] [stderr] Checking codespan-reporting v0.1.3 [INFO] [stderr] Checking mrq v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error: could not compile `mrq` (bin "mrq") due to 4 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/checker.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification(file: &PathBuf, context: &mut RequirementContext) -> Result<(), io::Error> { [INFO] [stdout] | ------- has type `&mut RequirementContext<'2>` [INFO] [stdout] ... [INFO] [stdout] 123 | file : &file.clone().to_path_buf(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 132 | context.reqs.push(r); [INFO] [stdout] | -------------------- argument requires that borrow lasts for `'2` [INFO] [stdout] 133 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/checker.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification(file: &PathBuf, context: &mut RequirementContext) -> Result<(), io::Error> { [INFO] [stdout] | ------- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | has type `&mut RequirementContext<'2>` [INFO] [stdout] ... [INFO] [stdout] 132 | context.reqs.push(r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Vec>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification<'a>(file: &PathBuf, context: &'a mut RequirementContext<'a>) -> Result<(), io::Error> { [INFO] [stdout] | ++++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mrq` (bin "mrq" test) due to 4 previous errors [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/checker.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | for ref x in req_context.reqs { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 186 | let e = numbers.entry(x).or_insert((0, &x)); [INFO] [stdout] | ------- borrow later used here [INFO] [stdout] 187 | e.0 += 1; [INFO] [stdout] 188 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `req_context.reqs` [INFO] [stdout] --> src/checker.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 163 | for ref x in req_context.reqs { [INFO] [stdout] | ---------------- `req_context.reqs` moved due to this implicit call to `.into_iter()` [INFO] [stdout] ... [INFO] [stdout] 185 | for ref x in req_context.reqs { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `req_context.reqs` [INFO] [stdout] --> /rustc/a2db9280539229a3b8a084a09886670a57bc7e9c/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] = note: move occurs because `req_context.reqs` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] help: consider iterating over a slice of the `Vec>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 163 | for ref x in &req_context.reqs { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/checker.rs:123:25 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification(file: &PathBuf, context: &mut RequirementContext) -> Result<(), io::Error> { [INFO] [stdout] | ------- has type `&mut RequirementContext<'2>` [INFO] [stdout] ... [INFO] [stdout] 123 | file : &file.clone().to_path_buf(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] ... [INFO] [stdout] 132 | context.reqs.push(r); [INFO] [stdout] | -------------------- argument requires that borrow lasts for `'2` [INFO] [stdout] 133 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/checker.rs:132:9 [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification(file: &PathBuf, context: &mut RequirementContext) -> Result<(), io::Error> { [INFO] [stdout] | ------- - let's call the lifetime of this reference `'1` [INFO] [stdout] | | [INFO] [stdout] | has type `&mut RequirementContext<'2>` [INFO] [stdout] ... [INFO] [stdout] 132 | context.reqs.push(r); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'2` [INFO] [stdout] | [INFO] [stdout] = note: requirement occurs because of a mutable reference to `Vec>` [INFO] [stdout] = note: mutable references are invariant over their type parameter [INFO] [stdout] = help: see for more information about variance [INFO] [stdout] help: consider introducing a named lifetime parameter [INFO] [stdout] | [INFO] [stdout] 100 | fn parse_specification<'a>(file: &PathBuf, context: &'a mut RequirementContext<'a>) -> Result<(), io::Error> { [INFO] [stdout] | ++++ ++ ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> src/checker.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 185 | for ref x in req_context.reqs { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use [INFO] [stdout] 186 | let e = numbers.entry(x).or_insert((0, &x)); [INFO] [stdout] | ------- borrow later used here [INFO] [stdout] 187 | e.0 += 1; [INFO] [stdout] 188 | } [INFO] [stdout] | - temporary value is freed at the end of this statement [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0382]: use of moved value: `req_context.reqs` [INFO] [stdout] --> src/checker.rs:185:18 [INFO] [stdout] | [INFO] [stdout] 163 | for ref x in req_context.reqs { [INFO] [stdout] | ---------------- `req_context.reqs` moved due to this implicit call to `.into_iter()` [INFO] [stdout] ... [INFO] [stdout] 185 | for ref x in req_context.reqs { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ value used here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `req_context.reqs` [INFO] [stdout] --> /rustc/a2db9280539229a3b8a084a09886670a57bc7e9c/library/core/src/iter/traits/collect.rs:310:18 [INFO] [stdout] = note: move occurs because `req_context.reqs` has type `Vec>`, which does not implement the `Copy` trait [INFO] [stdout] help: consider iterating over a slice of the `Vec>`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 163 | for ref x in &req_context.reqs { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0382, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0d37167896991ee974d9c6fe489162be10d99bd4aa7aca873a945bb792d5c538", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0d37167896991ee974d9c6fe489162be10d99bd4aa7aca873a945bb792d5c538", kill_on_drop: false }` [INFO] [stdout] 0d37167896991ee974d9c6fe489162be10d99bd4aa7aca873a945bb792d5c538