[INFO] fetching crate tergo-formatter 0.2.11... [INFO] checking tergo-formatter-0.2.11 against try#87f2ecc56b5f6032b075c8934ebc77f28d57183c for pr-148190 [INFO] extracting crate tergo-formatter 0.2.11 into /workspace/builds/worker-5-tc2/source [INFO] started tweaking crates.io crate tergo-formatter 0.2.11 [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate tergo-formatter 0.2.11 [INFO] tweaked toml for crates.io crate tergo-formatter 0.2.11 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate tergo-formatter 0.2.11 on toolchain 87f2ecc56b5f6032b075c8934ebc77f28d57183c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate tergo-formatter 0.2.11 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" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] df067321749fbf4038630e4f43fe7f2ab309c24b8217d48bcc4e09302a4fa4a4 [INFO] running `Command { std: "docker" "start" "-a" "df067321749fbf4038630e4f43fe7f2ab309c24b8217d48bcc4e09302a4fa4a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "df067321749fbf4038630e4f43fe7f2ab309c24b8217d48bcc4e09302a4fa4a4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "df067321749fbf4038630e4f43fe7f2ab309c24b8217d48bcc4e09302a4fa4a4", kill_on_drop: false }` [INFO] [stdout] df067321749fbf4038630e4f43fe7f2ab309c24b8217d48bcc4e09302a4fa4a4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+87f2ecc56b5f6032b075c8934ebc77f28d57183c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7d09c21fb5afd6f98bae8c99334eb131ed95bf47f59a603dff0e78c4567a0908 [INFO] running `Command { std: "docker" "start" "-a" "7d09c21fb5afd6f98bae8c99334eb131ed95bf47f59a603dff0e78c4567a0908", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.227 [INFO] [stderr] Compiling proc-macro2 v1.0.98 [INFO] [stderr] Checking log v0.4.28 [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Compiling serde v1.0.227 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking winnow v0.7.13 [INFO] [stderr] Checking toml_writer v1.0.3 [INFO] [stderr] Checking deranged v0.4.0 [INFO] [stderr] Checking tergo-tokenizer v0.2.5 [INFO] [stderr] Compiling time-macros v0.2.22 [INFO] [stderr] Checking nom v8.0.0 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking time v0.3.41 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Checking simple_logger v5.0.0 [INFO] [stderr] Checking toml_parser v1.0.3 [INFO] [stderr] Checking tergo-parser v0.2.6 [INFO] [stderr] Checking toml_datetime v0.7.2 [INFO] [stderr] Checking serde_spanned v1.0.2 [INFO] [stderr] Checking toml v0.9.7 [INFO] [stderr] Compiling serde_derive v1.0.227 [INFO] [stderr] Checking tergo-formatter v0.2.11 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `nl` [INFO] [stdout] --> src/code.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) use nl; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hardbreak` [INFO] [stdout] --> src/code.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) use hardbreak; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nl` [INFO] [stdout] --> src/code.rs:88:16 [INFO] [stdout] | [INFO] [stdout] 88 | pub(crate) use nl; [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hardbreak` [INFO] [stdout] --> src/code.rs:126:16 [INFO] [stdout] | [INFO] [stdout] 126 | pub(crate) use hardbreak; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 56 | let post_format_hooks = vec![trim_line_endings, trim_trailing_line]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[fn(...) -> ... {trim_line_endings}; _]`, found `[fn(String) -> String; 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(std::string::String) -> std::string::String {trim_line_endings}; _]` [INFO] [stdout] found array `[fn(std::string::String) -> std::string::String; 2]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `trim_line_endings as fn(std::string::String) -> std::string::String` [INFO] [stdout] help: the return type of this call is `[fn(std::string::String) -> std::string::String; 2]` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 56 | let post_format_hooks = vec![trim_line_endings, trim_trailing_line]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 56 | let post_format_hooks = vec![trim_line_endings, trim_trailing_line]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `[fn(...) -> ... {trim_line_endings}; _]`, found `[fn(String) -> String; 2]` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected array `[fn(std::string::String) -> std::string::String {trim_line_endings}; _]` [INFO] [stdout] found array `[fn(std::string::String) -> std::string::String; 2]` [INFO] [stdout] = help: consider casting the fn item to a fn pointer: `trim_line_endings as fn(std::string::String) -> std::string::String` [INFO] [stdout] help: the return type of this call is `[fn(std::string::String) -> std::string::String; 2]` due to the type of the argument passed [INFO] [stdout] --> src/lib.rs:56:29 [INFO] [stdout] | [INFO] [stdout] 56 | let post_format_hooks = vec![trim_line_endings, trim_trailing_line]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ this argument influences the return type of `write_box_via_move` [INFO] [stdout] note: function defined here [INFO] [stdout] --> /rustc/87f2ecc56b5f6032b075c8934ebc77f28d57183c/library/alloc/src/intrinsics.rs:15:7 [INFO] [stdout] = note: this error originates in the macro `vec` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tergo-formatter` (lib test) due to 1 previous error; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `tergo-formatter` (lib) due to 1 previous error; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "7d09c21fb5afd6f98bae8c99334eb131ed95bf47f59a603dff0e78c4567a0908", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7d09c21fb5afd6f98bae8c99334eb131ed95bf47f59a603dff0e78c4567a0908", kill_on_drop: false }` [INFO] [stdout] 7d09c21fb5afd6f98bae8c99334eb131ed95bf47f59a603dff0e78c4567a0908