[INFO] cloning repository https://github.com/0xra9/leetcode_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/0xra9/leetcode_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xra9%2Fleetcode_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xra9%2Fleetcode_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 3bfc8302be9e9ffe0728942a93aa5673f019e704
[INFO] testing 0xra9/leetcode_rust against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xra9%2Fleetcode_rust" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/0xra9/leetcode_rust
[INFO] finished tweaking git repo https://github.com/0xra9/leetcode_rust
[INFO] tweaked toml for git repo https://github.com/0xra9/leetcode_rust written to /workspace/builds/worker-0-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/0xra9/leetcode_rust on toolchain 1ef7943ee607160a564655b6596f83670ef95df5
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/0xra9/leetcode_rust 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] e8d32a514d2fa13a26a10d9086c9d74ccc6e1a01275d46631eeb3635d436534a
[INFO] running `Command { std: "docker" "start" "-a" "e8d32a514d2fa13a26a10d9086c9d74ccc6e1a01275d46631eeb3635d436534a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "e8d32a514d2fa13a26a10d9086c9d74ccc6e1a01275d46631eeb3635d436534a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "e8d32a514d2fa13a26a10d9086c9d74ccc6e1a01275d46631eeb3635d436534a", kill_on_drop: false }`
[INFO] [stdout] e8d32a514d2fa13a26a10d9086c9d74ccc6e1a01275d46631eeb3635d436534a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7051ae150842171533974b133ac759ea1c9f1a7e10be03f8e33295247ffb290d
[INFO] running `Command { std: "docker" "start" "-a" "7051ae150842171533974b133ac759ea1c9f1a7e10be03f8e33295247ffb290d", kill_on_drop: false }`
[INFO] [stderr]    Compiling leetcode_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::sync::mpsc::channel`
[INFO] [stdout]  --> src/valid_parentheses.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::sync::mpsc::channel;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::ops::Index`
[INFO] [stdout]  --> src/two_sum_1.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::ops::Index;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:11:18
[INFO] [stdout]    |
[INFO] [stdout] 11 |             if s[index] == 'V' && s[index - 1] == 'I' {
[INFO] [stdout]    |                  ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:11:37
[INFO] [stdout]    |
[INFO] [stdout] 11 |             if s[index] == 'V' && s[index - 1] == 'I' {
[INFO] [stdout]    |                                     ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:13:25
[INFO] [stdout]    |
[INFO] [stdout] 13 |             } else if s[index] == 'X' && s[index - 1] == 'I' {
[INFO] [stdout]    |                         ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:13:44
[INFO] [stdout]    |
[INFO] [stdout] 13 |             } else if s[index] == 'X' && s[index - 1] == 'I' {
[INFO] [stdout]    |                                            ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:15:25
[INFO] [stdout]    |
[INFO] [stdout] 15 |             } else if s[index] == 'L' && s[index - 1] == 'X' {
[INFO] [stdout]    |                         ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:15:44
[INFO] [stdout]    |
[INFO] [stdout] 15 |             } else if s[index] == 'L' && s[index - 1] == 'X' {
[INFO] [stdout]    |                                            ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:17:25
[INFO] [stdout]    |
[INFO] [stdout] 17 |             } else if s[index] == 'C' && s[index - 1] == 'I' {
[INFO] [stdout]    |                         ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:17:44
[INFO] [stdout]    |
[INFO] [stdout] 17 |             } else if s[index] == 'C' && s[index - 1] == 'I' {
[INFO] [stdout]    |                                            ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:19:25
[INFO] [stdout]    |
[INFO] [stdout] 19 |             } else if s[index] == 'D' && s[index - 1] == 'C' {
[INFO] [stdout]    |                         ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:19:44
[INFO] [stdout]    |
[INFO] [stdout] 19 |             } else if s[index] == 'D' && s[index - 1] == 'C' {
[INFO] [stdout]    |                                            ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:21:25
[INFO] [stdout]    |
[INFO] [stdout] 21 |             } else if s[index] == 'X' && s[index - 1] == 'I' {
[INFO] [stdout]    |                         ^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `str` cannot be indexed by `usize`
[INFO] [stdout]   --> src/roman_to_integer_13.rs:21:44
[INFO] [stdout]    |
[INFO] [stdout] 21 |             } else if s[index] == 'X' && s[index - 1] == 'I' {
[INFO] [stdout]    |                                            ^^^^^^^^^ string indices are ranges of `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `SliceIndex<str>` is not implemented for `usize`
[INFO] [stdout] help: the following other types implement trait `SliceIndex<T>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/slice/index.rs:215:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<[T]>`
[INFO] [stdout]   --> /rustc/1ef7943ee607160a564655b6596f83670ef95df5/library/core/src/bstr/traits.rs:203:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]    = note: required for `String` to implement `Index<usize>`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode_rust` (lib) due to 12 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "7051ae150842171533974b133ac759ea1c9f1a7e10be03f8e33295247ffb290d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7051ae150842171533974b133ac759ea1c9f1a7e10be03f8e33295247ffb290d", kill_on_drop: false }`
[INFO] [stdout] 7051ae150842171533974b133ac759ea1c9f1a7e10be03f8e33295247ffb290d
