[INFO] fetching crate preftool-dirs 0.2.0... [INFO] checking preftool-dirs-0.2.0 against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] extracting crate preftool-dirs 0.2.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate preftool-dirs 0.2.0 [INFO] finished tweaking crates.io crate preftool-dirs 0.2.0 [INFO] tweaked toml for crates.io crate preftool-dirs 0.2.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate preftool-dirs 0.2.0 on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 51 packages to latest compatible versions [INFO] [stderr] Adding bitflags v1.3.2 (available: v2.9.1) [INFO] [stderr] Adding cfg-if v0.1.10 (available: v1.0.1) [INFO] [stderr] Adding dirs-sys v0.1.0 (available: v0.5.0) [INFO] [stderr] Adding slog-stdlog v3.0.5 (available: v4.1.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 02621a20678acca9ef3b6202f1f06878617086fe6f057d58d6d942cdd7ec5627 [INFO] running `Command { std: "docker" "start" "-a" "02621a20678acca9ef3b6202f1f06878617086fe6f057d58d6d942cdd7ec5627", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "02621a20678acca9ef3b6202f1f06878617086fe6f057d58d6d942cdd7ec5627", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "02621a20678acca9ef3b6202f1f06878617086fe6f057d58d6d942cdd7ec5627", kill_on_drop: false }` [INFO] [stdout] 02621a20678acca9ef3b6202f1f06878617086fe6f057d58d6d942cdd7ec5627 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e11eb51ea4a7498782ab703f6356e17d133ea7bc0cca4c2b63ac73683aec6bbd [INFO] running `Command { std: "docker" "start" "-a" "e11eb51ea4a7498782ab703f6356e17d133ea7bc0cca4c2b63ac73683aec6bbd", kill_on_drop: false }` [INFO] [stderr] Compiling slog v2.7.0 [INFO] [stderr] Checking arc-swap v1.7.1 [INFO] [stderr] Checking crossbeam v0.2.12 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Checking log v0.3.9 [INFO] [stderr] Checking dirs-sys v0.1.0 [INFO] [stderr] Checking caseless v0.2.2 [INFO] [stderr] Checking slog-scope v4.4.0 [INFO] [stderr] Checking slog-stdlog v3.0.5 [INFO] [stderr] Checking preftool v0.2.0 [INFO] [stderr] Checking preftool-dirs v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error: no rules expected `:` [INFO] [stdout] --> src/lib.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 16 | macro_rules! vec_opt { [INFO] [stdout] | -------------------- when calling this macro [INFO] [stdout] ... [INFO] [stdout] 22 | 1 + vec_opt!(__count $($value:expr,)*) [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] | [INFO] [stdout] ::: src/lin.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | let dirs = vec_opt!( [INFO] [stdout] | ______________- [INFO] [stdout] 19 | | // XDG config path [INFO] [stdout] 20 | | env::var_os("XDG_CONFIG_HOME") [INFO] [stdout] 21 | | .and_then(dirs_sys::is_absolute_path) [INFO] [stdout] ... | [INFO] [stdout] 26 | | .map(|home_dir| home_dir.join(".config").join(&application)), [INFO] [stdout] 27 | | ); [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: while trying to match `,` [INFO] [stdout] --> src/lib.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | (__count $_fst:expr, $($value:expr,)*) => { [INFO] [stdout] | ^ [INFO] [stdout] = note: this error originates in the macro `vec_opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: no rules expected `:` [INFO] [stdout] --> src/lib.rs:22:34 [INFO] [stdout] | [INFO] [stdout] 16 | macro_rules! vec_opt { [INFO] [stdout] | -------------------- when calling this macro [INFO] [stdout] ... [INFO] [stdout] 22 | 1 + vec_opt!(__count $($value:expr,)*) [INFO] [stdout] | ^ no rules expected this token in macro call [INFO] [stdout] | [INFO] [stdout] ::: src/lin.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | let dirs = vec_opt!( [INFO] [stdout] | ______________- [INFO] [stdout] 19 | | // XDG config path [INFO] [stdout] 20 | | env::var_os("XDG_CONFIG_HOME") [INFO] [stdout] 21 | | .and_then(dirs_sys::is_absolute_path) [INFO] [stdout] ... | [INFO] [stdout] 26 | | .map(|home_dir| home_dir.join(".config").join(&application)), [INFO] [stdout] 27 | | ); [INFO] [stdout] | |___- in this macro invocation [INFO] [stdout] | [INFO] [stdout] note: while trying to match `,` [INFO] [stdout] --> src/lib.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | (__count $_fst:expr, $($value:expr,)*) => { [INFO] [stdout] | ^ [INFO] [stdout] = note: this error originates in the macro `vec_opt` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:204:6 [INFO] [stdout] | [INFO] [stdout] 204 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:204:6 [INFO] [stdout] | [INFO] [stdout] 204 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/lib.rs:220:6 [INFO] [stdout] | [INFO] [stdout] 220 | }; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:262:60 [INFO] [stdout] | [INFO] [stdout] 262 | fn serialize(&self, rec: &slog::Record, serializer: &mut slog::Serializer) -> slog::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 262 | fn serialize(&self, rec: &slog::Record, serializer: &mut dyn slog::Serializer) -> slog::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:300:66 [INFO] [stdout] | [INFO] [stdout] 300 | fn serialize(&self, rec: &Record, key: Key, serializer: &mut Serializer) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 300 | fn serialize(&self, rec: &Record, key: Key, serializer: &mut dyn Serializer) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:262:60 [INFO] [stdout] | [INFO] [stdout] 262 | fn serialize(&self, rec: &slog::Record, serializer: &mut slog::Serializer) -> slog::Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) 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] 262 | fn serialize(&self, rec: &slog::Record, serializer: &mut dyn slog::Serializer) -> slog::Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:300:66 [INFO] [stdout] | [INFO] [stdout] 300 | fn serialize(&self, rec: &Record, key: Key, serializer: &mut Serializer) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 300 | fn serialize(&self, rec: &Record, key: Key, serializer: &mut dyn Serializer) -> Result { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `preftool-dirs` (lib test) due to 1 previous error; 4 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `preftool-dirs` (lib) due to 1 previous error; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "e11eb51ea4a7498782ab703f6356e17d133ea7bc0cca4c2b63ac73683aec6bbd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e11eb51ea4a7498782ab703f6356e17d133ea7bc0cca4c2b63ac73683aec6bbd", kill_on_drop: false }` [INFO] [stdout] e11eb51ea4a7498782ab703f6356e17d133ea7bc0cca4c2b63ac73683aec6bbd