[INFO] cloning repository https://github.com/edouardmenayde/dead-link-checker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/edouardmenayde/dead-link-checker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedouardmenayde%2Fdead-link-checker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedouardmenayde%2Fdead-link-checker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] b250fcf19bb31867484ada50ed5186fd447d6278
[INFO] testing edouardmenayde/dead-link-checker against beta-2022-07-16 for beta-1.63-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fedouardmenayde%2Fdead-link-checker" "/workspace/builds/worker-1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/edouardmenayde/dead-link-checker on toolchain beta-2022-07-16
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-16" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/edouardmenayde/dead-link-checker
[INFO] finished tweaking git repo https://github.com/edouardmenayde/dead-link-checker
[INFO] tweaked toml for git repo https://github.com/edouardmenayde/dead-link-checker written to /workspace/builds/worker-1/source/Cargo.toml
[INFO] crate git repo https://github.com/edouardmenayde/dead-link-checker already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-07-16" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-16" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 250d5fe412e1ab153561aa752bcac2f5bf8302d3caf24d22e63e871ef3885a16
[INFO] running `Command { std: "docker" "start" "-a" "250d5fe412e1ab153561aa752bcac2f5bf8302d3caf24d22e63e871ef3885a16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "250d5fe412e1ab153561aa752bcac2f5bf8302d3caf24d22e63e871ef3885a16", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "250d5fe412e1ab153561aa752bcac2f5bf8302d3caf24d22e63e871ef3885a16", kill_on_drop: false }`
[INFO] [stdout] 250d5fe412e1ab153561aa752bcac2f5bf8302d3caf24d22e63e871ef3885a16
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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=warn" "-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:5873ed620acfc3295992aedd9294443d62a478a48ba243bc5e6c4f5abaffa05f" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-07-16" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5aefddafb2c955788e1e06308a6c40495e886352a4efd12c13431075424e5135
[INFO] running `Command { std: "docker" "start" "-a" "5aefddafb2c955788e1e06308a6c40495e886352a4efd12c13431075424e5135", kill_on_drop: false }`
[INFO] [stderr]    Compiling version_check v0.1.5
[INFO] [stderr]    Compiling cfg-if v0.1.6
[INFO] [stderr]    Compiling rand_core v0.3.0
[INFO] [stderr]    Compiling futures v0.1.25
[INFO] [stderr]    Compiling byteorder v1.2.7
[INFO] [stderr]    Compiling scopeguard v0.3.3
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling crossbeam-utils v0.5.0
[INFO] [stderr]    Compiling slab v0.4.1
[INFO] [stderr]    Compiling void v1.0.2
[INFO] [stderr]    Compiling stable_deref_trait v1.1.1
[INFO] [stderr]    Compiling lazycell v1.2.0
[INFO] [stderr]    Compiling pkg-config v0.3.14
[INFO] [stderr]    Compiling cc v1.0.25
[INFO] [stderr]    Compiling nodrop v0.1.12
[INFO] [stderr]    Compiling memoffset v0.2.1
[INFO] [stderr]    Compiling siphasher v0.2.3
[INFO] [stderr]    Compiling itoa v0.4.3
[INFO] [stderr]    Compiling build_const v0.2.1
[INFO] [stderr]    Compiling serde v1.0.80
[INFO] [stderr]    Compiling httparse v1.3.3
[INFO] [stderr]    Compiling foreign-types-shared v0.1.1
[INFO] [stderr]    Compiling openssl v0.10.15
[INFO] [stderr]    Compiling indexmap v1.0.2
[INFO] [stderr]    Compiling ryu v0.2.6
[INFO] [stderr]    Compiling unicode-normalization v0.1.7
[INFO] [stderr]    Compiling native-tls v0.2.2
[INFO] [stderr]    Compiling string v0.1.1
[INFO] [stderr]    Compiling bitflags v1.0.4
[INFO] [stderr]    Compiling try-lock v0.2.2
[INFO] [stderr]    Compiling percent-encoding v1.0.1
[INFO] [stderr]    Compiling encoding_rs v0.8.10
[INFO] [stderr]    Compiling openssl-probe v0.1.2
[INFO] [stderr]    Compiling dtoa v0.4.3
[INFO] [stderr]    Compiling adler32 v1.0.3
[INFO] [stderr]    Compiling regex v1.0.5
[INFO] [stderr]    Compiling safemem v0.3.0
[INFO] [stderr]    Compiling ucd-util v0.1.2
[INFO] [stderr]    Compiling utf8-ranges v1.0.2
[INFO] [stderr]    Compiling iovec v0.1.2
[INFO] [stderr]    Compiling num_cpus v1.8.0
[INFO] [stderr]    Compiling log v0.4.6
[INFO] [stderr]    Compiling net2 v0.2.33
[INFO] [stderr]    Compiling owning_ref v0.3.3
[INFO] [stderr]    Compiling unreachable v1.0.0
[INFO] [stderr]    Compiling arrayvec v0.4.7
[INFO] [stderr]    Compiling rand_core v0.2.2
[INFO] [stderr]    Compiling foreign-types v0.3.2
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling crc v1.8.1
[INFO] [stderr]    Compiling lazy_static v1.1.0
[INFO] [stderr]    Compiling unicase v1.4.2
[INFO] [stderr]    Compiling unicase v2.2.0
[INFO] [stderr]    Compiling memchr v2.1.1
[INFO] [stderr]    Compiling base64 v0.9.3
[INFO] [stderr]    Compiling regex-syntax v0.6.2
[INFO] [stderr]    Compiling bytes v0.4.10
[INFO] [stderr]    Compiling smallvec v0.6.5
[INFO] [stderr]    Compiling lock_api v0.1.4
[INFO] [stderr]    Compiling rand v0.5.5
[INFO] [stderr]    Compiling idna v0.1.5
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling mio v0.6.16
[INFO] [stderr]    Compiling tokio-executor v0.1.5
[INFO] [stderr]    Compiling futures-cpupool v0.1.8
[INFO] [stderr]    Compiling want v0.0.6
[INFO] [stderr]    Compiling tokio-current-thread v0.1.3
[INFO] [stderr]    Compiling tokio-timer v0.2.7
[INFO] [stderr]    Compiling tokio-io v0.1.10
[INFO] [stderr]    Compiling http v0.1.13
[INFO] [stderr]    Compiling mio-uds v0.6.7
[INFO] [stderr]    Compiling libflate v0.1.18
[INFO] [stderr]    Compiling parking_lot_core v0.3.1
[INFO] [stderr]    Compiling mime v0.3.12
[INFO] [stderr]    Compiling url v1.7.2
[INFO] [stderr]    Compiling crossbeam-epoch v0.5.2
[INFO] [stderr]    Compiling thread_local v0.3.6
[INFO] [stderr]    Compiling uuid v0.7.1
[INFO] [stderr]    Compiling phf_shared v0.7.23
[INFO] [stderr]    Compiling openssl-sys v0.9.39
[INFO] [stderr]    Compiling aho-corasick v0.6.9
[INFO] [stderr]    Compiling tokio-codec v0.1.1
[INFO] [stderr]    Compiling crossbeam-deque v0.6.1
[INFO] [stderr]    Compiling phf_generator v0.7.23
[INFO] [stderr]    Compiling phf v0.7.23
[INFO] [stderr]    Compiling phf_codegen v0.7.23
[INFO] [stderr]    Compiling parking_lot v0.6.4
[INFO] [stderr]    Compiling tokio-threadpool v0.1.8
[INFO] [stderr]    Compiling mime_guess v2.0.0-alpha.6
[INFO] [stderr]    Compiling tokio-reactor v0.1.6
[INFO] [stderr]    Compiling tokio-udp v0.1.2
[INFO] [stderr]    Compiling tokio-tcp v0.1.2
[INFO] [stderr]    Compiling tokio-uds v0.2.3
[INFO] [stderr]    Compiling tokio-fs v0.1.4
[INFO] [stderr]    Compiling tokio v0.1.11
[INFO] [stderr]    Compiling h2 v0.1.13
[INFO] [stderr]    Compiling hyper v0.12.13
[INFO] [stderr]    Compiling serde_json v1.0.32
[INFO] [stderr]    Compiling serde_urlencoded v0.5.3
[INFO] [stderr]    Compiling hyper-tls v0.3.1
[INFO] [stderr]    Compiling reqwest v0.9.4
[INFO] [stderr]    Compiling dead-link-checker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `core::fmt`
[INFO] [stdout]   --> src/main.rs:24:5
[INFO] [stdout]    |
[INFO] [stdout] 24 | use core::fmt;
[INFO] [stdout]    |     ^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `if` and `else` have incompatible types
[INFO] [stdout]    --> src/main.rs:89:20
[INFO] [stdout]     |
[INFO] [stdout] 48  |     /             if res.status().is_success() {
[INFO] [stdout] 49  |     |               let body = mem::replace(res.body_mut(), Decoder::empty());
[INFO] [stdout] 50  |     |               body.concat2()
[INFO] [stdout]     |    _|_______________-
[INFO] [stdout] 51  |   | |                   .map(move |body| {
[INFO] [stdout]     |  _|_|________________________-
[INFO] [stdout] 52  | | | |                     let mut body = Cursor::new(body);
[INFO] [stdout] 53  | | | |                     let mut writer: Vec<u8> = vec![];
[INFO] [stdout] 54  | | | |                     let _ = io::copy(&mut body, &mut writer).map_err(|err| {
[INFO] [stdout] ...   | | |
[INFO] [stdout] 83  | | | |                     }
[INFO] [stdout] 84  | | | |                   })
[INFO] [stdout]     | |_|_|___________________- one of the expected closures
[INFO] [stdout] 85  |   | |                   .then(|_| {
[INFO] [stdout]     |  _|_|_________________________-
[INFO] [stdout] 86  | | | |                     future::ok(())
[INFO] [stdout] 87  | | | |                   })
[INFO] [stdout]     | | |_|___________________-- expected because of this
[INFO] [stdout]     | |___|___________________|
[INFO] [stdout]     |     |                   one of the expected closures
[INFO] [stdout] 88  |     |
[INFO] [stdout] 89  |     |             } else if res.status().is_redirection() {
[INFO] [stdout]     |  ___|____________________^
[INFO] [stdout] 90  | |   |               let redirection = res.headers().get("Location").unwrap().to_str().unwrap();
[INFO] [stdout] 91  | |   |               let links = vec![redirection.to_string()];
[INFO] [stdout] 92  | |   |               processing_units.fetch_sub(1, Ordering::SeqCst); // Must be before the tx send
[INFO] [stdout] ...   |   |
[INFO] [stdout] 104 | |   |               });
[INFO] [stdout] 105 | |   |             }
[INFO] [stdout]     | |   |             ^
[INFO] [stdout]     | |   |_____________|
[INFO] [stdout]     | |_________________`if` and `else` have incompatible types
[INFO] [stdout]     |                   expected struct `futures::Then`, found `()`
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `futures::Then<futures::Map<Concat2<reqwest::async::Decoder>, [closure@src/main.rs:51:24: 84:20]>, Failed<(), _>, [closure@src/main.rs:85:25: 87:20]>`
[INFO] [stdout]             found unit type `()`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to previous error; 1 warning emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `dead-link-checker` due to 2 previous errors; 1 warning emitted
[INFO] running `Command { std: "docker" "inspect" "5aefddafb2c955788e1e06308a6c40495e886352a4efd12c13431075424e5135", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5aefddafb2c955788e1e06308a6c40495e886352a4efd12c13431075424e5135", kill_on_drop: false }`
[INFO] [stdout] 5aefddafb2c955788e1e06308a6c40495e886352a4efd12c13431075424e5135
