[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 1.76.0 for beta-1.77-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] validating manifest of git repo https://github.com/0xra9/leetcode_rust on toolchain 1.76.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.76.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[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] 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" "+1.76.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 7cd4a6c566a28681ab928d37a3932d3851076784c8e9ca9b4d141a24a017b87e
[INFO] running `Command { std: "docker" "start" "-a" "7cd4a6c566a28681ab928d37a3932d3851076784c8e9ca9b4d141a24a017b87e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7cd4a6c566a28681ab928d37a3932d3851076784c8e9ca9b4d141a24a017b87e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7cd4a6c566a28681ab928d37a3932d3851076784c8e9ca9b4d141a24a017b87e", kill_on_drop: false }`
[INFO] [stdout] 7cd4a6c566a28681ab928d37a3932d3851076784c8e9ca9b4d141a24a017b87e
[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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+1.76.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7d2018097bc5c9a92b57f4b643da91fa9b5154b547d72b56e4b7997dacbdad9a
[INFO] running `Command { std: "docker" "start" "-a" "7d2018097bc5c9a92b57f4b643da91fa9b5154b547d72b56e4b7997dacbdad9a", 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)]` 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 `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0277]: the type `String` 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` cannot be indexed by `usize`
[INFO] [stdout]    |
[INFO] [stdout]    = help: the trait `Index<usize>` is not implemented for `String`
[INFO] [stdout]    = help: the following other types implement trait `Index<Idx>`:
[INFO] [stdout]              <String as Index<RangeFull>>
[INFO] [stdout]              <String as Index<std::ops::Range<usize>>>
[INFO] [stdout]              <String as Index<RangeFrom<usize>>>
[INFO] [stdout]              <String as Index<RangeTo<usize>>>
[INFO] [stdout]              <String as Index<RangeInclusive<usize>>>
[INFO] [stdout]              <String as Index<RangeToInclusive<usize>>>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 12 previous errors; 2 warnings emitted
[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 13 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "7d2018097bc5c9a92b57f4b643da91fa9b5154b547d72b56e4b7997dacbdad9a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7d2018097bc5c9a92b57f4b643da91fa9b5154b547d72b56e4b7997dacbdad9a", kill_on_drop: false }`
[INFO] [stdout] 7d2018097bc5c9a92b57f4b643da91fa9b5154b547d72b56e4b7997dacbdad9a
