[INFO] cloning repository https://github.com/eggsontoast1672/eva [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/eggsontoast1672/eva" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggsontoast1672%2Feva", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggsontoast1672%2Feva'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a2957bd0b4efb15945f82a47b6cca4148adc0101 [INFO] checking eggsontoast1672/eva against try#ed606620234c6b50f2414162c4bbabd5f4a925f3 for pr-147995 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Feggsontoast1672%2Feva" "/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/eggsontoast1672/eva [INFO] finished tweaking git repo https://github.com/eggsontoast1672/eva [INFO] tweaked toml for git repo https://github.com/eggsontoast1672/eva written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/eggsontoast1672/eva on toolchain ed606620234c6b50f2414162c4bbabd5f4a925f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/eggsontoast1672/eva 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" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "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-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d176758039f8e09db99006e55c42457c26271f9f598e454ae01f260bbbba1cfa [INFO] running `Command { std: "docker" "start" "-a" "d176758039f8e09db99006e55c42457c26271f9f598e454ae01f260bbbba1cfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d176758039f8e09db99006e55c42457c26271f9f598e454ae01f260bbbba1cfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d176758039f8e09db99006e55c42457c26271f9f598e454ae01f260bbbba1cfa", kill_on_drop: false }` [INFO] [stdout] d176758039f8e09db99006e55c42457c26271f9f598e454ae01f260bbbba1cfa [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+ed606620234c6b50f2414162c4bbabd5f4a925f3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 438d3509e4c1c57d7496d155458c30269b058e8181a0910a086e17b52cf1f3f5 [INFO] running `Command { std: "docker" "start" "-a" "438d3509e4c1c57d7496d155458c30269b058e8181a0910a086e17b52cf1f3f5", kill_on_drop: false }` [INFO] [stderr] Checking eva v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `source` [INFO] [stdout] --> src/lexer.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | / Self { [INFO] [stdout] 23 | | current: 0, [INFO] [stdout] 24 | | source: source.chars().peekable(), [INFO] [stdout] | | ------ `source` is borrowed here [INFO] [stdout] 25 | | start: 0, [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing function parameter `source` [INFO] [stdout] --> src/lexer.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | / Self { [INFO] [stdout] 23 | | current: 0, [INFO] [stdout] 24 | | source: source.chars().peekable(), [INFO] [stdout] | | ------ `source` is borrowed here [INFO] [stdout] 25 | | start: 0, [INFO] [stdout] 26 | | } [INFO] [stdout] | |_________^ returns a value referencing data owned by the current function [INFO] [stdout] | [INFO] [stdout] = help: use `.collect()` to allocate the iterator [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.source` which is behind a mutable reference [INFO] [stdout] --> src/lexer.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = self.source.take_while(|c| { [INFO] [stdout] | ______________________^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | move occurs because `self.source` has type `Peekable>`, which does not implement the `Copy` trait [INFO] [stdout] 31 | | *c != '(' && *c != ')' && !c.is_ascii_whitespace() [INFO] [stdout] 32 | | }).collect::(); [INFO] [stdout] | |__________- `self.source` moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `take_while` takes ownership of the receiver `self`, which moves `self.source` [INFO] [stdout] --> /rustc/ed606620234c6b50f2414162c4bbabd5f4a925f3/library/core/src/iter/traits/iterator.rs:1199:22 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = > as Clone>::clone(&self.source).take_while(|c| { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = self.source.clone().take_while(|c| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.source` which is behind a mutable reference [INFO] [stdout] --> src/lexer.rs:30:22 [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = self.source.take_while(|c| { [INFO] [stdout] | ______________________^^^^^^^^^^^_- [INFO] [stdout] | | | [INFO] [stdout] | | move occurs because `self.source` has type `Peekable>`, which does not implement the `Copy` trait [INFO] [stdout] 31 | | *c != '(' && *c != ')' && !c.is_ascii_whitespace() [INFO] [stdout] 32 | | }).collect::(); [INFO] [stdout] | |__________- `self.source` moved due to this method call [INFO] [stdout] | [INFO] [stdout] note: `take_while` takes ownership of the receiver `self`, which moves `self.source` [INFO] [stdout] --> /rustc/ed606620234c6b50f2414162c4bbabd5f4a925f3/library/core/src/iter/traits/iterator.rs:1199:22 [INFO] [stdout] help: you can `clone` the value and consume it, but this might not be your desired behavior [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = > as Clone>::clone(&self.source).take_while(|c| { [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++ + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 30 | let lexeme = self.source.clone().take_while(|c| { [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0515. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `eva` (bin "eva" test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `eva` (bin "eva") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "438d3509e4c1c57d7496d155458c30269b058e8181a0910a086e17b52cf1f3f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "438d3509e4c1c57d7496d155458c30269b058e8181a0910a086e17b52cf1f3f5", kill_on_drop: false }` [INFO] [stdout] 438d3509e4c1c57d7496d155458c30269b058e8181a0910a086e17b52cf1f3f5