[INFO] cloning repository https://github.com/casperin/small-site [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/casperin/small-site" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcasperin%2Fsmall-site"` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcasperin%2Fsmall-site'... [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ed2b8ea8fbc142ca2f56c6334017b501d4f800c5 [INFO] checking casperin/small-site against try#1a608893c03d7722effeb0058e82770bd36b4b3c for pr-66504-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcasperin%2Fsmall-site" "/workspace/builds/worker-2/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/casperin/small-site on toolchain 1a608893c03d7722effeb0058e82770bd36b4b3c [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/casperin/small-site [INFO] finished tweaking git repo https://github.com/casperin/small-site [INFO] tweaked toml for git repo https://github.com/casperin/small-site written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/casperin/small-site already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-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" "+1a608893c03d7722effeb0058e82770bd36b4b3c" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] a7decd94cd241731b641c4327cfe7630e20616ae4d9547e6971af82428250302 [INFO] running `"docker" "start" "-a" "a7decd94cd241731b641c4327cfe7630e20616ae4d9547e6971af82428250302"` [INFO] [stderr] Checking memchr v0.1.11 [INFO] [stderr] Checking thread-id v2.0.0 [INFO] [stderr] Checking thread_local v0.2.7 [INFO] [stderr] Checking aho-corasick v0.5.3 [INFO] [stderr] Checking regex v0.1.80 [INFO] [stderr] Checking markdown v0.2.0 [INFO] [stderr] Checking small-site v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0308]: if and else have incompatible types [INFO] [stderr] --> src/main.rs:152:13 [INFO] [stderr] | [INFO] [stderr] 149 | html += if key == "content" { [INFO] [stderr] | _________________- [INFO] [stderr] 150 | | &content [INFO] [stderr] | | -------- expected because of this [INFO] [stderr] 151 | | } else { [INFO] [stderr] 152 | | match vars.get(key) { [INFO] [stderr] | |_____________^ [INFO] [stderr] 153 | || Some(value) => value, [INFO] [stderr] 154 | || // if we didn't find it in the variables, then we probably shouldn't have tried to [INFO] [stderr] 155 | || // replace it, so we just put back whatever our regex found. [INFO] [stderr] 156 | || None => &m.as_str(), [INFO] [stderr] 157 | || } [INFO] [stderr] | ||_____________^ expected struct `std::string::String`, found `&str` [INFO] [stderr] 158 | | }; [INFO] [stderr] | |_________- if and else have incompatible types [INFO] [stderr] | [INFO] [stderr] = note: expected type `&std::string::String` [INFO] [stderr] found reference `&&str` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `small-site`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0308]: if and else have incompatible types [INFO] [stderr] --> src/main.rs:152:13 [INFO] [stderr] | [INFO] [stderr] 149 | html += if key == "content" { [INFO] [stderr] | _________________- [INFO] [stderr] 150 | | &content [INFO] [stderr] | | -------- expected because of this [INFO] [stderr] 151 | | } else { [INFO] [stderr] 152 | | match vars.get(key) { [INFO] [stderr] | |_____________^ [INFO] [stderr] 153 | || Some(value) => value, [INFO] [stderr] 154 | || // if we didn't find it in the variables, then we probably shouldn't have tried to [INFO] [stderr] 155 | || // replace it, so we just put back whatever our regex found. [INFO] [stderr] 156 | || None => &m.as_str(), [INFO] [stderr] 157 | || } [INFO] [stderr] | ||_____________^ expected struct `std::string::String`, found `&str` [INFO] [stderr] 158 | | }; [INFO] [stderr] | |_________- if and else have incompatible types [INFO] [stderr] | [INFO] [stderr] = note: expected type `&std::string::String` [INFO] [stderr] found reference `&&str` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `small-site`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "a7decd94cd241731b641c4327cfe7630e20616ae4d9547e6971af82428250302"` [INFO] running `"docker" "rm" "-f" "a7decd94cd241731b641c4327cfe7630e20616ae4d9547e6971af82428250302"` [INFO] [stdout] a7decd94cd241731b641c4327cfe7630e20616ae4d9547e6971af82428250302