[INFO] updating cached repository https://github.com/jtianling/toc-auto-add [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/big/crater/work/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 95c05965d9d58cb6207521e97d5ad0fa428d3131 [INFO] testing jtianling/toc-auto-add against 1.38.0 for beta-1.39-1 [INFO] running `"git" "clone" "work/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjtianling%2Ftoc-auto-add" "work/builds/worker-2/source"` [INFO] [stderr] Cloning into 'work/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jtianling/toc-auto-add on toolchain 1.38.0 [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/jtianling/toc-auto-add [INFO] finished tweaking git repo https://github.com/jtianling/toc-auto-add [INFO] tweaked toml for git repo https://github.com/jtianling/toc-auto-add written to work/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/jtianling/toc-auto-add already has a lockfile, it will not be regenerated [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /big/crater/work/builds/worker-2/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/big/crater/work/cargo-home/bin/cargo" "+1.38.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/big/crater/work/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/big/crater/work/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/big/crater/work/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/big/crater/work/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.38.0" "build" "--frozen"` [INFO] [stdout] e407f252eeda12147d7a3e2a3186fe2bfe862a24c2cea396270f0dc2a8ab75eb [INFO] running `"docker" "start" "-a" "e407f252eeda12147d7a3e2a3186fe2bfe862a24c2cea396270f0dc2a8ab75eb"` [INFO] [stderr] Compiling toc-auto-add v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0599]: no method named `at` found for type `regex::Captures<'_>` in the current scope [INFO] [stderr] --> src/main.rs:56:77 [INFO] [stderr] | [INFO] [stderr] 56 | let title_string: &str = first_level_title_re.captures(line).unwrap().at(1).unwrap(); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `at` found for type `regex::Captures<'_>` in the current scope [INFO] [stderr] --> src/main.rs:66:78 [INFO] [stderr] | [INFO] [stderr] 66 | let title_string: &str = second_level_title_re.captures(line).unwrap().at(1).unwrap(); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `at` found for type `regex::Captures<'_>` in the current scope [INFO] [stderr] --> src/main.rs:123:81 [INFO] [stderr] | [INFO] [stderr] 123 | let title_area_string: &str = title_area_re.captures(file_content).unwrap().at(2).unwrap(); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:131:12 [INFO] [stderr] | [INFO] [stderr] 118 | fn add_or_replace_toc(file_content: &str, toc: &str) -> String { [INFO] [stderr] | ------ expected `std::string::String` because of return type [INFO] [stderr] ... [INFO] [stderr] 131 | return replaced_file_content; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ expected struct `std::string::String`, found enum `std::borrow::Cow` [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::string::String` [INFO] [stderr] found type `std::borrow::Cow<'_, str>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `at` found for type `regex::Captures<'_>` in the current scope [INFO] [stderr] --> src/main.rs:140:85 [INFO] [stderr] | [INFO] [stderr] 140 | let more_comment_string: &str = more_comment_re.captures(file_content).unwrap().at(0).unwrap(); [INFO] [stderr] | ^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 5 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0599. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `toc-auto-add`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "e407f252eeda12147d7a3e2a3186fe2bfe862a24c2cea396270f0dc2a8ab75eb"` [INFO] running `"docker" "rm" "-f" "e407f252eeda12147d7a3e2a3186fe2bfe862a24c2cea396270f0dc2a8ab75eb"` [INFO] [stdout] e407f252eeda12147d7a3e2a3186fe2bfe862a24c2cea396270f0dc2a8ab75eb