[INFO] cloning repository https://github.com/djdisodo/autoparse-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/djdisodo/autoparse-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjdisodo%2Fautoparse-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjdisodo%2Fautoparse-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 244ec72549c861558f8bfafdfa7aa659fd3ed7ab [INFO] checking djdisodo/autoparse-rs against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjdisodo%2Fautoparse-rs" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/djdisodo/autoparse-rs on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/djdisodo/autoparse-rs [INFO] finished tweaking git repo https://github.com/djdisodo/autoparse-rs [INFO] tweaked toml for git repo https://github.com/djdisodo/autoparse-rs written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/djdisodo/autoparse-rs already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "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-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 91990ba143f7bfaf57ea7fc7cdc2a20a695425c230fad61fa14f892b576a6c8c [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "91990ba143f7bfaf57ea7fc7cdc2a20a695425c230fad61fa14f892b576a6c8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "91990ba143f7bfaf57ea7fc7cdc2a20a695425c230fad61fa14f892b576a6c8c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91990ba143f7bfaf57ea7fc7cdc2a20a695425c230fad61fa14f892b576a6c8c", kill_on_drop: false }` [INFO] [stdout] 91990ba143f7bfaf57ea7fc7cdc2a20a695425c230fad61fa14f892b576a6c8c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 58278c80974aabab6067487e28f6a53c0d3136baeeae0fdb969ba0761d8b63e9 [INFO] running `Command { std: "docker" "start" "-a" "58278c80974aabab6067487e28f6a53c0d3136baeeae0fdb969ba0761d8b63e9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking arrayvec v0.6.1 [INFO] [stderr] Checking unicode_categories v0.1.1 [INFO] [stderr] Compiling proc-macro2 v1.0.26 [INFO] [stderr] Checking autoparse v0.1.0 (/opt/rustwide/workdir/autoparse) [INFO] [stderr] Checking quote v1.0.9 [INFO] [stdout] warning: unused imports: `Parsable`, `ParseError` [INFO] [stdout] --> autoparse/src/parse_stream.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{Parsable, ParseError}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Parsable`, `ParseError` [INFO] [stdout] --> autoparse/src/parse_stream.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{Parsable, ParseError}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Parsable`, `ParseError` [INFO] [stdout] --> autoparse/src/parse_stream.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::{Parsable, ParseError}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> autoparse/src/parsable.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parsable.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 11 | Self::try_parse_no_rewind(&mut forked, position)} [INFO] [stdout] | --------------------------^^^^^^^^^^^------------ `forked` dropped here while still borrowed [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 14 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 15 | stream.advance(parsed.1); //TODO rework parse_stream [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 16 | stream.unset_rewind_point(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 20 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:40:44 [INFO] [stdout] | [INFO] [stdout] 37 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 40 | while let Ok((parsed, r)) = U::try_parse(stream, position + read) { [INFO] [stdout] | -------------^^^^^^------------------ [INFO] [stdout] | | | [INFO] [stdout] | | `*stream` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 50 | let mut read = 0; [INFO] [stdout] 51 | let u1 = match U1::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 59 | let u2 = match U2::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `test_parse_stream_base` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 35 | let mut test_parse_stream_forked = test_parse_stream_base.fork(); [INFO] [stdout] | ---------------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | test2(&mut test_parse_stream_base) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parse_stream.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 45 | test2(&mut forked); [INFO] [stdout] | ------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] 46 | } [INFO] [stdout] | - `forked` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 43 | { [INFO] [stdout] 44 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 47 | println!("{}", stream.next().unwrap()); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `autoparse` due to 11 previous errors; 2 warnings emitted [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> autoparse/src/parsable.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parsable.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 11 | Self::try_parse_no_rewind(&mut forked, position)} [INFO] [stdout] | --------------------------^^^^^^^^^^^------------ `forked` dropped here while still borrowed [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 14 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 15 | stream.advance(parsed.1); //TODO rework parse_stream [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 16 | stream.unset_rewind_point(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 20 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:40:44 [INFO] [stdout] | [INFO] [stdout] 37 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 40 | while let Ok((parsed, r)) = U::try_parse(stream, position + read) { [INFO] [stdout] | -------------^^^^^^------------------ [INFO] [stdout] | | | [INFO] [stdout] | | `*stream` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> autoparse/src/parsable.rs:7:19 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parsable.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 11 | Self::try_parse_no_rewind(&mut forked, position)} [INFO] [stdout] | --------------------------^^^^^^^^^^^------------ `forked` dropped here while still borrowed [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 14 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 15 | stream.advance(parsed.1); //TODO rework parse_stream [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 16 | stream.unset_rewind_point(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 7 | fn try_parse<'a>(mut stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ParseE... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 10 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 20 | stream.rewind(); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:40:44 [INFO] [stdout] | [INFO] [stdout] 37 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 40 | while let Ok((parsed, r)) = U::try_parse(stream, position + read) { [INFO] [stdout] | -------------^^^^^^------------------ [INFO] [stdout] | | | [INFO] [stdout] | | `*stream` was mutably borrowed here in the previous iteration of the loop [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 50 | let mut read = 0; [INFO] [stdout] 51 | let u1 = match U1::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 59 | let u2 = match U2::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parsable.rs:59:42 [INFO] [stdout] | [INFO] [stdout] 49 | fn try_parse_no_rewind<'a>(stream: &'a mut ParseStream<'a, T, impl Iterator + 'a>, position: usize) -> Result<(Self, usize), ... [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 50 | let mut read = 0; [INFO] [stdout] 51 | let u1 = match U1::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ------------------------------------------------ [INFO] [stdout] | | | [INFO] [stdout] | | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 59 | let u2 = match U2::try_parse_no_rewind(stream, position + read) { [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `test_parse_stream_base` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 35 | let mut test_parse_stream_forked = test_parse_stream_base.fork(); [INFO] [stdout] | ---------------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | test2(&mut test_parse_stream_base) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parse_stream.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 45 | test2(&mut forked); [INFO] [stdout] | ------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] 46 | } [INFO] [stdout] | - `forked` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 43 | { [INFO] [stdout] 44 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 47 | println!("{}", stream.next().unwrap()); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `test_parse_stream_base` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 35 | let mut test_parse_stream_forked = test_parse_stream_base.fork(); [INFO] [stdout] | ---------------------- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 39 | test2(&mut test_parse_stream_base) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | second mutable borrow occurs here [INFO] [stdout] | first borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0597]: `forked` does not live long enough [INFO] [stdout] --> autoparse/src/parse_stream.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 45 | test2(&mut forked); [INFO] [stdout] | ------^^^^^^^^^^^- [INFO] [stdout] | | | [INFO] [stdout] | | borrowed value does not live long enough [INFO] [stdout] | argument requires that `forked` is borrowed for `'a` [INFO] [stdout] 46 | } [INFO] [stdout] | - `forked` dropped here while still borrowed [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*stream` as mutable more than once at a time [INFO] [stdout] --> autoparse/src/parse_stream.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 42 | fn test2<'a>(stream: &'a mut ParseStream<'a, i32, impl Iterator + 'a>) { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] 43 | { [INFO] [stdout] 44 | let mut forked = stream.fork(); [INFO] [stdout] | ------------- [INFO] [stdout] | | [INFO] [stdout] | first mutable borrow occurs here [INFO] [stdout] | argument requires that `*stream` is borrowed for `'a` [INFO] [stdout] ... [INFO] [stdout] 47 | println!("{}", stream.next().unwrap()); [INFO] [stdout] | ^^^^^^ second mutable borrow occurs here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0499, E0597. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "58278c80974aabab6067487e28f6a53c0d3136baeeae0fdb969ba0761d8b63e9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "58278c80974aabab6067487e28f6a53c0d3136baeeae0fdb969ba0761d8b63e9", kill_on_drop: false }` [INFO] [stdout] 58278c80974aabab6067487e28f6a53c0d3136baeeae0fdb969ba0761d8b63e9