[INFO] cloning repository https://github.com/lusan/learn-rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lusan/learn-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusan%2Flearn-rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusan%2Flearn-rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ea0002e08ecbb42bb8ab91cfae8f178f495383c0
[INFO] testing lusan/learn-rust against 1.99.0-beta.1+cargoflags=--release for beta-release-1.99-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusan%2Flearn-rust" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/lusan/learn-rust
[INFO] finished tweaking git repo https://github.com/lusan/learn-rust
[INFO] tweaked toml for git repo https://github.com/lusan/learn-rust written to /workspace/builds/worker-6-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/lusan/learn-rust on toolchain 1.99.0-beta.1
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/lusan/learn-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.99.0-beta.1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] 7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171
[INFO] running `Command { std: "docker" "start" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171" "/opt/rustwide/cargo-home/bin/cargo" "+1.99.0-beta.1" "build" "--frozen" "--message-format=json" "--release", kill_on_drop: false }`
[INFO] [stderr]    Compiling hello_cargo v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:5:27
[INFO] [stdout]    |
[INFO] [stdout]  5 |     let word = first_word(&my_string[0..6]);
[INFO] [stdout]    |                ---------- ^^^^^^^^^^^^^^^^ expected `&String`, found `&str`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&String`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn first_word(s: &String) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^ ----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:6:27
[INFO] [stdout]    |
[INFO] [stdout]  6 |     let word = first_word(&my_string[..]);
[INFO] [stdout]    |                ---------- ^^^^^^^^^^^^^^ expected `&String`, found `&str`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&String`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn first_word(s: &String) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^ ----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:12:27
[INFO] [stdout]    |
[INFO] [stdout] 12 |     let word = first_word(&my_string_literal[0..6]);
[INFO] [stdout]    |                ---------- ^^^^^^^^^^^^^^^^^^^^^^^^ expected `&String`, found `&str`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&String`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn first_word(s: &String) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^ ----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:13:27
[INFO] [stdout]    |
[INFO] [stdout] 13 |     let word = first_word(&my_string_literal[..]);
[INFO] [stdout]    |                ---------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&String`, found `&str`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&String`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn first_word(s: &String) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^ ----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/main.rs:17:27
[INFO] [stdout]    |
[INFO] [stdout] 17 |     let word = first_word(my_string_literal);
[INFO] [stdout]    |                ---------- ^^^^^^^^^^^^^^^^^ expected `&String`, found `&str`
[INFO] [stdout]    |                |
[INFO] [stdout]    |                arguments to this function are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected reference `&String`
[INFO] [stdout]               found reference `&str`
[INFO] [stdout] note: function defined here
[INFO] [stdout]   --> src/main.rs:30:4
[INFO] [stdout]    |
[INFO] [stdout] 30 | fn first_word(s: &String) -> &str {
[INFO] [stdout]    |    ^^^^^^^^^^ ----------
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `hello_cargo` (bin "hello_cargo") due to 5 previous errors
[INFO] running `Command { std: "docker" "inspect" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171", kill_on_drop: false }`
[INFO] [stdout] 7527db69ddc3ea048d14e06d24ce2daa46b3ace637972ac0bf73e45d627ce171
