[INFO] cloning repository https://github.com/lptstr/zn [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lptstr/zn" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flptstr%2Fzn", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flptstr%2Fzn'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e1919e6e305bc019c0b0aa6714eef33db4d65fce [INFO] testing lptstr/zn against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flptstr%2Fzn" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lptstr/zn [INFO] finished tweaking git repo https://github.com/lptstr/zn [INFO] tweaked toml for git repo https://github.com/lptstr/zn written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lptstr/zn on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lptstr/zn 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 34eef3f0b488980952097dfb64f07627a149813840fbb121c8d3d7534d8ebf3d [INFO] running `Command { std: "docker" "start" "-a" "34eef3f0b488980952097dfb64f07627a149813840fbb121c8d3d7534d8ebf3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "34eef3f0b488980952097dfb64f07627a149813840fbb121c8d3d7534d8ebf3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "34eef3f0b488980952097dfb64f07627a149813840fbb121c8d3d7534d8ebf3d", kill_on_drop: false }` [INFO] [stdout] 34eef3f0b488980952097dfb64f07627a149813840fbb121c8d3d7534d8ebf3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/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 -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] de458f35c774d3bf1f3dc8086186fc3bfebbac45aa0b8b6a6e3018ce45721a27 [INFO] running `Command { std: "docker" "start" "-a" "de458f35c774d3bf1f3dc8086186fc3bfebbac45aa0b8b6a6e3018ce45721a27", kill_on_drop: false }` [INFO] [stderr] Compiling zn v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:57:91 [INFO] [stdout] | [INFO] [stdout] 57 | BUFFER[dest.token.parse::().unwrap()] = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 57 | BUFFER[dest.token.parse::().unwrap()] = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:64:66 [INFO] [stdout] | [INFO] [stdout] 64 | "r" => REGSTR.R = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 64 | "r" => REGSTR.R = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:66:66 [INFO] [stdout] | [INFO] [stdout] 66 | "c" => REGSTR.C = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 66 | "c" => REGSTR.C = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:68:66 [INFO] [stdout] | [INFO] [stdout] 68 | "i" => REGSTR.I = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 68 | "i" => REGSTR.I = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:70:66 [INFO] [stdout] | [INFO] [stdout] 70 | "h" => REGSTR.H = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 70 | "h" => REGSTR.H = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:72:66 [INFO] [stdout] | [INFO] [stdout] 72 | "x" => REGSTR.X = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 72 | "x" => REGSTR.X = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:74:66 [INFO] [stdout] | [INFO] [stdout] 74 | "a" => REGSTR.A = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 74 | "a" => REGSTR.A = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:76:66 [INFO] [stdout] | [INFO] [stdout] 76 | "d" => REGSTR.D = getval(BUFFER, REGSTR, DSTACK, src, [INFO] [stdout] | ------ ^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/zn.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn getval( [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | token: Token, [INFO] [stdout] | ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 76 | "d" => REGSTR.D = getval(BUFFER, REGSTR, DSTACK, src.clone(), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:98:53 [INFO] [stdout] | [INFO] [stdout] 98 | TokenType::Address => if !Address::is_valid(token, BUFFER) { [INFO] [stdout] | ----------------- ^^^^^ expected `&Token`, found `Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/types.rs:53:12 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn is_valid(token: &Token, BUFFER: &[Option; 65535]) -> bool { [INFO] [stdout] | ^^^^^^^^ ------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 98 | TokenType::Address => if !Address::is_valid(&token, BUFFER) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/zn.rs:101:56 [INFO] [stdout] | [INFO] [stdout] 101 | TokenType::Register => if !Registers::is_valid(token) { [INFO] [stdout] | ------------------- ^^^^^ expected `&Token`, found `Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/types.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn is_valid(token: &Token) -> bool { [INFO] [stdout] | ^^^^^^^^ ------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 101 | TokenType::Register => if !Registers::is_valid(&token) { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `i` is never read [INFO] [stdout] --> src/lexer.rs:15:17 [INFO] [stdout] | [INFO] [stdout] 15 | i = i + 1; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/zn.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | for mut ctr in 0..commands.len() { [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: unused variable: `reason` [INFO] [stdout] --> src/zn.rs:135:5 [INFO] [stdout] | [INFO] [stdout] 135 | reason: ErrorCause, [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_reason` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/zn.rs:142:19 [INFO] [stdout] | [INFO] [stdout] 142 | let context = commands[command]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 142 | let context = &commands[command]; [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 142 | let context = commands[command].clone(); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/zn.rs:146:9 [INFO] [stdout] | [INFO] [stdout] 146 | commands[command-1] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 146 | &commands[command-1] [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 146 | commands[command-1].clone() [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Vec` [INFO] [stdout] --> src/zn.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | commands[command+1] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ move occurs because value has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 151 | &commands[command+1] [INFO] [stdout] | + [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 151 | commands[command+1].clone() [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zn` (bin "zn") due to 13 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "de458f35c774d3bf1f3dc8086186fc3bfebbac45aa0b8b6a6e3018ce45721a27", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de458f35c774d3bf1f3dc8086186fc3bfebbac45aa0b8b6a6e3018ce45721a27", kill_on_drop: false }` [INFO] [stdout] de458f35c774d3bf1f3dc8086186fc3bfebbac45aa0b8b6a6e3018ce45721a27