[INFO] cloning repository https://github.com/zyxw59/formatting [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zyxw59/formatting" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzyxw59%2Fformatting", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzyxw59%2Fformatting'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 201fdeb35234149de913dc022610b556cbe79666 [INFO] checking zyxw59/formatting against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzyxw59%2Fformatting" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zyxw59/formatting on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zyxw59/formatting [INFO] finished tweaking git repo https://github.com/zyxw59/formatting [INFO] tweaked toml for git repo https://github.com/zyxw59/formatting written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zyxw59/formatting 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" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 42f228130b011e42ac4815ddaafe7fc3d8b5d6f8c307fa15961ae222cc851dfa [INFO] running `Command { std: "docker" "start" "-a" "42f228130b011e42ac4815ddaafe7fc3d8b5d6f8c307fa15961ae222cc851dfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "42f228130b011e42ac4815ddaafe7fc3d8b5d6f8c307fa15961ae222cc851dfa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42f228130b011e42ac4815ddaafe7fc3d8b5d6f8c307fa15961ae222cc851dfa", kill_on_drop: false }` [INFO] [stdout] 42f228130b011e42ac4815ddaafe7fc3d8b5d6f8c307fa15961ae222cc851dfa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cb56130e936f31a15cb5825558997ef35f537cf47b58c8321a5a756e24b607ae [INFO] running `Command { std: "docker" "start" "-a" "cb56130e936f31a15cb5825558997ef35f537cf47b58c8321a5a756e24b607ae", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling cc v1.0.13 [INFO] [stderr] Compiling unicode-xid v0.0.4 [INFO] [stderr] Compiling quote v0.3.15 [INFO] [stderr] Checking libc v0.2.40 [INFO] [stderr] Checking cfg-if v0.1.2 [INFO] [stderr] Checking rustc-demangle v0.1.7 [INFO] [stderr] Compiling synom v0.11.3 [INFO] [stderr] Compiling syn v0.11.11 [INFO] [stderr] Compiling backtrace-sys v0.1.16 [INFO] [stderr] Compiling synstructure v0.6.1 [INFO] [stderr] Compiling failure_derive v0.1.1 [INFO] [stderr] Checking backtrace v0.3.6 [INFO] [stderr] Checking failure v0.1.1 [INFO] [stderr] Checking formatting v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Backtrace`, `Context`, `Fail`, and `ResultExt` [INFO] [stdout] --> src/parser/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Backtrace, Context, Fail, ResultExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parser/mod.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use errors::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Backtrace`, `Context`, and `Fail` [INFO] [stdout] --> src/parser/bufread.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::{Backtrace, Context, Fail, ResultExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/errors.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | fn cause(&self) -> Option<&Fail> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn cause(&self) -> Option<&dyn Fail> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Backtrace`, `Context`, `Fail`, and `ResultExt` [INFO] [stdout] --> src/parser/mod.rs:1:15 [INFO] [stdout] | [INFO] [stdout] 1 | use failure::{Backtrace, Context, Fail, ResultExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ ^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ErrorKind` and `Error` [INFO] [stdout] --> src/parser/mod.rs:3:14 [INFO] [stdout] | [INFO] [stdout] 3 | use errors::{Error, ErrorKind}; [INFO] [stdout] | ^^^^^ ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Backtrace`, `Context`, and `Fail` [INFO] [stdout] --> src/parser/bufread.rs:3:15 [INFO] [stdout] | [INFO] [stdout] 3 | use failure::{Backtrace, Context, Fail, ResultExt}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^ ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/errors.rs:18:32 [INFO] [stdout] | [INFO] [stdout] 18 | fn cause(&self) -> Option<&Fail> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 | fn cause(&self) -> Option<&dyn Fail> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `kind` is never used [INFO] [stdout] --> src/errors.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Error { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 12 | pub fn kind(&self) -> ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EndOfInput`, `UnclosedVerbatim`, `Unicode`, and `Io` are never constructed [INFO] [stdout] --> src/errors.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 49 | #[fail(display = "Unexpected end of input")] [INFO] [stdout] 50 | EndOfInput, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 51 | #[fail(display = "Unclosed `\\verbatim` command (started at line {}, column {})", _0, _1)] [INFO] [stdout] 52 | UnclosedVerbatim(usize, usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | #[fail(display = "Invalid UTF-8 in line {}", _0)] [INFO] [stdout] 54 | Unicode(usize), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | #[fail(display = "An IO error occurred while reading line {}", _0)] [INFO] [stdout] 56 | Io(usize), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_io` is never used [INFO] [stdout] --> src/errors.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl ErrorKind { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 60 | pub fn from_io(err: &io::Error, line: usize) -> ErrorKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufReadIter` is never constructed [INFO] [stdout] --> src/parser/bufread.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BufReadIter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BufReadIter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/bufread.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BufReadIter { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 21 | /// Constructs a new `BufReadIter` from the given `BufRead`. [INFO] [stdout] 22 | pub fn new(input: R) -> BufReadIter { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn column(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn line(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn fill_buffer(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn next(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn expect_next(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn current(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn peek(&self) -> Option<&char> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `kind` is never used [INFO] [stdout] --> src/errors.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl Error { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] 12 | pub fn kind(&self) -> ErrorKind { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `EndOfInput`, `UnclosedVerbatim`, `Unicode`, and `Io` are never constructed [INFO] [stdout] --> src/errors.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub enum ErrorKind { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 49 | #[fail(display = "Unexpected end of input")] [INFO] [stdout] 50 | EndOfInput, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 51 | #[fail(display = "Unclosed `\\verbatim` command (started at line {}, column {})", _0, _1)] [INFO] [stdout] 52 | UnclosedVerbatim(usize, usize), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 53 | #[fail(display = "Invalid UTF-8 in line {}", _0)] [INFO] [stdout] 54 | Unicode(usize), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 55 | #[fail(display = "An IO error occurred while reading line {}", _0)] [INFO] [stdout] 56 | Io(usize), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `ErrorKind` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `from_io` is never used [INFO] [stdout] --> src/errors.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl ErrorKind { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 60 | pub fn from_io(err: &io::Error, line: usize) -> ErrorKind { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Parser` is never constructed [INFO] [stdout] --> src/parser/mod.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Parser { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Parser` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BufReadIter` is never constructed [INFO] [stdout] --> src/parser/bufread.rs:12:12 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct BufReadIter { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BufReadIter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/parser/bufread.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl BufReadIter { [INFO] [stdout] | ------------------------------- associated items in this implementation [INFO] [stdout] 21 | /// Constructs a new `BufReadIter` from the given `BufRead`. [INFO] [stdout] 22 | pub fn new(input: R) -> BufReadIter { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn column(&self) -> usize { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn line(&self) -> usize { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 43 | fn fill_buffer(&mut self) -> Result<(), Error> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn next(&mut self) -> Result, Error> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 66 | pub fn expect_next(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 72 | pub fn current(&self) -> Option<&char> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 78 | pub fn peek(&self) -> Option<&char> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.08s [INFO] running `Command { std: "docker" "inspect" "cb56130e936f31a15cb5825558997ef35f537cf47b58c8321a5a756e24b607ae", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb56130e936f31a15cb5825558997ef35f537cf47b58c8321a5a756e24b607ae", kill_on_drop: false }` [INFO] [stdout] cb56130e936f31a15cb5825558997ef35f537cf47b58c8321a5a756e24b607ae