[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] [stderr] /workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusan%2Flearn-rust: No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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] checking lusan/learn-rust against try#26ad8a85dc4eed299af809e52f278da81e284602 for pr-138458 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusan%2Flearn-rust" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lusan/learn-rust on toolchain 26ad8a85dc4eed299af809e52f278da81e284602 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-7-tc2/source/Cargo.toml [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" "+26ad8a85dc4eed299af809e52f278da81e284602" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 41edd74fe64bf01a0fdb7feb11dc72660566575e5d1ed742619e68431ac8b60f [INFO] running `Command { std: "docker" "start" "-a" "41edd74fe64bf01a0fdb7feb11dc72660566575e5d1ed742619e68431ac8b60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "41edd74fe64bf01a0fdb7feb11dc72660566575e5d1ed742619e68431ac8b60f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "41edd74fe64bf01a0fdb7feb11dc72660566575e5d1ed742619e68431ac8b60f", kill_on_drop: false }` [INFO] [stdout] 41edd74fe64bf01a0fdb7feb11dc72660566575e5d1ed742619e68431ac8b60f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+26ad8a85dc4eed299af809e52f278da81e284602" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2cf73ee5add4445adab1b9be1102f3f9bee3604bf2798501a20da4c7fd7cc74f [INFO] running `Command { std: "docker" "start" "-a" "2cf73ee5add4445adab1b9be1102f3f9bee3604bf2798501a20da4c7fd7cc74f", kill_on_drop: false }` [INFO] [stderr] Checking 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: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: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] 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] [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] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hello_cargo` (bin "hello_cargo" test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "2cf73ee5add4445adab1b9be1102f3f9bee3604bf2798501a20da4c7fd7cc74f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2cf73ee5add4445adab1b9be1102f3f9bee3604bf2798501a20da4c7fd7cc74f", kill_on_drop: false }` [INFO] [stdout] 2cf73ee5add4445adab1b9be1102f3f9bee3604bf2798501a20da4c7fd7cc74f