[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] checking 0xra9/leetcode_rust against master#779e19d8baa3e3625bd4fc5c85cbb2ad47b43155 for pr-147589-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2F0xra9%2Fleetcode_rust" "/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/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-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/0xra9/leetcode_rust on toolchain 779e19d8baa3e3625bd4fc5c85cbb2ad47b43155
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 756cc4fff14238a01daf051fd8a60c98422283b2b0ef387b7fb408e76566bb5d
[INFO] running `Command { std: "docker" "start" "-a" "756cc4fff14238a01daf051fd8a60c98422283b2b0ef387b7fb408e76566bb5d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "756cc4fff14238a01daf051fd8a60c98422283b2b0ef387b7fb408e76566bb5d", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "756cc4fff14238a01daf051fd8a60c98422283b2b0ef387b7fb408e76566bb5d", kill_on_drop: false }`
[INFO] [stdout] 756cc4fff14238a01daf051fd8a60c98422283b2b0ef387b7fb408e76566bb5d
[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" "-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" "+779e19d8baa3e3625bd4fc5c85cbb2ad47b43155" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 6a6408354f446856b5a38ac16ab0dcccd26aa71df4a7871e55b6025bb7cb687b
[INFO] running `Command { std: "docker" "start" "-a" "6a6408354f446856b5a38ac16ab0dcccd26aa71df4a7871e55b6025bb7cb687b", kill_on_drop: false }`
[INFO] [stderr]     Checking 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] 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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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: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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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]              `usize` implements `SliceIndex<ByteStr>`
[INFO] [stdout]              `usize` implements `SliceIndex<[T]>`
[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] [stdout] warning: unused variable: `right_ans`
[INFO] [stdout]   --> src/two_sum_1.rs:58:13
[INFO] [stdout]    |
[INFO] [stdout] 58 |         let right_ans = vec![2, 1];
[INFO] [stdout]    |             ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_right_ans`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode_rust` (lib) due to 12 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `leetcode_rust` (lib test) due to 12 previous errors; 3 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "6a6408354f446856b5a38ac16ab0dcccd26aa71df4a7871e55b6025bb7cb687b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6a6408354f446856b5a38ac16ab0dcccd26aa71df4a7871e55b6025bb7cb687b", kill_on_drop: false }`
[INFO] [stdout] 6a6408354f446856b5a38ac16ab0dcccd26aa71df4a7871e55b6025bb7cb687b
