[INFO] fetching crate collum 0.1.0... [INFO] checking collum-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate collum 0.1.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate collum 0.1.0 [INFO] removed 0 missing examples [INFO] finished tweaking crates.io crate collum 0.1.0 [INFO] tweaked toml for crates.io crate collum 0.1.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate collum 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate collum 0.1.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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52ac764ebdc119494bf2ebb8063962a2c85c690a2312fa00673ff7a926ad268a [INFO] running `Command { std: "docker" "start" "-a" "52ac764ebdc119494bf2ebb8063962a2c85c690a2312fa00673ff7a926ad268a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52ac764ebdc119494bf2ebb8063962a2c85c690a2312fa00673ff7a926ad268a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52ac764ebdc119494bf2ebb8063962a2c85c690a2312fa00673ff7a926ad268a", kill_on_drop: false }` [INFO] [stdout] 52ac764ebdc119494bf2ebb8063962a2c85c690a2312fa00673ff7a926ad268a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d84feceef9ab0502015935d759a90e738935a56bcc1a1962c2d01548e3a1ea4d [INFO] running `Command { std: "docker" "start" "-a" "d84feceef9ab0502015935d759a90e738935a56bcc1a1962c2d01548e3a1ea4d", kill_on_drop: false }` [INFO] [stderr] Checking collum v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `collum_derive` [INFO] [stdout] --> src/lib.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | use collum_derive::{Collum, Sized}; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `collum_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `collum_derive`, use `cargo add collum_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `collum` in this scope [INFO] [stdout] --> src/lib.rs:94:11 [INFO] [stdout] | [INFO] [stdout] 94 | #[collum(endian = "big")] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `collum` is imported here, but it is a module, not an attribute [INFO] [stdout] --> src/lib.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 83 | extern crate self as collum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `collum_derive` [INFO] [stdout] --> examples/u2.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use collum_derive::{Collum, Sized}; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `collum_derive` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `collum_derive`, use `cargo add collum_derive` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `U2` in the current scope [INFO] [stdout] --> examples/u2.rs:12:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 12 | assert_eq!(U2::from_bytes(&[1, 2, 3]), Some(U2(false, false))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `U2` in the current scope [INFO] [stdout] --> examples/u2.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 13 | assert_eq!(U2::from_bytes(&[0b11111111, 0]), Some(U2(true, true))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `U2` in the current scope [INFO] [stdout] --> examples/u2.rs:14:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 14 | assert_eq!(U2::from_bytes(&[0b10000000, 0]), Some(U2(true, false))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `bits` found for struct `UdpHeader` in the current scope [INFO] [stdout] --> src/lib.rs:129:31 [INFO] [stdout] | [INFO] [stdout] 95 | struct UdpHeader { [INFO] [stdout] | ---------------- function or associated item `bits` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 129 | assert_eq!(UdpHeader::bits(), 8 * 8); [INFO] [stdout] | ^^^^ function or associated item not found in `UdpHeader` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `sized::Sized` defines an item `bits`, perhaps you need to implement it [INFO] [stdout] --> src/sized.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[U2; 10]`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/u2.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 17 | <[U2; 10]>::from_bytes(&[0b00000001, 0b00000010, 0b00000011]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[U2; 10]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `U2: Collum` [INFO] [stdout] which is required by `[U2; 10]: Collum` [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[U2; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/u2.rs:32:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 32 | <[U2; 4]>::from_bytes(&[0b11111111]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[U2; 4]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `U2: Collum` [INFO] [stdout] which is required by `[U2; 4]: Collum` [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `UdpHeader` in the current scope [INFO] [stdout] --> src/lib.rs:132:24 [INFO] [stdout] | [INFO] [stdout] 95 | struct UdpHeader { [INFO] [stdout] | ---------------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 132 | UdpHeader::from_bytes(&[0x01, 0xbb, 0xbf, 0xe5, 0x00, 0x21, 0x00, 0x00]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `UdpHeader` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[U2; 5]`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/u2.rs:35:27 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 35 | assert_eq!(<[U2; 5]>::from_bytes(&[0b11000110]), None); [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[U2; 5]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `U2: Collum` [INFO] [stdout] which is required by `[U2; 5]: Collum` [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[U2; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/u2.rs:37:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 37 | <[U2; 4]>::from_bytes(&[0b11000110]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[U2; 4]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `U2: Collum` [INFO] [stdout] which is required by `[U2; 4]: Collum` [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `take_from_bit_slice` exists for array `[U2; 5]`, but its trait bounds were not satisfied [INFO] [stdout] --> examples/u2.rs:47:20 [INFO] [stdout] | [INFO] [stdout] 9 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 47 | <[U2; 5]>::take_from_bit_slice((&[0b11000110, 0b10011100]).into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `[U2; 5]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `U2: Collum` [INFO] [stdout] which is required by `[U2; 5]: Collum` [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `collum` (example "u2") due to 9 previous errors [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `tests::parse_u2_derived::U2` in the current scope [INFO] [stdout] --> src/lib.rs:207:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] 206 | [INFO] [stdout] 207 | assert_eq!(U2::from_bytes(&[1, 2, 3]), Some(U2(false, false))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `tests::parse_u2_derived::U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `tests::parse_u2_derived::U2` in the current scope [INFO] [stdout] --> src/lib.rs:208:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 208 | assert_eq!(U2::from_bytes(&[0b11111111, 0]), Some(U2(true, true))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `tests::parse_u2_derived::U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `tests::parse_u2_derived::U2` in the current scope [INFO] [stdout] --> src/lib.rs:209:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 209 | assert_eq!(U2::from_bytes(&[0b10000000, 0]), Some(U2(true, false))); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `tests::parse_u2_derived::U2` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[tests::parse_u2_derived::U2; 10]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:212:25 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `tests::parse_u2_derived::U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 212 | <[U2; 10]>::from_bytes(&[0b00000001, 0b00000010, 0b00000011]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[tests::parse_u2_derived::U2; 10]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `tests::parse_u2_derived::U2: Collum` was not satisfied [INFO] [stdout] --> src/impls.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Collum for [T; N] [INFO] [stdout] | ------ ------ [INFO] [stdout] 66 | where [INFO] [stdout] 67 | T: Collum, [INFO] [stdout] | ^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Collum` defines an item `from_bytes`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[tests::parse_u2_derived::U2; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:227:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `tests::parse_u2_derived::U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 227 | <[U2; 4]>::from_bytes(&[0b11111111]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[tests::parse_u2_derived::U2; 4]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `tests::parse_u2_derived::U2: Collum` was not satisfied [INFO] [stdout] --> src/impls.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Collum for [T; N] [INFO] [stdout] | ------ ------ [INFO] [stdout] 66 | where [INFO] [stdout] 67 | T: Collum, [INFO] [stdout] | ^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Collum` defines an item `from_bytes`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[tests::parse_u2_derived::U2; 5]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:230:31 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `tests::parse_u2_derived::U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 230 | assert_eq!(<[U2; 5]>::from_bytes(&[0b11000110]), None); [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[tests::parse_u2_derived::U2; 5]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `tests::parse_u2_derived::U2: Collum` was not satisfied [INFO] [stdout] --> src/impls.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Collum for [T; N] [INFO] [stdout] | ------ ------ [INFO] [stdout] 66 | where [INFO] [stdout] 67 | T: Collum, [INFO] [stdout] | ^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Collum` defines an item `from_bytes`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `from_bytes` exists for array `[tests::parse_u2_derived::U2; 4]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:232:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `tests::parse_u2_derived::U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 232 | <[U2; 4]>::from_bytes(&[0b11000110]), [INFO] [stdout] | ^^^^^^^^^^ function or associated item cannot be called on `[tests::parse_u2_derived::U2; 4]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `tests::parse_u2_derived::U2: Collum` was not satisfied [INFO] [stdout] --> src/impls.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Collum for [T; N] [INFO] [stdout] | ------ ------ [INFO] [stdout] 66 | where [INFO] [stdout] 67 | T: Collum, [INFO] [stdout] | ^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Collum` defines an item `from_bytes`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the function or associated item `take_from_bit_slice` exists for array `[tests::parse_u2_derived::U2; 5]`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:242:24 [INFO] [stdout] | [INFO] [stdout] 205 | struct U2(bool, bool); [INFO] [stdout] | --------- doesn't satisfy `tests::parse_u2_derived::U2: Collum` [INFO] [stdout] ... [INFO] [stdout] 242 | <[U2; 5]>::take_from_bit_slice((&[0b11000110, 0b10011100]).into()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ function or associated item cannot be called on `[tests::parse_u2_derived::U2; 5]` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] note: trait bound `tests::parse_u2_derived::U2: Collum` was not satisfied [INFO] [stdout] --> src/impls.rs:67:8 [INFO] [stdout] | [INFO] [stdout] 65 | impl Collum for [T; N] [INFO] [stdout] | ------ ------ [INFO] [stdout] 66 | where [INFO] [stdout] 67 | T: Collum, [INFO] [stdout] | ^^^^^^ unsatisfied trait bound introduced here [INFO] [stdout] note: the trait `Collum` must be implemented [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Collum` defines an item `take_from_bit_slice`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:58:1 [INFO] [stdout] | [INFO] [stdout] 58 | pub trait Collum: crate::Sized + core::marker::Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `bits` found for struct `Unit` in the current scope [INFO] [stdout] --> src/lib.rs:264:26 [INFO] [stdout] | [INFO] [stdout] 262 | struct Unit; [INFO] [stdout] | ----------- function or associated item `bits` not found for this struct [INFO] [stdout] 263 | [INFO] [stdout] 264 | assert_eq!(Unit::bits(), 0); [INFO] [stdout] | ^^^^ function or associated item not found in `Unit` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `sized::Sized` defines an item `bits`, perhaps you need to implement it [INFO] [stdout] --> src/sized.rs:7:1 [INFO] [stdout] | [INFO] [stdout] 7 | pub trait Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bytes` found for struct `Unit` in the current scope [INFO] [stdout] --> src/lib.rs:265:26 [INFO] [stdout] | [INFO] [stdout] 262 | struct Unit; [INFO] [stdout] | ----------- function or associated item `from_bytes` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 265 | assert_eq!(Unit::from_bytes(&[1, 2, 3]), Some(Unit)); [INFO] [stdout] | ^^^^^^^^^^ function or associated item not found in `Unit` [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 `from_bytes`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Collum` [INFO] [stdout] candidate #2: `OsStrExt` [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 `collum` (lib test) due to 14 previous errors [INFO] running `Command { std: "docker" "inspect" "d84feceef9ab0502015935d759a90e738935a56bcc1a1962c2d01548e3a1ea4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d84feceef9ab0502015935d759a90e738935a56bcc1a1962c2d01548e3a1ea4d", kill_on_drop: false }` [INFO] [stdout] d84feceef9ab0502015935d759a90e738935a56bcc1a1962c2d01548e3a1ea4d