[INFO] fetching crate liu 0.0.1... [INFO] checking liu-0.0.1 against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] extracting crate liu 0.0.1 into /workspace/builds/worker-1-tc2/source [INFO] validating manifest of crates.io crate liu 0.0.1 on toolchain 23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate liu 0.0.1 [INFO] finished tweaking crates.io crate liu 0.0.1 [INFO] tweaked toml for crates.io crate liu 0.0.1 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e9accbaa2bd066dff1e94e19925d1d6e1bdf13397b896b579c9d07f06c3c48aa [INFO] running `Command { std: "docker" "start" "-a" "e9accbaa2bd066dff1e94e19925d1d6e1bdf13397b896b579c9d07f06c3c48aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e9accbaa2bd066dff1e94e19925d1d6e1bdf13397b896b579c9d07f06c3c48aa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9accbaa2bd066dff1e94e19925d1d6e1bdf13397b896b579c9d07f06c3c48aa", kill_on_drop: false }` [INFO] [stdout] e9accbaa2bd066dff1e94e19925d1d6e1bdf13397b896b579c9d07f06c3c48aa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:4f8da3c744d2da974e54ce020a79f4ad54313e914ebeaab8fc086f07e8d8b066" "/opt/rustwide/cargo-home/bin/cargo" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 717efb91d6e90729eb54490899ac6d59463b054072a88459a70b5903570de93c [INFO] running `Command { std: "docker" "start" "-a" "717efb91d6e90729eb54490899ac6d59463b054072a88459a70b5903570de93c", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.107 [INFO] [stderr] Checking bitflags v1.3.2 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking aliu v0.1.22 [INFO] [stderr] Checking region v3.0.0 [INFO] [stderr] Checking liu v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:565:69 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 565 | '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?, [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 568 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:696:61 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] 673 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 674 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 679 | | // ``` [INFO] [stdout] 680 | | .chain(core::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |_____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 696 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", caret_ch))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 697 | } [INFO] [stdout] 698 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/print_format.rs:566:26 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 566 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 567 | } [INFO] [stdout] 568 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:565:69 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 565 | '\t' => (0..metrics.unicode_width).try_for_each(|_| write!(self, " "))?, [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] ... [INFO] [stdout] 568 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:696:61 [INFO] [stdout] | [INFO] [stdout] 671 | for (metrics, ch) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | __________________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 672 | | .char_metrics(source.char_indices()) [INFO] [stdout] 673 | | // Add a placeholder source column at the end to allow for [INFO] [stdout] 674 | | // printing carets at the end of lines, eg: [INFO] [stdout] ... | [INFO] [stdout] 679 | | // ``` [INFO] [stdout] 680 | | .chain(core::iter::once((placeholder_metrics, '\0'))) [INFO] [stdout] | |_____________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 696 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", caret_ch))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 697 | } [INFO] [stdout] 698 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `std::iter::Chain, std::iter::Once<(Metrics, char)>>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/print_format.rs:566:26 [INFO] [stdout] | [INFO] [stdout] 561 | for (metrics, ch) in self.char_metrics(source.char_indices()) { [INFO] [stdout] | ---------------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 566 | _ => write!(self, "{}", ch)?, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 567 | } [INFO] [stdout] 568 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:971:37 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 971 | spaces.try_for_each(|_| write!(self, " "))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 972 | } [INFO] [stdout] 973 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/print_format.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 965 | write!(self, "{}", '|')?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 973 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1021:53 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1018 | | .take_while(|(metrics, _)| metrics.byte_index < start + 1) [INFO] [stdout] | |______________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1021 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", '-'))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 1022 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/print_format.rs:1018:25: 1018:39]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:971:37 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | borrow occurs here [INFO] [stdout] | a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 971 | spaces.try_for_each(|_| write!(self, " "))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 972 | } [INFO] [stdout] 973 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/print_format.rs:965:21 [INFO] [stdout] | [INFO] [stdout] 956 | for (metrics, ch) in self.char_metrics(char_indices) { [INFO] [stdout] | ------------------------------- [INFO] [stdout] | | [INFO] [stdout] | immutable borrow occurs here [INFO] [stdout] | a temporary with access to the immutable borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 965 | write!(self, "{}", '|')?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 973 | } [INFO] [stdout] | - ... and the immutable borrow might be used here, when that temporary is dropped and runs the destructor for type `impl Iterator` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1038:53 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1035 | | .take_while(|(metrics, _)| metrics.byte_index < start) [INFO] [stdout] | |__________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1038 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", '-'))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 1039 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/print_format.rs:1035:25: 1035:39]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1021:53 [INFO] [stdout] | [INFO] [stdout] 1016 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1017 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1018 | | .take_while(|(metrics, _)| metrics.byte_index < start + 1) [INFO] [stdout] | |______________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1021 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", '-'))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 1022 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/print_format.rs:1018:25: 1018:39]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0500]: closure requires unique access to `*self` but it is already borrowed [INFO] [stdout] --> src/print_format.rs:1038:53 [INFO] [stdout] | [INFO] [stdout] 1033 | for (metrics, _) in self [INFO] [stdout] | ---- [INFO] [stdout] | | [INFO] [stdout] | _____________________________borrow occurs here [INFO] [stdout] | | [INFO] [stdout] 1034 | | .char_metrics(source.char_indices()) [INFO] [stdout] 1035 | | .take_while(|(metrics, _)| metrics.byte_index < start) [INFO] [stdout] | |__________________________________________________________________- a temporary with access to the first borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 1038 | (0..metrics.unicode_width).try_for_each(|_| write!(self, "{}", '-'))?; [INFO] [stdout] | ^^^ ---- second borrow occurs due to use of `*self` in closure [INFO] [stdout] | | [INFO] [stdout] | closure construction occurs here [INFO] [stdout] 1039 | } [INFO] [stdout] | - ... and the first borrow might be used here, when that temporary is dropped and runs the destructor for type `TakeWhile, [closure@src/print_format.rs:1035:25: 1035:39]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `liu` (lib) due to 8 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0500, E0502. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0500`. [INFO] [stdout] [INFO] [stderr] error: could not compile `liu` (lib test) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "717efb91d6e90729eb54490899ac6d59463b054072a88459a70b5903570de93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "717efb91d6e90729eb54490899ac6d59463b054072a88459a70b5903570de93c", kill_on_drop: false }` [INFO] [stdout] 717efb91d6e90729eb54490899ac6d59463b054072a88459a70b5903570de93c