[INFO] fetching crate struct-to-enum-macros 1.1.2... [INFO] testing struct-to-enum-macros-1.1.2 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-2 [INFO] extracting crate struct-to-enum-macros 1.1.2 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate struct-to-enum-macros 1.1.2 [INFO] finished tweaking crates.io crate struct-to-enum-macros 1.1.2 [INFO] tweaked toml for crates.io crate struct-to-enum-macros 1.1.2 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate struct-to-enum-macros 1.1.2 on toolchain dec9417b8611e34e787a3e4c37686b5131f9e5c5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate struct-to-enum-macros 1.1.2 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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 82cd098eb6fe2499e4056ba730d604c5b61fd44be2ac361ae24f55243eb488c4 [INFO] running `Command { std: "docker" "start" "-a" "82cd098eb6fe2499e4056ba730d604c5b61fd44be2ac361ae24f55243eb488c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "82cd098eb6fe2499e4056ba730d604c5b61fd44be2ac361ae24f55243eb488c4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82cd098eb6fe2499e4056ba730d604c5b61fd44be2ac361ae24f55243eb488c4", kill_on_drop: false }` [INFO] [stdout] 82cd098eb6fe2499e4056ba730d604c5b61fd44be2ac361ae24f55243eb488c4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 649229bb96f3d3325f5ba800467abda04e07c9200dba3ab2af919da2afe16598 [INFO] running `Command { std: "docker" "start" "-a" "649229bb96f3d3325f5ba800467abda04e07c9200dba3ab2af919da2afe16598", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling struct-to-enum-macros v1.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.74s [INFO] running `Command { std: "docker" "inspect" "649229bb96f3d3325f5ba800467abda04e07c9200dba3ab2af919da2afe16598", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "649229bb96f3d3325f5ba800467abda04e07c9200dba3ab2af919da2afe16598", kill_on_drop: false }` [INFO] [stdout] 649229bb96f3d3325f5ba800467abda04e07c9200dba3ab2af919da2afe16598 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7d11000a0d38d868e20321ef195cbb10c1765d93a4ef2249f4bf6884e760ffc [INFO] running `Command { std: "docker" "start" "-a" "f7d11000a0d38d868e20321ef195cbb10c1765d93a4ef2249f4bf6884e760ffc", kill_on_drop: false }` [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling strum v0.28.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling strum_macros v0.28.0 [INFO] [stderr] Compiling struct-to-enum-macros v1.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 5.32s [INFO] running `Command { std: "docker" "inspect" "f7d11000a0d38d868e20321ef195cbb10c1765d93a4ef2249f4bf6884e760ffc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7d11000a0d38d868e20321ef195cbb10c1765d93a4ef2249f4bf6884e760ffc", kill_on_drop: false }` [INFO] [stdout] f7d11000a0d38d868e20321ef195cbb10c1765d93a4ef2249f4bf6884e760ffc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2158e8876a3c4adc7a8cbed70fbd31c2660af3e69c05fdc1243fd10fbc37fb40 [INFO] running `Command { std: "docker" "start" "-a" "2158e8876a3c4adc7a8cbed70fbd31c2660af3e69c05fdc1243fd10fbc37fb40", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/struct_to_enum_macros-08d75a49320a5eea) [INFO] [stderr] Doc-tests struct_to_enum_macros [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] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/lib.rs - field_type (line 130) ... FAILED [INFO] [stdout] test src/lib.rs - field_type (line 109) ... FAILED [INFO] [stdout] test src/lib.rs - field_name (line 249) ... FAILED [INFO] [stdout] test src/lib.rs - field_name (line 267) ... FAILED [INFO] [stdout] test src/lib.rs - field_type (line 47) ... FAILED [INFO] [stdout] test src/lib.rs - field_type (line 75) ... ok [INFO] [stdout] test src/lib.rs - field_name (line 221) ... ok [INFO] [stdout] test src/lib.rs - field_name (line 198) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - field_type (line 130) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:131:5 [INFO] [stdout] | [INFO] [stdout] 131 | use struct_to_enum::FieldType; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_type_derive` in this scope [INFO] [stdout] --> src/lib.rs:135:3 [INFO] [stdout] | [INFO] [stdout] 135 | #[stem_type_derive(Debug, strum_macros::VariantNames)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_type_derive` is an attribute that can be used by the derive macro `FieldType`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_type_attr` in this scope [INFO] [stdout] --> src/lib.rs:136:3 [INFO] [stdout] | [INFO] [stdout] 136 | #[stem_type_attr(strum(serialize_all = "SCREAMING-KEBAB-CASE"))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_type_attr` is an attribute that can be used by the derive macro `FieldType`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `RequestFieldType` in this scope [INFO] [stdout] --> src/lib.rs:142:12 [INFO] [stdout] | [INFO] [stdout] 142 | assert_eq!(RequestFieldType::VARIANTS, ["USER-ID", "PAYLOAD"]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `RequestFieldType` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - field_type (line 109) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | use struct_to_enum::FieldType; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_type_derive` in this scope [INFO] [stdout] --> src/lib.rs:113:3 [INFO] [stdout] | [INFO] [stdout] 113 | #[stem_type_derive(Debug, PartialEq)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_type_derive` is an attribute that can be used by the derive macro `FieldType`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `PairFieldType` in this scope [INFO] [stdout] --> src/lib.rs:121:14 [INFO] [stdout] | [INFO] [stdout] 121 | let fields: [PairFieldType; 2] = Pair { first: 42_i32, second: "hi" }.into(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `PairFieldType` in this scope [INFO] [stdout] --> src/lib.rs:122:23 [INFO] [stdout] | [INFO] [stdout] 122 | assert_eq!(fields[0], PairFieldType::First(42)); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `PairFieldType` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - field_name (line 249) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:250:5 [INFO] [stdout] | [INFO] [stdout] 250 | use struct_to_enum::{FieldName, FieldNames}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `PairFieldName` in this scope [INFO] [stdout] --> src/lib.rs:259:12 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(PairFieldName::First, PairFieldName::First); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `PairFieldName` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `PairFieldName` in this scope [INFO] [stdout] --> src/lib.rs:259:34 [INFO] [stdout] | [INFO] [stdout] 259 | assert_eq!(PairFieldName::First, PairFieldName::First); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `PairFieldName` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - field_name (line 267) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:268:5 [INFO] [stdout] | [INFO] [stdout] 268 | use struct_to_enum::FieldName; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_name_derive` in this scope [INFO] [stdout] --> src/lib.rs:272:3 [INFO] [stdout] | [INFO] [stdout] 272 | #[stem_name_derive(EnumString)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_name_derive` is an attribute that can be used by the derive macro `FieldName`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_name_attr` in this scope [INFO] [stdout] --> src/lib.rs:273:3 [INFO] [stdout] | [INFO] [stdout] 273 | #[stem_name_attr(strum(ascii_case_insensitive))] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_name_attr` is an attribute that can be used by the derive macro `FieldName`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `QueryFieldName` in this scope [INFO] [stdout] --> src/lib.rs:280:14 [INFO] [stdout] | [INFO] [stdout] 280 | let variant: QueryFieldName = "userid".parse().unwrap(); // case-insensitive [INFO] [stdout] | ^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `QueryFieldName` in this scope [INFO] [stdout] --> src/lib.rs:281:21 [INFO] [stdout] | [INFO] [stdout] 281 | assert_eq!(variant, QueryFieldName::UserId); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `QueryFieldName` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - field_type (line 47) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | use struct_to_enum::FieldType; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_type_derive` in this scope [INFO] [stdout] --> src/lib.rs:52:3 [INFO] [stdout] | [INFO] [stdout] 52 | #[stem_type_derive(Debug, PartialEq, Clone)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_type_derive` is an attribute that can be used by the derive macro `FieldType`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_type` in this scope [INFO] [stdout] --> src/lib.rs:56:7 [INFO] [stdout] | [INFO] [stdout] 56 | #[stem_type(skip)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_type` is an attribute that can be used by the derive macro `FieldType`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `ConfigFieldType` in this scope [INFO] [stdout] --> src/lib.rs:63:14 [INFO] [stdout] | [INFO] [stdout] 63 | let fields: [ConfigFieldType; 2] = cfg.into(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ConfigFieldType` in this scope [INFO] [stdout] --> src/lib.rs:65:23 [INFO] [stdout] | [INFO] [stdout] 65 | assert_eq!(fields[0], ConfigFieldType::Width(1920)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConfigFieldType` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ConfigFieldType` in this scope [INFO] [stdout] --> src/lib.rs:66:23 [INFO] [stdout] | [INFO] [stdout] 66 | assert_eq!(fields[1], ConfigFieldType::Height(1080)); [INFO] [stdout] | ^^^^^^^^^^^^^^^ use of undeclared type `ConfigFieldType` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - field_name (line 198) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `struct_to_enum` [INFO] [stdout] --> src/lib.rs:199:5 [INFO] [stdout] | [INFO] [stdout] 199 | use struct_to_enum::{FieldName, FieldNames}; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `struct_to_enum` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `struct_to_enum`, use `cargo add struct_to_enum` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `stem_name` in this scope [INFO] [stdout] --> src/lib.rs:205:7 [INFO] [stdout] | [INFO] [stdout] 205 | #[stem_name(skip)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `stem_name` is an attribute that can be used by the derive macro `FieldName`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find type `UserFieldName` in this scope [INFO] [stdout] --> src/lib.rs:211:13 [INFO] [stdout] | [INFO] [stdout] 211 | let names: [UserFieldName; 2] = User::field_names(); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `field_names` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:211:39 [INFO] [stdout] | [INFO] [stdout] 202 | struct User { [INFO] [stdout] | ----------- function or associated item `field_names` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 211 | let names: [UserFieldName; 2] = User::field_names(); [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `User` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `UserFieldName` in this scope [INFO] [stdout] --> src/lib.rs:212:20 [INFO] [stdout] | [INFO] [stdout] 212 | assert_eq!(names, [UserFieldName::Id, UserFieldName::UserName]); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `UserFieldName` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `UserFieldName` in this scope [INFO] [stdout] --> src/lib.rs:212:39 [INFO] [stdout] | [INFO] [stdout] 212 | assert_eq!(names, [UserFieldName::Id, UserFieldName::UserName]); [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `UserFieldName` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - field_name (line 198) [INFO] [stdout] src/lib.rs - field_name (line 249) [INFO] [stdout] src/lib.rs - field_name (line 267) [INFO] [stdout] src/lib.rs - field_type (line 109) [INFO] [stdout] src/lib.rs - field_type (line 130) [INFO] [stdout] src/lib.rs - field_type (line 47) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 2 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.49s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2158e8876a3c4adc7a8cbed70fbd31c2660af3e69c05fdc1243fd10fbc37fb40", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2158e8876a3c4adc7a8cbed70fbd31c2660af3e69c05fdc1243fd10fbc37fb40", kill_on_drop: false }` [INFO] [stdout] 2158e8876a3c4adc7a8cbed70fbd31c2660af3e69c05fdc1243fd10fbc37fb40