[INFO] cloning repository https://github.com/DanielKeep/rust-scan-calc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/DanielKeep/rust-scan-calc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanielKeep%2Frust-scan-calc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanielKeep%2Frust-scan-calc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e8050e08426a9ce55212d136931220d93ca1feb8 [INFO] checking DanielKeep/rust-scan-calc against master#9fa580b1175018b0a276b0bc68f9827a106f7260 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FDanielKeep%2Frust-scan-calc" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/DanielKeep/rust-scan-calc on toolchain 9fa580b1175018b0a276b0bc68f9827a106f7260 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/DanielKeep/rust-scan-calc [INFO] finished tweaking git repo https://github.com/DanielKeep/rust-scan-calc [INFO] tweaked toml for git repo https://github.com/DanielKeep/rust-scan-calc written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/DanielKeep/rust-scan-calc already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /workspace/builds/worker-10/source/src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `/workspace/builds/worker-10/source/src/main.rs` was erroneously implicitly accepted for binary `scan-calc`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] error: the lock file /workspace/builds/worker-10/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/DanielKeep/rust-scan.git` [INFO] [stderr] Updating git repository `https://github.com/DanielKeep/rust-scan-util.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /workspace/builds/worker-10/source/src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `/workspace/builds/worker-10/source/src/main.rs` was erroneously implicitly accepted for binary `scan-calc`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 29ee895b82f2c7bd32b384696bc7811d4e5d07dcd13ca9af597647f45b9a967b [INFO] running `Command { std: "docker" "start" "-a" "29ee895b82f2c7bd32b384696bc7811d4e5d07dcd13ca9af597647f45b9a967b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "29ee895b82f2c7bd32b384696bc7811d4e5d07dcd13ca9af597647f45b9a967b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "29ee895b82f2c7bd32b384696bc7811d4e5d07dcd13ca9af597647f45b9a967b", kill_on_drop: false }` [INFO] [stdout] 29ee895b82f2c7bd32b384696bc7811d4e5d07dcd13ca9af597647f45b9a967b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+9fa580b1175018b0a276b0bc68f9827a106f7260" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 74ffcd30eee9420eaf0272b5785b225727232259c23c211c1d3bc965e9ac27c5 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "74ffcd30eee9420eaf0272b5785b225727232259c23c211c1d3bc965e9ac27c5", kill_on_drop: false }` [INFO] [stderr] warning: An explicit [[bin]] section is specified in Cargo.toml which currently [INFO] [stderr] disables Cargo from automatically inferring other binary targets. [INFO] [stderr] This inference behavior will change in the Rust 2018 edition and the following [INFO] [stderr] files will be included as a binary target: [INFO] [stderr] [INFO] [stderr] * /opt/rustwide/workdir/src/main.rs [INFO] [stderr] [INFO] [stderr] This is likely to break cargo build or cargo test as these files may not be [INFO] [stderr] ready to be compiled as a binary target today. You can future-proof yourself [INFO] [stderr] and disable this warning by adding `autobins = false` to your [package] [INFO] [stderr] section. You may also move the files to a location where Cargo would not [INFO] [stderr] automatically infer them to be a target, such as in subfolders. [INFO] [stderr] [INFO] [stderr] For more information on this warning you can consult [INFO] [stderr] https://github.com/rust-lang/cargo/issues/5330 [INFO] [stderr] warning: path `/opt/rustwide/workdir/src/main.rs` was erroneously implicitly accepted for binary `scan-calc`, [INFO] [stderr] please set bin.path in Cargo.toml [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling scan_util v0.5.5 (https://github.com/DanielKeep/rust-scan-util.git#1a13f784) [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/lib.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | fn len_while(s: &str, pred: |char| -> bool) -> Option { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/io.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | for _ in range(0u, n) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `s` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/scanner.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | let fs = |s:&str| -> F s.parse().unwrap(); [INFO] [stdout] | ^----------------- [INFO] [stdout] | | [INFO] [stdout] | expected `{` [INFO] [stdout] | help: try placing this code inside a block: `{ s.parse().unwrap() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected type, found `|` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/lib.rs:46:29 [INFO] [stdout] | [INFO] [stdout] 46 | fn len_while(s: &str, pred: |char| -> bool) -> Option { [INFO] [stdout] | ^ expected type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: invalid suffix `u` for number literal [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/io.rs:83:17 [INFO] [stdout] | [INFO] [stdout] 83 | for _ in range(0u, n) { [INFO] [stdout] | ^^ invalid suffix `u` [INFO] [stdout] | [INFO] [stdout] = help: the suffix must be one of the numeric types (`u32`, `isize`, `f32`, etc.) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `{`, found `s` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/scanner.rs:241:27 [INFO] [stdout] | [INFO] [stdout] 241 | let fs = |s:&str| -> F s.parse().unwrap(); [INFO] [stdout] | ^----------------- [INFO] [stdout] | | [INFO] [stdout] | expected `{` [INFO] [stdout] | help: try placing this code inside a block: `{ s.parse().unwrap() }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `$scan_fn:path` is followed by `->`, which is not allowed for `path` fragments [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/scanner.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | ($scan_fn:path -> $T:ty as $name:expr) => { [INFO] [stdout] | ^^ not allowed after `path` fragments [INFO] [stdout] | [INFO] [stdout] = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `log` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/lib.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | #[phase(plugin, link)] extern crate log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `$scan_fn:path` is followed by `->`, which is not allowed for `path` fragments [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/scanner.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | ($scan_fn:path -> $T:ty as $name:expr) => { [INFO] [stdout] | ^^ not allowed after `path` fragments [INFO] [stdout] | [INFO] [stdout] = note: allowed there are: `{`, `[`, `=>`, `,`, `>`, `=`, `:`, `;`, `|`, `as` or `where` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stdout] error[E0463]: can't find crate for `log` [INFO] [stdout] --> /opt/rustwide/cargo-home/git/checkouts/rust-scan-util-26f80c5682685f3f/1a13f78/src/lib.rs:29:24 [INFO] [stdout] | [INFO] [stdout] 29 | #[phase(plugin, link)] extern crate log; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ can't find crate [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0463`. [INFO] [stdout] [INFO] [stderr] error: could not compile `scan_util` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "74ffcd30eee9420eaf0272b5785b225727232259c23c211c1d3bc965e9ac27c5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74ffcd30eee9420eaf0272b5785b225727232259c23c211c1d3bc965e9ac27c5", kill_on_drop: false }` [INFO] [stdout] 74ffcd30eee9420eaf0272b5785b225727232259c23c211c1d3bc965e9ac27c5