[INFO] fetching crate cbor-data 0.8.17... [INFO] checking cbor-data-0.8.17 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate cbor-data 0.8.17 into /workspace/builds/worker-7-tc1/source [INFO] validating manifest of crates.io crate cbor-data 0.8.17 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate cbor-data 0.8.17 [INFO] finished tweaking crates.io crate cbor-data 0.8.17 [INFO] tweaked toml for crates.io crate cbor-data 0.8.17 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate crates.io crate cbor-data 0.8.17 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cid v0.8.6 [INFO] [stderr] Downloaded data-encoding-macro v0.1.14 [INFO] [stderr] Downloaded libipld-macro v0.14.0 [INFO] [stderr] Downloaded libipld v0.14.0 [INFO] [stderr] Downloaded multihash v0.16.3 [INFO] [stderr] Downloaded libipld-cbor v0.14.0 [INFO] [stderr] Downloaded libipld-core v0.14.0 [INFO] [stderr] Downloaded cbor-data-derive v0.8.15 [INFO] [stderr] Downloaded cached v0.30.0 [INFO] [stderr] Downloaded data-encoding-macro-internal v0.1.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2a1ca3565478f32e3172d3fff8394e52be4e4565feee8e875ac6da806cf9585b [INFO] running `Command { std: "docker" "start" "-a" "2a1ca3565478f32e3172d3fff8394e52be4e4565feee8e875ac6da806cf9585b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2a1ca3565478f32e3172d3fff8394e52be4e4565feee8e875ac6da806cf9585b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a1ca3565478f32e3172d3fff8394e52be4e4565feee8e875ac6da806cf9585b", kill_on_drop: false }` [INFO] [stdout] 2a1ca3565478f32e3172d3fff8394e52be4e4565feee8e875ac6da806cf9585b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cab91cb99b5ea7ab86f751aec464ab4382f4b145bb6d862b22843fd60f01b6f9 [INFO] running `Command { std: "docker" "start" "-a" "cab91cb99b5ea7ab86f751aec464ab4382f4b145bb6d862b22843fd60f01b6f9", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Compiling crossbeam-utils v0.8.19 [INFO] [stderr] Checking either v1.10.0 [INFO] [stderr] Checking itoa v1.0.10 [INFO] [stderr] Compiling serde_json v1.0.114 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking plotters-backend v0.3.5 [INFO] [stderr] Checking half v1.8.3 [INFO] [stderr] Checking memchr v2.7.1 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking regex-syntax v0.8.2 [INFO] [stderr] Checking diff v0.1.13 [INFO] [stderr] Checking yansi v0.5.1 [INFO] [stderr] Checking smallvec v1.13.2 [INFO] [stderr] Compiling syn v2.0.53 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking oorandom v11.1.3 [INFO] [stderr] Checking base64 v0.13.1 [INFO] [stderr] Checking maplit v1.0.2 [INFO] [stderr] Checking pretty_assertions v1.4.0 [INFO] [stderr] Checking itertools v0.10.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking plotters-svg v0.3.5 [INFO] [stderr] Checking cbor-data v0.8.17 (/opt/rustwide/workdir) [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking rayon-core v1.12.1 [INFO] [stderr] Checking getrandom v0.2.12 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rayon v1.9.0 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking plotters v0.3.5 [INFO] [stderr] Checking criterion-plot v0.4.5 [INFO] [stderr] Checking regex v1.10.3 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking serde_cbor v0.11.2 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Checking tinytemplate v1.2.1 [INFO] [stderr] Checking criterion v0.3.6 [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:18:14 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(ReadCbor, WriteCbor, PartialEq, Debug)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 18 | #[derive(ReadCbor, WriteCbor, PartialEq, Debug)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:49:32 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:49:43 [INFO] [stdout] | [INFO] [stdout] 49 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:72:32 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:72:43 [INFO] [stdout] | [INFO] [stdout] 72 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:84:32 [INFO] [stdout] | [INFO] [stdout] 84 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:84:43 [INFO] [stdout] | [INFO] [stdout] 84 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `cbor` in this scope [INFO] [stdout] --> tests/derive.rs:85:7 [INFO] [stdout] | [INFO] [stdout] 85 | #[cbor(transparent)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:97:32 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:97:43 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `cbor` in this scope [INFO] [stdout] --> tests/derive.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | #[cbor(transparent)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `WriteCbor` in this scope [INFO] [stdout] --> tests/derive.rs:133:32 [INFO] [stdout] | [INFO] [stdout] 133 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `WriteCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:35 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `ReadCbor` in this scope [INFO] [stdout] --> tests/derive.rs:133:43 [INFO] [stdout] | [INFO] [stdout] 133 | #[derive(Debug, PartialEq, WriteCbor, ReadCbor)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `ReadCbor` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> tests/derive.rs:2:25 [INFO] [stdout] | [INFO] [stdout] 2 | codec::{CodecError, ReadCbor, WriteCbor}, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `cbor` in this scope [INFO] [stdout] --> tests/derive.rs:134:7 [INFO] [stdout] | [INFO] [stdout] 134 | #[cbor(transparent)] [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `named_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 19 | struct X { [INFO] [stdout] | -------- method `write_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 30 | let bytes = X::new("hello", 42).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 30 | let bytes = X::new("hello", 42).x.write_cbor(CborBuilder::default()); [INFO] [stdout] | ++ [INFO] [stdout] 30 | let bytes = X::new("hello", 42).y.write_cbor(CborBuilder::default()); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 19 | struct X { [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 35 | let x = X::read_cbor(bytes.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X` [INFO] [stdout] --> tests/derive.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(x: impl Into, y: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 19 | struct X { [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 38 | X::read_cbor(Cbor::checked(&*b("a2 61 77 64 68 65 6c 6c 61 41 00")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X` [INFO] [stdout] --> tests/derive.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(x: impl Into, y: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `named_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:41:12 [INFO] [stdout] | [INFO] [stdout] 19 | struct X { [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 41 | X::read_cbor(Cbor::checked(&*b("a3 61 78 64 68 65 6c 6c 61 79 18 2a 61 41 00")).unwrap()) [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X` [INFO] [stdout] --> tests/derive.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(x: impl Into, y: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `name` found for struct `named_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:44:19 [INFO] [stdout] | [INFO] [stdout] 19 | struct X { [INFO] [stdout] | -------- function or associated item `name` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | assert_eq!(X::name(), "X"); [INFO] [stdout] | ^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `named_struct::X`, consider using `named_struct::X::new` which returns `named_struct::X` [INFO] [stdout] --> tests/derive.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | fn new(x: impl Into, y: u64) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `name`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] candidate #2: `clap::args::any_arg::AnyArg` [INFO] [stdout] help: there is a method `ne` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/cmp.rs:261:5 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `tuple_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:53:34 [INFO] [stdout] | [INFO] [stdout] 50 | struct X(u64, String); [INFO] [stdout] | -------- method `write_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 53 | let bytes = X(42, s.clone()).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] help: some of the expressions' fields have a method of the same name [INFO] [stdout] | [INFO] [stdout] 53 | let bytes = X(42, s.clone()).0.write_cbor(CborBuilder::default()); [INFO] [stdout] | ++ [INFO] [stdout] 53 | let bytes = X(42, s.clone()).1.write_cbor(CborBuilder::default()); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:55:16 [INFO] [stdout] | [INFO] [stdout] 50 | struct X(u64, String); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 55 | let x = X::read_cbor(bytes.as_ref()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 50 | struct X(u64, String); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 57 | let e = X::read_cbor(Cbor::checked(&*b("81 18 2a")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `tuple_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:66:16 [INFO] [stdout] | [INFO] [stdout] 50 | struct X(u64, String); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 66 | let x = X::read_cbor(Cbor::checked(&*b("83 17 60 00")).unwrap()).unwrap(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `single_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:76:14 [INFO] [stdout] | [INFO] [stdout] 73 | struct X(u64); [INFO] [stdout] | -------- method `write_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 76 | X(3).write_cbor(CborBuilder::default()).as_slice(), [INFO] [stdout] | ^^^^^^^^^^ method not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 76 | X(3).0.write_cbor(CborBuilder::default()).as_slice(), [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `single_struct::X` in the current scope [INFO] [stdout] --> tests/derive.rs:80:12 [INFO] [stdout] | [INFO] [stdout] 73 | struct X(u64); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 80 | X::read_cbor(Cbor::checked(&*b("82 13 00")).unwrap()).unwrap(), [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `Y` in the current scope [INFO] [stdout] --> tests/derive.rs:88:21 [INFO] [stdout] | [INFO] [stdout] 86 | struct Y(u64); [INFO] [stdout] | -------- method `write_cbor` not found for this struct [INFO] [stdout] 87 | [INFO] [stdout] 88 | assert_eq!(Y(3).write_cbor(CborBuilder::default()).as_slice(), b("03")); [INFO] [stdout] | ^^^^^^^^^^ method not found in `Y` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 88 | assert_eq!(Y(3).0.write_cbor(CborBuilder::default()).as_slice(), b("03")); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `Y` in the current scope [INFO] [stdout] --> tests/derive.rs:90:12 [INFO] [stdout] | [INFO] [stdout] 86 | struct Y(u64); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 90 | Y::read_cbor(Cbor::checked(&*b("13")).unwrap()).unwrap(), [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Y` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:110:25 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ method `write_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 110 | let bytes = X::Unit.write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:112:19 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ variant or associated item `read_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 112 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Unit); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:114:27 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ method `write_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 114 | let bytes = X::One(1).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:116:19 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ variant or associated item `read_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 116 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::One(1)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:118:32 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ method `write_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 118 | let bytes = X::OnePrime(2).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:120:19 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ variant or associated item `read_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 120 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::OnePrime(2)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:122:30 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ method `write_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 122 | let bytes = X::Two(3, 4).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:124:19 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ variant or associated item `read_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 124 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Two(3, 4)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:126:39 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ method `write_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 126 | let bytes = X::Rec { a: 5, b: 6 }.write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `read_cbor` found for enum `enums::X` in the current scope [INFO] [stdout] --> tests/derive.rs:128:19 [INFO] [stdout] | [INFO] [stdout] 98 | enum X { [INFO] [stdout] | ------ variant or associated item `read_cbor` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 128 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X::Rec { a: 5, b: 6 }); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `enums::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `write_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:137:31 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- method `write_cbor` not found for this struct [INFO] [stdout] 136 | [INFO] [stdout] 137 | let bytes = X(vec![1, 2]).write_cbor(CborBuilder::default()); [INFO] [stdout] | ^^^^^^^^^^ method not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `write_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `WriteCbor` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 137 | let bytes = X(vec![1, 2]).0.write_cbor(CborBuilder::default()); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:139:19 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 139 | assert_eq!(X::read_cbor(bytes.as_ref()).unwrap(), X(vec![1, 2])); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:141:18 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 141 | let err = X::read_cbor(Cbor::checked(&*b("82 21 02")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:144:18 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 144 | let err = X::read_cbor(Cbor::checked(&*b("82 41 00 02")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:147:18 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 147 | let err = X::read_cbor(Cbor::checked(&*b("82 c2 41 00 02")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `read_cbor` found for struct `error::X` in the current scope [INFO] [stdout] --> tests/derive.rs:153:18 [INFO] [stdout] | [INFO] [stdout] 135 | struct X(Vec); [INFO] [stdout] | -------- function or associated item `read_cbor` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 153 | let err = X::read_cbor(Cbor::checked(&*b("a1 01 02")).unwrap()).unwrap_err(); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `error::X` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `read_cbor`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ReadCbor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 44 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stderr] error: could not compile `cbor-data` (test "derive") due to 45 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "cab91cb99b5ea7ab86f751aec464ab4382f4b145bb6d862b22843fd60f01b6f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cab91cb99b5ea7ab86f751aec464ab4382f4b145bb6d862b22843fd60f01b6f9", kill_on_drop: false }` [INFO] [stdout] cab91cb99b5ea7ab86f751aec464ab4382f4b145bb6d862b22843fd60f01b6f9