[INFO] cloning repository https://github.com/AidoP/bluemetal [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/AidoP/bluemetal" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2Fbluemetal", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2Fbluemetal'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3f9fe625f0d8064a3eb77069773e9f4dac8d0ecb [INFO] checking AidoP/bluemetal against try#23ffd2897cbb44320ca18dfe4d05dbacb37d55e0 for pr-115950 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FAidoP%2Fbluemetal" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/AidoP/bluemetal 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] started tweaking git repo https://github.com/AidoP/bluemetal [INFO] finished tweaking git repo https://github.com/AidoP/bluemetal [INFO] tweaked toml for git repo https://github.com/AidoP/bluemetal written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/AidoP/bluemetal 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" "+23ffd2897cbb44320ca18dfe4d05dbacb37d55e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 2f266da8781b06f40e686aee84ac57ae922a8186e46c43caedf8f2ffe62d221c [INFO] running `Command { std: "docker" "start" "-a" "2f266da8781b06f40e686aee84ac57ae922a8186e46c43caedf8f2ffe62d221c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2f266da8781b06f40e686aee84ac57ae922a8186e46c43caedf8f2ffe62d221c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f266da8781b06f40e686aee84ac57ae922a8186e46c43caedf8f2ffe62d221c", kill_on_drop: false }` [INFO] [stdout] 2f266da8781b06f40e686aee84ac57ae922a8186e46c43caedf8f2ffe62d221c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 0342f1bb718f08bc389d97297422cedb0fd905b4062510ff232c77c30d955565 [INFO] running `Command { std: "docker" "start" "-a" "0342f1bb718f08bc389d97297422cedb0fd905b4062510ff232c77c30d955565", kill_on_drop: false }` [INFO] [stderr] Checking bluemetal v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/parse.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashSet, HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File`, `io::Read` [INFO] [stdout] --> src/lib.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `HashSet` [INFO] [stdout] --> src/parse.rs:2:19 [INFO] [stdout] | [INFO] [stdout] 2 | collections::{HashSet, HashMap, VecDeque}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `fs::File`, `io::Read` [INFO] [stdout] --> src/lib.rs:8:11 [INFO] [stdout] | [INFO] [stdout] 8 | use std::{fs::File, io::Read}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `str_split_once` has been stable since 1.52.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(str_split_once)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `str_split_once` has been stable since 1.52.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(str_split_once)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/parse.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parse(from: &mut &str, unit: &mut Unit) -> Result<(Vec, Self), ParseError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unit` [INFO] [stdout] --> src/parse.rs:89:35 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parse(from: &mut &str, unit: &mut Unit) -> Result<(Vec, Self), ParseError> { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_unit` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut modules = vec![]; [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] warning: variable does not need to be mutable [INFO] [stdout] --> src/parse.rs:91:13 [INFO] [stdout] | [INFO] [stdout] 91 | let mut modules = vec![]; [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[E0502]: cannot borrow `**from` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parse.rs:230:42 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] 230 | if let Some((left, right)) = from.split_once('|') { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `**from` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parse.rs:230:42 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | mutable borrow occurs here [INFO] [stdout] | a temporary with access to the mutable borrow is created here ... [INFO] [stdout] 230 | if let Some((left, right)) = from.split_once('|') { [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the mutable borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `*pos` because it was mutably borrowed [INFO] [stdout] --> src/parse.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*pos` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 230 | if let Some((left, right)) = from.split_once('|') { [INFO] [stdout] 231 | *pos += left.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of borrowed `*pos` [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `*pos` because it was mutably borrowed [INFO] [stdout] --> src/parse.rs:231:17 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*pos` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] 230 | if let Some((left, right)) = from.split_once('|') { [INFO] [stdout] 231 | *pos += left.len(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of borrowed `*pos` [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `*from` because it is borrowed [INFO] [stdout] --> src/parse.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*from` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 232 | *from = right; [INFO] [stdout] | ^^^^^^^^^^^^^ `*from` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0506]: cannot assign to `*from` because it is borrowed [INFO] [stdout] --> src/parse.rs:232:17 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*from` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 232 | *from = right; [INFO] [stdout] | ^^^^^^^^^^^^^ `*from` is assigned to here but it was already borrowed [INFO] [stdout] ... [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `*pos` because it was mutably borrowed [INFO] [stdout] --> src/parse.rs:235:71 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*pos` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 235 | return Err(ParseError::ExpectedSymbol("|".to_owned(), *pos)) [INFO] [stdout] | ^^^^ use of borrowed `*pos` [INFO] [stdout] 236 | } [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `*pos` because it was mutably borrowed [INFO] [stdout] --> src/parse.rs:235:71 [INFO] [stdout] | [INFO] [stdout] 229 | let value = if let Ok(_) = parse_symbol("|", from, pos) { [INFO] [stdout] | ---------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | `*pos` is borrowed here [INFO] [stdout] | a temporary with access to the borrow is created here ... [INFO] [stdout] ... [INFO] [stdout] 235 | return Err(ParseError::ExpectedSymbol("|".to_owned(), *pos)) [INFO] [stdout] | ^^^^ use of borrowed `*pos` [INFO] [stdout] 236 | } [INFO] [stdout] 237 | } else { None }; [INFO] [stdout] | - ... and the borrow might be used here, when that temporary is dropped and runs the destructor for type `Result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0503, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors; 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0503, E0506. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `bluemetal` (lib) due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `bluemetal` (lib test) due to 5 previous errors; 5 warnings emitted [INFO] running `Command { std: "docker" "inspect" "0342f1bb718f08bc389d97297422cedb0fd905b4062510ff232c77c30d955565", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0342f1bb718f08bc389d97297422cedb0fd905b4062510ff232c77c30d955565", kill_on_drop: false }` [INFO] [stdout] 0342f1bb718f08bc389d97297422cedb0fd905b4062510ff232c77c30d955565