[INFO] fetching crate lintrunner 0.8.0... [INFO] checking lintrunner-0.8.0 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate lintrunner 0.8.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate lintrunner 0.8.0 [INFO] finished tweaking crates.io crate lintrunner 0.8.0 [INFO] tweaked toml for crates.io crate lintrunner 0.8.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lintrunner 0.8.0 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate lintrunner 0.8.0 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] caa752e084757c33db468f72872075a2e6af0116f30d888fc7aaa064a88fc105 [INFO] running `Command { std: "docker" "start" "-a" "caa752e084757c33db468f72872075a2e6af0116f30d888fc7aaa064a88fc105", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "caa752e084757c33db468f72872075a2e6af0116f30d888fc7aaa064a88fc105", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "caa752e084757c33db468f72872075a2e6af0116f30d888fc7aaa064a88fc105", kill_on_drop: false }` [INFO] [stdout] caa752e084757c33db468f72872075a2e6af0116f30d888fc7aaa064a88fc105 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b67284df60d48b572f4a4187894691158e3c5524f88e918abbe01005351699ba [INFO] running `Command { std: "docker" "start" "-a" "b67284df60d48b572f4a4187894691158e3c5524f88e918abbe01005351699ba", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.123 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling regex-syntax v0.6.25 [INFO] [stderr] Compiling quote v1.0.18 [INFO] [stderr] Compiling indexmap v1.8.1 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling proc-macro-error-attr v1.0.4 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Compiling blake3 v1.3.1 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Checking os_str_bytes v6.0.0 [INFO] [stderr] Checking subtle v2.4.1 [INFO] [stderr] Checking terminal_size v0.1.17 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking smawk v0.3.1 [INFO] [stderr] Checking clap_lex v0.1.1 [INFO] [stderr] Checking digest v0.10.3 [INFO] [stderr] Checking dirs-sys v0.3.7 [INFO] [stderr] Checking console v0.15.0 [INFO] [stderr] Checking predicates-core v1.0.3 [INFO] [stderr] Checking arrayvec v0.7.2 [INFO] [stderr] Checking linked-hash-map v0.5.4 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking similar v2.1.0 [INFO] [stderr] Checking constant_time_eq v0.1.5 [INFO] [stderr] Checking arrayref v0.3.6 [INFO] [stderr] Compiling pest_meta v2.1.3 [INFO] [stderr] Checking tempfile v3.3.0 [INFO] [stderr] Checking env_logger v0.9.0 [INFO] [stderr] Checking indicatif v0.16.2 [INFO] [stderr] Checking yaml-rust v0.4.5 [INFO] [stderr] Checking directories v4.0.1 [INFO] [stderr] Checking termtree v0.2.4 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking predicates-tree v1.0.5 [INFO] [stderr] Checking predicates v2.1.1 [INFO] [stderr] Checking wait-timeout v0.2.0 [INFO] [stderr] Checking bstr v0.2.17 [INFO] [stderr] Checking assert_cmd v2.0.4 [INFO] [stderr] Compiling proc-macro-error v1.0.4 [INFO] [stderr] Compiling pest_generator v2.1.3 [INFO] [stderr] Compiling serde_derive v1.0.136 [INFO] [stderr] Compiling clap_derive v3.1.7 [INFO] [stderr] Compiling pest_derive v2.1.0 [INFO] [stderr] Compiling unicode-linebreak v0.1.2 [INFO] [stderr] Checking textwrap v0.15.0 [INFO] [stderr] Checking clap v3.1.9 [INFO] [stderr] Checking serde v1.0.136 [INFO] [stderr] Checking serde_json v1.0.79 [INFO] [stderr] Checking toml v0.5.9 [INFO] [stderr] Checking serde_yaml v0.8.23 [INFO] [stderr] Checking insta v1.14.0 [INFO] [stderr] Checking lintrunner v0.8.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `Line` is never constructed [INFO] [stdout] --> src/render.rs:341:8 [INFO] [stdout] | [INFO] [stdout] 341 | struct Line(Option); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | / /// Path to a toml file defining which linters to run [INFO] [stdout] 24 | | #[clap(long, default_value = ".lintrunner.toml", global = true)] [INFO] [stdout] 25 | | config: String, [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 31 | / /// Shell command that returns new-line separated paths to lint [INFO] [stdout] 32 | | /// [INFO] [stdout] 33 | | /// Example: To run on all files in the repo, use `--paths-cmd='git grep -Il .'`. [INFO] [stdout] 34 | | #[clap(long, conflicts_with = "paths-from", global = true)] [INFO] [stdout] 35 | | paths_cmd: Option, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 37 | / /// File with new-line separated paths to lint [INFO] [stdout] 38 | | #[clap(long, global = true)] [INFO] [stdout] 39 | | paths_from: Option, [INFO] [stdout] | |______________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | / /// Lint all files that differ between the working directory and the [INFO] [stdout] 42 | | /// specified revision. This argument can be any that is accepted [INFO] [stdout] 43 | | /// by `git diff-tree` [INFO] [stdout] 44 | | #[clap(long, short, conflicts_with_all=&["paths", "paths-cmd", "paths-from"], global = true)] [INFO] [stdout] 45 | | revision: Option, [INFO] [stdout] | |____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:47:5 [INFO] [stdout] | [INFO] [stdout] 47 | / /// Lint all files that differ between the merge base of HEAD with the [INFO] [stdout] 48 | | /// specified revision and HEAD. This argument can be any that is [INFO] [stdout] 49 | | /// accepted by `git diff-tree` [INFO] [stdout] 50 | | /// [INFO] [stdout] 51 | | /// Example: lintrunner -m master [INFO] [stdout] 52 | | #[clap(long, short, conflicts_with_all=&["paths", "paths-cmd", "paths-from", "revision"], global = true)] [INFO] [stdout] 53 | | merge_base_with: Option, [INFO] [stdout] | |___________________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | / /// Comma-separated list of linters to skip (e.g. --skip CLANGFORMAT,NOQA) [INFO] [stdout] 56 | | #[clap(long, global = true)] [INFO] [stdout] 57 | | skip: Option, [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:59:5 [INFO] [stdout] | [INFO] [stdout] 59 | / /// Comma-separated list of linters to run (opposite of --skip) [INFO] [stdout] 60 | | #[clap(long, global = true)] [INFO] [stdout] 61 | | take: Option, [INFO] [stdout] | |________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:73:5 [INFO] [stdout] | [INFO] [stdout] 73 | / /// exclusions defined in .lintrunner.toml; manually specifying a path will [INFO] [stdout] 74 | | /// not override them. [INFO] [stdout] 75 | | #[clap(conflicts_with_all = &["paths-cmd", "paths-from"], global = true)] [INFO] [stdout] 76 | | paths: Vec, [INFO] [stdout] | |______________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/main.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | / /// If set, use ths provided path to store any metadata generated by [INFO] [stdout] 84 | | /// lintrunner. By default, this is a platform-specific location for [INFO] [stdout] 85 | | /// application data (e.g. $XDG_DATA_HOME for UNIX systems.) [INFO] [stdout] 86 | | #[clap(long, global = true)] [INFO] [stdout] 87 | | data_path: Option, [INFO] [stdout] | |_____________________________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lintrunner` (bin "lintrunner") due to 9 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "b67284df60d48b572f4a4187894691158e3c5524f88e918abbe01005351699ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b67284df60d48b572f4a4187894691158e3c5524f88e918abbe01005351699ba", kill_on_drop: false }` [INFO] [stdout] b67284df60d48b572f4a4187894691158e3c5524f88e918abbe01005351699ba