[INFO] cloning repository https://github.com/dinutting/sprunk
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dinutting/sprunk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinutting%2Fsprunk", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinutting%2Fsprunk'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] aacd23eab2850782bb8b899d94f0322e2dd89024
[INFO] checking dinutting/sprunk against master#89a99936d9e76a50e8df622e7242190841fd871b for pr-156160-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdinutting%2Fsprunk" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dinutting/sprunk
[INFO] finished tweaking git repo https://github.com/dinutting/sprunk
[INFO] tweaked toml for git repo https://github.com/dinutting/sprunk written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dinutting/sprunk on toolchain 89a99936d9e76a50e8df622e7242190841fd871b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dinutting/sprunk 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" "+89a99936d9e76a50e8df622e7242190841fd871b" "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-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:fd22e2154e7db748230f413534f3a6d034160c9d2b7c14b90fba4e9bfc1a36d4" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946
[INFO] running `Command { std: "docker" "start" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946" "/opt/rustwide/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946" "/opt/rustwide/cargo-home/bin/cargo" "+89a99936d9e76a50e8df622e7242190841fd871b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.95
[INFO] [stderr]    Compiling serde v1.0.219
[INFO] [stderr]     Checking memchr v2.7.4
[INFO] [stderr]     Checking csv-core v0.1.12
[INFO] [stderr]    Compiling quote v1.0.40
[INFO] [stderr]    Compiling syn v2.0.101
[INFO] [stderr]    Compiling serde_derive v1.0.219
[INFO] [stderr]     Checking csv v1.3.1
[INFO] [stderr]     Checking sprunk v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0596]: cannot borrow `x` as mutable, as it is immutable for the pattern guard
[INFO] [stdout]   --> src/main.rs:83:14
[INFO] [stdout]    |
[INFO] [stdout] 83 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |              ^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout]    = note: variables bound in patterns are immutable until the end of the pattern guard
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `x` as mutable, as it is immutable for the pattern guard
[INFO] [stdout]   --> src/main.rs:86:14
[INFO] [stdout]    |
[INFO] [stdout] 86 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |              ^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout]    = note: variables bound in patterns are immutable until the end of the pattern guard
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `iter`
[INFO] [stdout]   --> src/main.rs:92:33
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut iter = filtered_tokens.iter(); // shared, non-consuming
[INFO] [stdout]    |         -------- move occurs because `iter` has type `std::slice::Iter<'_, TokenType>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 83 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 86 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 92 |     println!("Next item: {:?}", iter.next()); // Still 10
[INFO] [stdout]    |                                 ^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 86 |         ref x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         +++
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 83 |         ref x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `sprunk` (bin "sprunk") due to 3 previous errors
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0596]: cannot borrow `x` as mutable, as it is immutable for the pattern guard
[INFO] [stdout]   --> src/main.rs:83:14
[INFO] [stdout]    |
[INFO] [stdout] 83 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |              ^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout]    = note: variables bound in patterns are immutable until the end of the pattern guard
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0596]: cannot borrow `x` as mutable, as it is immutable for the pattern guard
[INFO] [stdout]   --> src/main.rs:86:14
[INFO] [stdout]    |
[INFO] [stdout] 86 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |              ^ cannot borrow as mutable
[INFO] [stdout]    |
[INFO] [stdout]    = note: variables bound in patterns are immutable until the end of the pattern guard
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0382]: borrow of moved value: `iter`
[INFO] [stdout]   --> src/main.rs:92:33
[INFO] [stdout]    |
[INFO] [stdout] 60 |     let mut iter = filtered_tokens.iter(); // shared, non-consuming
[INFO] [stdout]    |         -------- move occurs because `iter` has type `std::slice::Iter<'_, lexer::TokenType>`, which does not implement the `Copy` trait
[INFO] [stdout] ...
[INFO] [stdout] 83 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 86 |         x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         - value moved here
[INFO] [stdout] ...
[INFO] [stdout] 92 |     println!("Next item: {:?}", iter.next()); // Still 10
[INFO] [stdout]    |                                 ^^^^ value borrowed here after move
[INFO] [stdout]    |
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 86 |         ref x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         +++
[INFO] [stdout] help: borrow this binding in the pattern to avoid moving the value
[INFO] [stdout]    |
[INFO] [stdout] 83 |         ref x if x.multi_peek_check(&[lexer::TokenType::Pipe,
[INFO] [stdout]    |         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0382, E0596.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0382`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `sprunk` (bin "sprunk" test) due to 3 previous errors
[INFO] running `Command { std: "docker" "inspect" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946", kill_on_drop: false }`
[INFO] [stdout] aac00f8ded04cf11965d33635a120b7fe36e9a6264f02aa9e832425112422946
