[INFO] cloning repository https://github.com/dylmarcor/rust_temp_converter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dylmarcor/rust_temp_converter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdylmarcor%2Frust_temp_converter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdylmarcor%2Frust_temp_converter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0821dfa0b1db8ac7974805220b6c6cb65a79fe0c [INFO] checking dylmarcor/rust_temp_converter against try#5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 for pr-143808 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdylmarcor%2Frust_temp_converter" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/dylmarcor/rust_temp_converter [INFO] finished tweaking git repo https://github.com/dylmarcor/rust_temp_converter [INFO] tweaked toml for git repo https://github.com/dylmarcor/rust_temp_converter written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/dylmarcor/rust_temp_converter on toolchain 5de9e0e6cf775e94e0de2003f35e183f3f77bfe8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/dylmarcor/rust_temp_converter 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" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4c7300c18c2a9a942d2b2ae6d44bfe0bbd2127b8549984c57d63206881ef0db [INFO] running `Command { std: "docker" "start" "-a" "c4c7300c18c2a9a942d2b2ae6d44bfe0bbd2127b8549984c57d63206881ef0db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4c7300c18c2a9a942d2b2ae6d44bfe0bbd2127b8549984c57d63206881ef0db", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4c7300c18c2a9a942d2b2ae6d44bfe0bbd2127b8549984c57d63206881ef0db", kill_on_drop: false }` [INFO] [stdout] c4c7300c18c2a9a942d2b2ae6d44bfe0bbd2127b8549984c57d63206881ef0db [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+5de9e0e6cf775e94e0de2003f35e183f3f77bfe8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 560f46a1f1d923ce5085ffa51aa746cb226a39b353cfa7230ff31eb3951a3adc [INFO] running `Command { std: "docker" "start" "-a" "560f46a1f1d923ce5085ffa51aa746cb226a39b353cfa7230ff31eb3951a3adc", kill_on_drop: false }` [INFO] [stderr] Checking temp_conv v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | fn temp_choice() -> &str { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` [INFO] [stdout] | [INFO] [stdout] 89 | fn temp_choice() -> &'static str { [INFO] [stdout] | +++++++ [INFO] [stdout] help: instead, you are more likely to want to return an owned value [INFO] [stdout] | [INFO] [stdout] 89 - fn temp_choice() -> &str { [INFO] [stdout] 89 + fn temp_choice() -> String { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> src/main.rs:89:21 [INFO] [stdout] | [INFO] [stdout] 89 | fn temp_choice() -> &str { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime, but this is uncommon unless you're returning a borrowed value from a `const` or a `static` [INFO] [stdout] | [INFO] [stdout] 89 | fn temp_choice() -> &'static str { [INFO] [stdout] | +++++++ [INFO] [stdout] help: instead, you are more likely to want to return an owned value [INFO] [stdout] | [INFO] [stdout] 89 - fn temp_choice() -> &str { [INFO] [stdout] 89 + fn temp_choice() -> String { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | .read_line(&mut choice) [INFO] [stdout] | --------- ^^^^^^^^^^^ expected `&mut String`, found `&mut char` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut String` [INFO] [stdout] found mutable reference `&mut char` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/std/src/io/stdio.rs:411:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | if choice == "C" { [INFO] [stdout] | ------ ^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] | [INFO] [stdout] help: if you meant to write a `char` literal, use single quotes [INFO] [stdout] | [INFO] [stdout] 18 - if choice == "C" { [INFO] [stdout] 18 + if choice == 'C' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | .read_line(&mut choice) [INFO] [stdout] | --------- ^^^^^^^^^^^ expected `&mut String`, found `&mut char` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected mutable reference `&mut String` [INFO] [stdout] found mutable reference `&mut char` [INFO] [stdout] note: method defined here [INFO] [stdout] --> /rustc/5de9e0e6cf775e94e0de2003f35e183f3f77bfe8/library/std/src/io/stdio.rs:411:12 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | if choice == "C" { [INFO] [stdout] | ------ ^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] | [INFO] [stdout] help: if you meant to write a `char` literal, use single quotes [INFO] [stdout] | [INFO] [stdout] 18 - if choice == "C" { [INFO] [stdout] 18 + if choice == 'C' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | } else if choice == "F" { [INFO] [stdout] | ------ ^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] | [INFO] [stdout] help: if you meant to write a `char` literal, use single quotes [INFO] [stdout] | [INFO] [stdout] 50 - } else if choice == "F" { [INFO] [stdout] 50 + } else if choice == 'F' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:50:29 [INFO] [stdout] | [INFO] [stdout] 50 | } else if choice == "F" { [INFO] [stdout] | ------ ^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] | [INFO] [stdout] help: if you meant to write a `char` literal, use single quotes [INFO] [stdout] | [INFO] [stdout] 50 - } else if choice == "F" { [INFO] [stdout] 50 + } else if choice == 'F' { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | } else if choice == "END" { [INFO] [stdout] | ------ ^^^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:83:29 [INFO] [stdout] | [INFO] [stdout] 83 | } else if choice == "END" { [INFO] [stdout] | ------ ^^^^^ expected `char`, found `&str` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `char` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if choice == "F" { [INFO] [stdout] 100 | | "F" [INFO] [stdout] | | ^^^ expected `()`, found `&str` [INFO] [stdout] 101 | | } else if choice == "C" { [INFO] [stdout] 102 | | "C" [INFO] [stdout] ... | [INFO] [stdout] 107 | | continue [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 100 | return "F"; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 101 | } else if choice == "C" { [INFO] [stdout] | ________________- [INFO] [stdout] 102 | | "C" [INFO] [stdout] | | ^^^ expected `()`, found `&str` [INFO] [stdout] 103 | | } else if choice == "END" { [INFO] [stdout] 104 | | break; [INFO] [stdout] ... | [INFO] [stdout] 107 | | continue [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 102 | return "C"; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:100:13 [INFO] [stdout] | [INFO] [stdout] 99 | / if choice == "F" { [INFO] [stdout] 100 | | "F" [INFO] [stdout] | | ^^^ expected `()`, found `&str` [INFO] [stdout] 101 | | } else if choice == "C" { [INFO] [stdout] 102 | | "C" [INFO] [stdout] ... | [INFO] [stdout] 107 | | continue [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 100 | return "F"; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 101 | } else if choice == "C" { [INFO] [stdout] | ________________- [INFO] [stdout] 102 | | "C" [INFO] [stdout] | | ^^^ expected `()`, found `&str` [INFO] [stdout] 103 | | } else if choice == "END" { [INFO] [stdout] 104 | | break; [INFO] [stdout] ... | [INFO] [stdout] 107 | | continue [INFO] [stdout] 108 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] help: you might have meant to return this value [INFO] [stdout] | [INFO] [stdout] 102 | return "C"; [INFO] [stdout] | ++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0106, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `temp_conv` (bin "temp_conv" test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `temp_conv` (bin "temp_conv") due to 7 previous errors [INFO] running `Command { std: "docker" "inspect" "560f46a1f1d923ce5085ffa51aa746cb226a39b353cfa7230ff31eb3951a3adc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "560f46a1f1d923ce5085ffa51aa746cb226a39b353cfa7230ff31eb3951a3adc", kill_on_drop: false }` [INFO] [stdout] 560f46a1f1d923ce5085ffa51aa746cb226a39b353cfa7230ff31eb3951a3adc