[INFO] fetching crate varlen_macro 0.1.3... [INFO] testing varlen_macro-0.1.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate varlen_macro 0.1.3 into /workspace/builds/worker-3-tc1/source [INFO] started tweaking crates.io crate varlen_macro 0.1.3 [INFO] finished tweaking crates.io crate varlen_macro 0.1.3 [INFO] tweaked toml for crates.io crate varlen_macro 0.1.3 written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate varlen_macro 0.1.3 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] [stderr] Adding convert_case v0.5.0 (available: v0.8.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [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] Downloading crates ... [INFO] [stderr] Downloaded varlen v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 32bbd2fd8bbf03ef16fd1f274e97474e5a6f660ed5b3e609cbd357bc511ede9d [INFO] running `Command { std: "docker" "start" "-a" "32bbd2fd8bbf03ef16fd1f274e97474e5a6f660ed5b3e609cbd357bc511ede9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "32bbd2fd8bbf03ef16fd1f274e97474e5a6f660ed5b3e609cbd357bc511ede9d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "32bbd2fd8bbf03ef16fd1f274e97474e5a6f660ed5b3e609cbd357bc511ede9d", kill_on_drop: false }` [INFO] [stdout] 32bbd2fd8bbf03ef16fd1f274e97474e5a6f660ed5b3e609cbd357bc511ede9d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 73e91fd84bceb4b216bf2e900df9299d3a185868dfe30d52cbefea220bb79e2c [INFO] running `Command { std: "docker" "start" "-a" "73e91fd84bceb4b216bf2e900df9299d3a185868dfe30d52cbefea220bb79e2c", kill_on_drop: false }` [INFO] [stderr] Compiling convert_case v0.5.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling varlen_macro v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.38s [INFO] running `Command { std: "docker" "inspect" "73e91fd84bceb4b216bf2e900df9299d3a185868dfe30d52cbefea220bb79e2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "73e91fd84bceb4b216bf2e900df9299d3a185868dfe30d52cbefea220bb79e2c", kill_on_drop: false }` [INFO] [stdout] 73e91fd84bceb4b216bf2e900df9299d3a185868dfe30d52cbefea220bb79e2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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] 75f9b58afc3819d289b40b7a5cdf819e97f747ed79520022a767f01b47af7d3e [INFO] running `Command { std: "docker" "start" "-a" "75f9b58afc3819d289b40b7a5cdf819e97f747ed79520022a767f01b47af7d3e", kill_on_drop: false }` [INFO] [stderr] Compiling varlen v0.1.2 [INFO] [stderr] Compiling varlen_macro v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.37s [INFO] running `Command { std: "docker" "inspect" "75f9b58afc3819d289b40b7a5cdf819e97f747ed79520022a767f01b47af7d3e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "75f9b58afc3819d289b40b7a5cdf819e97f747ed79520022a767f01b47af7d3e", kill_on_drop: false }` [INFO] [stdout] 75f9b58afc3819d289b40b7a5cdf819e97f747ed79520022a767f01b47af7d3e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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", kill_on_drop: false }` [INFO] [stdout] 20938d1ece8c0c6cbf85b0666ffefb51792e82dd42591948c08c1a996855ad0a [INFO] running `Command { std: "docker" "start" "-a" "20938d1ece8c0c6cbf85b0666ffefb51792e82dd42591948c08c1a996855ad0a", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/varlen_macro-f118cedbecb73fce) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests varlen_macro [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - define_varlen (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - define_varlen (line 53) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - define_varlen (line 22) stdout ---- [INFO] [stdout] error: cannot find attribute `define_varlen` in this scope [INFO] [stdout] --> src/lib.rs:24:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[define_varlen] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use varlen_macro::define_varlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `varlen` in this scope [INFO] [stdout] --> src/lib.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[varlen] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `varlen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `varlen` in this scope [INFO] [stdout] --> src/lib.rs:29:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[varlen] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `varlen` is in scope, but it is a crate, not an attribute [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Person: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 12 | let mut p: VBox = VBox::new( [INFO] [stdout] | ^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `Person` [INFO] [stdout] --> src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] varlen::Str [INFO] [stdout] note: required by a bound in `varlen::VBox` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct VBox(NonNull); [INFO] [stdout] | ^^^^^^ required by this bound in `VBox` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Person: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 12 | let mut p: VBox = VBox::new( [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `Person` [INFO] [stdout] --> src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] varlen::Str [INFO] [stdout] note: required by a bound in `varlen::VBox` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct VBox(NonNull); [INFO] [stdout] | ^^^^^^ required by this bound in `VBox` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Person: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:33:27 [INFO] [stdout] | [INFO] [stdout] 12 | let mut p: VBox = VBox::new( [INFO] [stdout] | ___________________________^ [INFO] [stdout] 13 | | person::Init{ [INFO] [stdout] 14 | | age: 16, [INFO] [stdout] 15 | | name: Str::copy("Harry Potter"), [INFO] [stdout] ... | [INFO] [stdout] 18 | | ); [INFO] [stdout] | |_^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `Person` [INFO] [stdout] --> src/lib.rs:25:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] varlen::Str [INFO] [stdout] note: required by a bound in `varlen::VBox::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl VBox { [INFO] [stdout] | ^^^^^^ required by this bound in `VBox::::new` [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn new(init: impl Initializer) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `age` on type `varlen::VBox` [INFO] [stdout] --> src/lib.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 19 | assert_eq!(p.age, 16); [INFO] [stdout] | ^^^ unknown field [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:41:15 [INFO] [stdout] | [INFO] [stdout] 20 | assert_eq!(&p.refs().name[..], "Harry Potter"); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `as_mut` exists for struct `varlen::VBox`, but its trait bounds were not satisfied [INFO] [stdout] --> src/lib.rs:42:3 [INFO] [stdout] | [INFO] [stdout] 4 | struct Person { [INFO] [stdout] | ------------- doesn't satisfy `Person: VarLen` [INFO] [stdout] ... [INFO] [stdout] 21 | p.as_mut().muts().name.mut_slice().make_ascii_uppercase(); [INFO] [stdout] | ^^^^^^ method cannot be called on `varlen::VBox` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Person: VarLen` [INFO] [stdout] note: the trait `VarLen` must be implemented [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/lib.rs:331:1 [INFO] [stdout] | [INFO] [stdout] 331 | pub unsafe trait VarLen: Sized { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(&p.refs().name[..], "HARRY POTTER"); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(&p.refs().email[..], "harry.potter@example.com"); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `person` [INFO] [stdout] --> src/lib.rs:34:5 [INFO] [stdout] | [INFO] [stdout] 13 | person::Init{ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `person` [INFO] [stdout] | help: a struct with a similar name exists: `Person` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `person`, use `cargo add person` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0433, E0599, E0609. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - define_varlen (line 53) stdout ---- [INFO] [stdout] error: cannot find attribute `define_varlen` in this scope [INFO] [stdout] --> src/lib.rs:55:3 [INFO] [stdout] | [INFO] [stdout] 3 | #[define_varlen] [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 2 + use varlen_macro::define_varlen; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `controls_layout` in this scope [INFO] [stdout] --> src/lib.rs:57:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[controls_layout] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `varlen_array` in this scope [INFO] [stdout] --> src/lib.rs:60:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[varlen_array] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `varlen_array` in this scope [INFO] [stdout] --> src/lib.rs:63:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[varlen_array] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `varlen_array` in this scope [INFO] [stdout] --> src/lib.rs:66:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[varlen_array] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `len` in this scope [INFO] [stdout] --> src/lib.rs:61:20 [INFO] [stdout] | [INFO] [stdout] 9 | array1: [u16; *len], [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `len` in this scope [INFO] [stdout] --> src/lib.rs:64:19 [INFO] [stdout] | [INFO] [stdout] 12 | array2: [u8; *len], [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `len` in this scope [INFO] [stdout] --> src/lib.rs:67:25 [INFO] [stdout] | [INFO] [stdout] 15 | half_array: [u16; (*len) / 2], [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MultipleArrays: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 19 | let a: VBox = VBox::new(multiple_arrays::Init{ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `MultipleArrays` [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct MultipleArrays { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Str [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] note: required by a bound in `varlen::VBox` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct VBox(NonNull); [INFO] [stdout] | ^^^^^^ required by this bound in `VBox` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MultipleArrays: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 19 | let a: VBox = VBox::new(multiple_arrays::Init{ [INFO] [stdout] | ^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `MultipleArrays` [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct MultipleArrays { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Str [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] note: required by a bound in `varlen::VBox` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:35:20 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct VBox(NonNull); [INFO] [stdout] | ^^^^^^ required by this bound in `VBox` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `MultipleArrays: VarLen` is not satisfied [INFO] [stdout] --> src/lib.rs:71:31 [INFO] [stdout] | [INFO] [stdout] 19 | let a: VBox = VBox::new(multiple_arrays::Init{ [INFO] [stdout] | _______________________________^ [INFO] [stdout] 20 | | len: base_array.len(), [INFO] [stdout] 21 | | array1: FillSequentially(|i| base_array[i]), [INFO] [stdout] 22 | | array2: FillSequentially(|i| base_array[base_array.len() - 1 - i] as u8), [INFO] [stdout] 23 | | half_array: FillSequentially(|i| base_array[i * 2]), [INFO] [stdout] 24 | | }); [INFO] [stdout] | |__^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `VarLen` is not implemented for `MultipleArrays` [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 4 | struct MultipleArrays { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = help: the following other types implement trait `VarLen`: [INFO] [stdout] Array [INFO] [stdout] FixedLen [INFO] [stdout] Str [INFO] [stdout] Tup2 [INFO] [stdout] Tup3 [INFO] [stdout] Tup4 [INFO] [stdout] Tup5 [INFO] [stdout] note: required by a bound in `varlen::VBox::::new` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/varlen-0.1.2/src/vbox.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | impl VBox { [INFO] [stdout] | ^^^^^^ required by this bound in `VBox::::new` [INFO] [stdout] ... [INFO] [stdout] 54 | pub fn new(init: impl Initializer) -> Self { [INFO] [stdout] | --- required by a bound in this associated function [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 25 | assert_eq!(a.refs().array1, &[1, 3, 9, 27]); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:78:14 [INFO] [stdout] | [INFO] [stdout] 26 | assert_eq!(a.refs().array2, &[27, 9, 3, 1]); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `refs` found for struct `varlen::VBox` in the current scope [INFO] [stdout] --> src/lib.rs:79:14 [INFO] [stdout] | [INFO] [stdout] 27 | assert_eq!(a.refs().half_array, &[1, 9]); [INFO] [stdout] | ^^^^ method not found in `varlen::VBox` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `multiple_arrays` [INFO] [stdout] --> src/lib.rs:71:41 [INFO] [stdout] | [INFO] [stdout] 19 | let a: VBox = VBox::new(multiple_arrays::Init{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | use of unresolved module or unlinked crate `multiple_arrays` [INFO] [stdout] | help: a struct with a similar name exists: `MultipleArrays` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `multiple_arrays`, use `cargo add multiple_arrays` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - define_varlen (line 22) [INFO] [stdout] src/lib.rs - define_varlen (line 53) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.19s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "20938d1ece8c0c6cbf85b0666ffefb51792e82dd42591948c08c1a996855ad0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20938d1ece8c0c6cbf85b0666ffefb51792e82dd42591948c08c1a996855ad0a", kill_on_drop: false }` [INFO] [stdout] 20938d1ece8c0c6cbf85b0666ffefb51792e82dd42591948c08c1a996855ad0a