[INFO] fetching crate hp-log 0.3.1... [INFO] testing hp-log-0.3.1 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate hp-log 0.3.1 into /workspace/builds/worker-4-tc1/source [INFO] started tweaking crates.io crate hp-log 0.3.1 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate hp-log 0.3.1 [INFO] tweaked toml for crates.io crate hp-log 0.3.1 written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate hp-log 0.3.1 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hp-log 0.3.1 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded strfmt v0.1.6 [INFO] [stderr] Downloaded libc v0.2.58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5a84bbbefc989476248ae68cec74ddf6dd5984631ce600ee07316dc4ef7efba6 [INFO] running `Command { std: "docker" "start" "-a" "5a84bbbefc989476248ae68cec74ddf6dd5984631ce600ee07316dc4ef7efba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5a84bbbefc989476248ae68cec74ddf6dd5984631ce600ee07316dc4ef7efba6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5a84bbbefc989476248ae68cec74ddf6dd5984631ce600ee07316dc4ef7efba6", kill_on_drop: false }` [INFO] [stdout] 5a84bbbefc989476248ae68cec74ddf6dd5984631ce600ee07316dc4ef7efba6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 19fba6d0eeb4a1c43a357e6fdbee8016f940ffa1da3476709058ec108353bcf8 [INFO] running `Command { std: "docker" "start" "-a" "19fba6d0eeb4a1c43a357e6fdbee8016f940ffa1da3476709058ec108353bcf8", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling serde v1.0.94 [INFO] [stderr] Compiling syn v0.15.39 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling strfmt v0.1.6 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling time v0.1.42 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling serde_derive v1.0.94 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling hp-log v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 8 - static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] 8 + static INST_ONCE: Once = Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | appenders: Vec>, [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] 11 | appenders: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn add_appender(&mut self, appender: Box) { [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] 82 | pub fn add_appender(&mut self, appender: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_FilterConf` [INFO] [stdout] 184 | pub struct FilterConf { [INFO] [stdout] | ---------- `FilterConf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_FilterConf` [INFO] [stdout] 184 | pub struct FilterConf { [INFO] [stdout] | ---------- `FilterConf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_PartialConfig` [INFO] [stdout] 28 | pub struct PartialConfig { [INFO] [stdout] | ------------- `PartialConfig` is not local [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PartialConfig` [INFO] [stdout] 28 | pub struct PartialConfig { [INFO] [stdout] | ------------- `PartialConfig` is not local [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/config.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | assert!(INST.is_some(), "instance is None"); [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/config.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | INST.as_ref().expect("get instance erro") [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/config.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn set(&mut self) -> ConfigSetter { [INFO] [stdout] | ^^^^^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn set(&mut self) -> ConfigSetter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/config.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn was_set(&self) -> ConfigWasSet { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | pub fn was_set(&self) -> ConfigWasSet<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.65s [INFO] running `Command { std: "docker" "inspect" "19fba6d0eeb4a1c43a357e6fdbee8016f940ffa1da3476709058ec108353bcf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "19fba6d0eeb4a1c43a357e6fdbee8016f940ffa1da3476709058ec108353bcf8", kill_on_drop: false }` [INFO] [stdout] 19fba6d0eeb4a1c43a357e6fdbee8016f940ffa1da3476709058ec108353bcf8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 3e5df0f4dff76d91199dafda5bb04f2f4b3d1d9b5b3992f641ffe530739fc821 [INFO] running `Command { std: "docker" "start" "-a" "3e5df0f4dff76d91199dafda5bb04f2f4b3d1d9b5b3992f641ffe530739fc821", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 8 - static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] 8 + static INST_ONCE: Once = Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | appenders: Vec>, [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] 11 | appenders: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn add_appender(&mut self, appender: Box) { [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] 82 | pub fn add_appender(&mut self, appender: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_FilterConf` [INFO] [stdout] 184 | pub struct FilterConf { [INFO] [stdout] | ---------- `FilterConf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_FilterConf` [INFO] [stdout] 184 | pub struct FilterConf { [INFO] [stdout] | ---------- `FilterConf` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_PartialConfig` [INFO] [stdout] 28 | pub struct PartialConfig { [INFO] [stdout] | ------------- `PartialConfig` is not local [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/config.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^-------- [INFO] [stdout] | | [INFO] [stdout] | `Serialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_SERIALIZE_FOR_PartialConfig` [INFO] [stdout] 28 | pub struct PartialConfig { [INFO] [stdout] | ------------- `PartialConfig` is not local [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Serialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/config.rs:79:29 [INFO] [stdout] | [INFO] [stdout] 79 | assert!(INST.is_some(), "instance is None"); [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling hp-log v0.3.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/config.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | INST.as_ref().expect("get instance erro") [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/config.rs:91:24 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn set(&mut self) -> ConfigSetter { [INFO] [stdout] | ^^^^^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 91 | pub fn set(&mut self) -> ConfigSetter<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/config.rs:95:28 [INFO] [stdout] | [INFO] [stdout] 95 | pub fn was_set(&self) -> ConfigWasSet { [INFO] [stdout] | ^^^^^ ------------ the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 95 | pub fn was_set(&self) -> ConfigWasSet<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `warn` in this scope [INFO] [stdout] --> src/lib.rs:134:29 [INFO] [stdout] | [INFO] [stdout] 134 | ... warn!("199999999999999-=dfghjkl;'kald;ngtohbjgbtesting {}...99=====.{}....mmmmmmm{}m .... {}", 1,2,3, idx); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `warn` is in scope, but it is an attribute: `#[warn]` [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 111 + use log::warn; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `debug` in this scope [INFO] [stdout] --> src/lib.rs:135:29 [INFO] [stdout] | [INFO] [stdout] 135 | ... debug!("1234567890-=dfghjkl;'kald;ngtohbjgbtesting {}...99=====.{}....mmmmmmm{}m .... {}", 1,2,3, idx); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 111 + use log::debug; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `error` in this scope [INFO] [stdout] --> src/lib.rs:136:29 [INFO] [stdout] | [INFO] [stdout] 136 | ... error!("1234567890-=dfghjkl;'kald;ngtohbjgbtesting {}...99=====.{}....mmmmmmm{}m ********* {}", 1,2,3, idx); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 111 + use log::error; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `info` in this scope [INFO] [stdout] --> src/lib.rs:137:29 [INFO] [stdout] | [INFO] [stdout] 137 | ... info!("1234567890-=dfghjkl;'ka0000000000;ngtohbjgbtesting {}...99=====.{}....mmmmmmm{}m ********* {}", 1,2,3, idx); [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 111 + use log::info; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find macro `trace` in this scope [INFO] [stdout] --> src/lib.rs:138:29 [INFO] [stdout] | [INFO] [stdout] 138 | ... trace!("1234567890-=dfghjkl;'ka0000000000;ngtohbjgbtesting {}...99=====.{}....mmmmmmm{}m ********* {}", 1,2,3, idx); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 111 + use log::trace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> example/simple.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | hp_log::init("./".to_string()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 7 | let _ = hp_log::init("./".to_string()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused logical operation that must be used [INFO] [stdout] --> example/simple.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | log_enabled!(log::Level::Debug); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `log_enabled` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused logical operation that must be used [INFO] [stdout] --> example/simple.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | log_enabled!(log::Level::Trace); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the logical operation produces a value [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `log_enabled` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:10 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:183:23 [INFO] [stdout] | [INFO] [stdout] 183 | #[derive(Deserialize, Serialize, Debug, Copy, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:18 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Deserialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition value: `cargo-clippy` [INFO] [stdout] --> src/config.rs:27:31 [INFO] [stdout] | [INFO] [stdout] 27 | #[derive(Deserialize, Serialize, Clone)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 206 | / create_config!( [INFO] [stdout] 207 | | // Comments. macros, and strings [INFO] [stdout] 208 | | global_max_level: String, String::from("TRACE"), false, "global max log level ouput control"; [INFO] [stdout] 209 | | file_log_dir: String, String::from("/tmp/log/"), false, "file generate path"; [INFO] [stdout] ... | [INFO] [stdout] 212 | | file_conf: FilterConf, FilterConf::default(), false, "console filter data"; [INFO] [stdout] 213 | | ); [INFO] [stdout] | |_____- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a derive macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `Serialize` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the derive macro `Serialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: this warning originates in the derive macro `Serialize` which comes from the expansion of the macro `create_config` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:5:23 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Once, ONCE_INIT}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `Once::new()` function is now preferred [INFO] [stdout] --> src/config.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 8 - static INST_ONCE: Once = ONCE_INIT; [INFO] [stdout] 8 + static INST_ONCE: Once = Once::new(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:11:24 [INFO] [stdout] | [INFO] [stdout] 11 | appenders: Vec>, [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] 11 | appenders: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/writer.rs:82:50 [INFO] [stdout] | [INFO] [stdout] 82 | pub fn add_appender(&mut self, appender: Box) { [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] 82 | pub fn add_appender(&mut self, appender: Box) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> src/lib.rs:119:9 [INFO] [stdout] | [INFO] [stdout] 119 | init(); [INFO] [stdout] | ^^^^-- argument #1 of type `std::string::String` is missing [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/lib.rs:39:8 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn init(path: String) -> Result<(), log::SetLoggerError> { [INFO] [stdout] | ^^^^ ------------ [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 119 | init(/* std::string::String */); [INFO] [stdout] | +++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `load_config` found for struct `Logger` in the current scope [INFO] [stdout] --> src/lib.rs:120:17 [INFO] [stdout] | [INFO] [stdout] 120 | Logger::load_config(PathBuf::from("./")); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `Logger` [INFO] [stdout] | [INFO] [stdout] ::: src/logger.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Logger { [INFO] [stdout] | ----------------- function or associated item `load_config` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Logger`, consider using `Logger::init` which returns `Logger` [INFO] [stdout] --> src/logger.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn init() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hp-log` (lib test) due to 7 previous errors; 8 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "3e5df0f4dff76d91199dafda5bb04f2f4b3d1d9b5b3992f641ffe530739fc821", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e5df0f4dff76d91199dafda5bb04f2f4b3d1d9b5b3992f641ffe530739fc821", kill_on_drop: false }` [INFO] [stdout] 3e5df0f4dff76d91199dafda5bb04f2f4b3d1d9b5b3992f641ffe530739fc821