[INFO] fetching crate wd_log 0.1.5... [INFO] checking wd_log-0.1.5 against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] extracting crate wd_log 0.1.5 into /workspace/builds/worker-11/source [INFO] validating manifest of crates.io crate wd_log 0.1.5 on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate wd_log 0.1.5 [INFO] finished tweaking crates.io crate wd_log 0.1.5 [INFO] tweaked toml for crates.io crate wd_log 0.1.5 written to /workspace/builds/worker-11/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 74c9a31292837cebca51949c16fc9a9ec31e56c695102d6660183a2c63c08431 [INFO] running `Command { std: "docker" "start" "-a" "74c9a31292837cebca51949c16fc9a9ec31e56c695102d6660183a2c63c08431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "74c9a31292837cebca51949c16fc9a9ec31e56c695102d6660183a2c63c08431", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "74c9a31292837cebca51949c16fc9a9ec31e56c695102d6660183a2c63c08431", kill_on_drop: false }` [INFO] [stdout] 74c9a31292837cebca51949c16fc9a9ec31e56c695102d6660183a2c63c08431 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/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" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42f9c8621214d57d73d089e5c84297c92e15fcfcbd671d95e749a9abc79fb959 [INFO] running `Command { std: "docker" "start" "-a" "42f9c8621214d57d73d089e5c84297c92e15fcfcbd671d95e749a9abc79fb959", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling libc v0.2.100 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling num-integer v0.1.44 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking chrono v0.4.19 [INFO] [stderr] Checking wd_log v0.1.5 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `wd_log` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/log_macro.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/log_macro.rs:242:36 [INFO] [stderr] | [INFO] [stderr] 242 | panic!("{}", "{}", value); [INFO] [stderr] | ---- ^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] | [INFO] [stderr] ::: src/lib.rs:63:20 [INFO] [stderr] | [INFO] [stderr] 63 | let res = res_panic!(result;"succes"); [INFO] [stderr] | --------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: argument never used [INFO] [stderr] --> src/log_macro.rs:242:36 [INFO] [stderr] | [INFO] [stderr] 242 | panic!("{}", "{}", value); [INFO] [stderr] | ---- ^^^^^ argument never used [INFO] [stderr] | | [INFO] [stderr] | formatting specifier missing [INFO] [stderr] | [INFO] [stderr] ::: src/lib.rs:67:18 [INFO] [stderr] | [INFO] [stderr] 67 | let _ = res_panic!(result;"this is {}","error"); [INFO] [stderr] | --------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this error originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] error: aborting due to 2 previous errors [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: unused imports: `DEBUG`, `output` [INFO] [stdout] --> src/lib.rs:15:67 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::{show_time, show_file_line, set_prefix, set_level, DEBUG, output, output_to_file, INFO, Level}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/log_macro.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | let mut value = format!("{}",e.to_string()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | let _res:Option<()> = res_error!(result); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `res_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/log_macro.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 187 | let mut value = format!("{}\n",e.to_string()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:50:32 [INFO] [stdout] | [INFO] [stdout] 50 | let _res:Option<()> = res_error_ln!(result); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `res_error_ln` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/log_macro.rs:153:21 [INFO] [stdout] | [INFO] [stdout] 153 | let mut value = format!("{}",e.to_string()); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:56:33 [INFO] [stdout] | [INFO] [stdout] 56 | let res:Option<&str> = res_error!(result); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `res_error` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/log_macro.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | panic!(value) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | log_panic!("hello world"); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn non-fmt-panics` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `log_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 140 | panic!("{}", value) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/log_macro.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | panic!(value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | let res = res_panic!(result;"succes"); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 242 | panic!("{}", value); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/log_macro.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | panic!(value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = res_panic!(result;"this is {}","error"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this usage of panic!() is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: this warning originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: add a "{}" format string to Display the message [INFO] [stdout] | [INFO] [stdout] 242 | panic!("{}", value); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 4.10s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking wd_log v0.1.5 (/tmp/fixit) [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/log_macro.rs:140:16 [INFO] [stdout] | [INFO] [stdout] 140 | panic!(value) [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 44 | log_panic!("hello world"); [INFO] [stdout] | -------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `log_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 140 | panic!("{}", value) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/log_macro.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | panic!(value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:63:20 [INFO] [stdout] | [INFO] [stdout] 63 | let res = res_panic!(result;"succes"); [INFO] [stdout] | --------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 242 | panic!("{}", value); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: format argument must be a string literal [INFO] [stdout] --> src/log_macro.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 242 | panic!(value); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let _ = res_panic!(result;"this is {}","error"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `res_panic` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: you might be missing a string literal to format with [INFO] [stdout] | [INFO] [stdout] 242 | panic!("{}", value); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `DEBUG`, `output` [INFO] [stdout] --> src/lib.rs:15:67 [INFO] [stdout] | [INFO] [stdout] 15 | use crate::{show_time, show_file_line, set_prefix, set_level, DEBUG, output, output_to_file, INFO, Level}; [INFO] [stdout] | ^^^^^ ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `wd_log` due to 4 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "42f9c8621214d57d73d089e5c84297c92e15fcfcbd671d95e749a9abc79fb959", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42f9c8621214d57d73d089e5c84297c92e15fcfcbd671d95e749a9abc79fb959", kill_on_drop: false }` [INFO] [stdout] 42f9c8621214d57d73d089e5c84297c92e15fcfcbd671d95e749a9abc79fb959