[INFO] fetching crate canlog 0.2.0... [INFO] testing canlog-0.2.0 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate canlog 0.2.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate canlog 0.2.0 [INFO] finished tweaking crates.io crate canlog 0.2.0 [INFO] tweaked toml for crates.io crate canlog 0.2.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate canlog 0.2.0 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate canlog 0.2.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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded canlog_derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fdb90ac622fd5a85a868ac993cbce5daea7d127227aaf1af454342ec090ea36d [INFO] running `Command { std: "docker" "start" "-a" "fdb90ac622fd5a85a868ac993cbce5daea7d127227aaf1af454342ec090ea36d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fdb90ac622fd5a85a868ac993cbce5daea7d127227aaf1af454342ec090ea36d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fdb90ac622fd5a85a868ac993cbce5daea7d127227aaf1af454342ec090ea36d", kill_on_drop: false }` [INFO] [stdout] fdb90ac622fd5a85a868ac993cbce5daea7d127227aaf1af454342ec090ea36d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 26bf71f713d64f8190985c7fac7204c8b1d2cc0fb6302c90c7b8bcceb4816e47 [INFO] running `Command { std: "docker" "start" "-a" "26bf71f713d64f8190985c7fac7204c8b1d2cc0fb6302c90c7b8bcceb4816e47", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling typenum v1.17.0 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling cc v1.2.11 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling rustversion v1.0.19 [INFO] [stderr] Compiling anyhow v1.0.95 [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling either v1.13.0 [INFO] [stderr] Compiling cpufeatures v0.2.17 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling data-encoding v2.7.0 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling serde_json v1.0.138 [INFO] [stderr] Compiling pretty v0.12.3 [INFO] [stderr] Compiling num-integer v0.1.46 [INFO] [stderr] Compiling psm v0.1.24 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling ryu v1.0.19 [INFO] [stderr] Compiling leb128 v0.2.5 [INFO] [stderr] Compiling hex v0.4.3 [INFO] [stderr] Compiling ic0 v1.0.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha2 v0.10.9 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling candid_derive v0.6.6 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling binread_derive v2.1.0 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling binread v2.2.0 [INFO] [stderr] Compiling serde_bytes v0.11.15 [INFO] [stderr] Compiling ic_principal v0.1.1 [INFO] [stderr] Compiling num-bigint v0.4.6 [INFO] [stderr] Compiling ic-canister-log v0.2.0 [INFO] [stderr] Compiling candid v0.10.13 [INFO] [stderr] Compiling canlog v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 48.62s [INFO] running `Command { std: "docker" "inspect" "26bf71f713d64f8190985c7fac7204c8b1d2cc0fb6302c90c7b8bcceb4816e47", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "26bf71f713d64f8190985c7fac7204c8b1d2cc0fb6302c90c7b8bcceb4816e47", kill_on_drop: false }` [INFO] [stdout] 26bf71f713d64f8190985c7fac7204c8b1d2cc0fb6302c90c7b8bcceb4816e47 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ebb6dd6a46fa18ddbea4f38bdc264efc170aa7e2b773f6874561d4f96cea733a [INFO] running `Command { std: "docker" "start" "-a" "ebb6dd6a46fa18ddbea4f38bdc264efc170aa7e2b773f6874561d4f96cea733a", kill_on_drop: false }` [INFO] [stderr] Compiling getrandom v0.2.15 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Compiling rustix v1.0.5 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling wait-timeout v0.2.0 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_xorshift v0.3.0 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling ppv-lite86 v0.2.20 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling tempfile v3.20.0 [INFO] [stderr] Compiling rusty-fork v0.3.0 [INFO] [stderr] Compiling proptest v1.6.0 [INFO] [stderr] Compiling canlog v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `canlog_derive` [INFO] [stdout] --> src/lib.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | pub use canlog_derive::LogPriorityLevels; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `canlog_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `canlog_derive`, use `cargo add canlog_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `log_level` in this scope [INFO] [stdout] --> src/tests.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[log_level(capacity = 1000, name = "INFO_TEST")] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_buffer` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/tests.rs:56:44 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_buffer` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 56 | canlog::export_logs(TestPriority::Info.get_buffer()) [INFO] [stdout] | ^^^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_buffer`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:81:43 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 81 | let truncated_logs_json_len = log.serialize_logs(max_body_size).len(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `sort_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 93 | log.sort_logs(Sort::Ascending); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Log` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `sort_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `sort_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:96:9 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 96 | log.sort_logs(Sort::Descending); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Log` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `sort_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:132:35 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 132 | let truncated_logs_json = log.serialize_logs(MAX_BODY_SIZE); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:151:39 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 151 | let truncated_logs_json_len = log.serialize_logs(MAX_BODY_SIZE).len(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:153:40 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 153 | assert_eq!("{\"entries\":[]}", log.serialize_logs(MAX_BODY_SIZE)); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:174:60 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 174 | let serialized_log_with_2_entries = log_with_2_entries.serialize_logs(usize::MAX); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `serialize_logs` exists for struct `Log`, but its trait bounds were not satisfied [INFO] [stdout] --> src/tests.rs:176:28 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- doesn't satisfy `TestPriority: LogPriorityLevels` [INFO] [stdout] ... [INFO] [stdout] 176 | log_with_3_entries.serialize_logs(serialized_log_with_2_entries.len()); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:133:1 [INFO] [stdout] | [INFO] [stdout] 133 | pub struct Log { [INFO] [stdout] | ------------------------ method `serialize_logs` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: trait bound `TestPriority: LogPriorityLevels` was not satisfied [INFO] [stdout] --> src/lib.rs:146:15 [INFO] [stdout] | [INFO] [stdout] 144 | impl<'de, Priority> Log [INFO] [stdout] | ------------- [INFO] [stdout] 145 | where [INFO] [stdout] 146 | Priority: LogPriorityLevels + Clone + Copy + Deserialize<'de> + Serialize + 'static, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `LogPriorityLevels` must be implemented [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 184 | log!(TestPriority::Info, "ABC"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 185 | log!(TestPriority::Info, "123"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 186 | log!(TestPriority::Info, "!@#"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 193 | log!(TestPriority::Info, "ABC"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 194 | log!(TestPriority::Info, "123"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 195 | log!(TestPriority::Info, "!@#"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 202 | log!(TestPriority::Info, "message"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 203 | log!(TestPriority::Info, "message end"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 204 | log!(TestPriority::Info, "end message"); [INFO] [stdout] | --------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 211 | log!(TestPriority::Info, "123"); [INFO] [stdout] | ------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 212 | log!(TestPriority::Info, "INFO_TEST 123"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 213 | log!(TestPriority::Info, ""); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 214 | log!(TestPriority::Info, "123456"); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 221 | log!(TestPriority::Info, "remove A"); [INFO] [stdout] | ------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 222 | log!(TestPriority::Info, "...B..."); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 223 | log!(TestPriority::Info, "C"); [INFO] [stdout] | ----------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_sink` found for enum `TestPriority` in the current scope [INFO] [stdout] --> src/lib.rs:84:46 [INFO] [stdout] | [INFO] [stdout] 84 | ::canlog::raw_log!($enum_variant.get_sink(), $($args)*); [INFO] [stdout] | ^^^^^^^^ method not found in `TestPriority` [INFO] [stdout] | [INFO] [stdout] ::: src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | enum TestPriority { [INFO] [stdout] | ----------------- method `get_sink` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 224 | log!(TestPriority::Info, "message"); [INFO] [stdout] | ----------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `LogPriorityLevels` defines an item `get_sink`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:92:1 [INFO] [stdout] | [INFO] [stdout] 92 | pub trait LogPriorityLevels { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `canlog` (lib test) due to 28 previous errors [INFO] running `Command { std: "docker" "inspect" "ebb6dd6a46fa18ddbea4f38bdc264efc170aa7e2b773f6874561d4f96cea733a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ebb6dd6a46fa18ddbea4f38bdc264efc170aa7e2b773f6874561d4f96cea733a", kill_on_drop: false }` [INFO] [stdout] ebb6dd6a46fa18ddbea4f38bdc264efc170aa7e2b773f6874561d4f96cea733a