[INFO] fetching crate gratte_macros 2.0.0... [INFO] testing gratte_macros-2.0.0 against try#dec9417b8611e34e787a3e4c37686b5131f9e5c5 for pr-154210-1 [INFO] extracting crate gratte_macros 2.0.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate gratte_macros 2.0.0 [INFO] finished tweaking crates.io crate gratte_macros 2.0.0 [INFO] tweaked toml for crates.io crate gratte_macros 2.0.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate gratte_macros 2.0.0 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 gratte_macros 2.0.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" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb27d17f0a2381d0a7ccc5949a85a1fa2620ec827e8ff66d2d9d571d46e99efd [INFO] running `Command { std: "docker" "start" "-a" "cb27d17f0a2381d0a7ccc5949a85a1fa2620ec827e8ff66d2d9d571d46e99efd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb27d17f0a2381d0a7ccc5949a85a1fa2620ec827e8ff66d2d9d571d46e99efd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb27d17f0a2381d0a7ccc5949a85a1fa2620ec827e8ff66d2d9d571d46e99efd", kill_on_drop: false }` [INFO] [stdout] cb27d17f0a2381d0a7ccc5949a85a1fa2620ec827e8ff66d2d9d571d46e99efd [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b52e87d6e2c77743fa582fd5eaf939fc5e08ba4090f0dc5c3aa8848ef81374a [INFO] running `Command { std: "docker" "start" "-a" "2b52e87d6e2c77743fa582fd5eaf939fc5e08ba4090f0dc5c3aa8848ef81374a", kill_on_drop: false }` [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Compiling gratte_macros v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.60s [INFO] running `Command { std: "docker" "inspect" "2b52e87d6e2c77743fa582fd5eaf939fc5e08ba4090f0dc5c3aa8848ef81374a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b52e87d6e2c77743fa582fd5eaf939fc5e08ba4090f0dc5c3aa8848ef81374a", kill_on_drop: false }` [INFO] [stdout] 2b52e87d6e2c77743fa582fd5eaf939fc5e08ba4090f0dc5c3aa8848ef81374a [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] beecfe372012bd1e328ee0cf20f8897fca79dda221433e637ad0bed7bf57bc5b [INFO] running `Command { std: "docker" "start" "-a" "beecfe372012bd1e328ee0cf20f8897fca79dda221433e637ad0bed7bf57bc5b", kill_on_drop: false }` [INFO] [stderr] Compiling gratte_macros v2.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.76s [INFO] running `Command { std: "docker" "inspect" "beecfe372012bd1e328ee0cf20f8897fca79dda221433e637ad0bed7bf57bc5b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "beecfe372012bd1e328ee0cf20f8897fca79dda221433e637ad0bed7bf57bc5b", kill_on_drop: false }` [INFO] [stdout] beecfe372012bd1e328ee0cf20f8897fca79dda221433e637ad0bed7bf57bc5b [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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+dec9417b8611e34e787a3e4c37686b5131f9e5c5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 7903360ff8f0c390f3e23ef01f11a62b10d8fadf67505e10621051779dfbf30b [INFO] running `Command { std: "docker" "start" "-a" "7903360ff8f0c390f3e23ef01f11a62b10d8fadf67505e10621051779dfbf30b", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.05s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/gratte_macros-80c07dd994c8bc6c) [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test helpers::case_style::tests::test_convert_case ... ok [INFO] [stdout] test helpers::case_style::tests::test_impl_from_str_for_case_style_pascal_case ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 2 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests gratte_macros [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test src/lib.rs - display (line 413) ... FAILED [INFO] [stdout] test src/lib.rs - display (line 423) ... FAILED [INFO] [stdout] test src/lib.rs - enum_is (line 516) ... FAILED [INFO] [stdout] test src/lib.rs - as_ref_str (line 152) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 861) ... FAILED [INFO] [stdout] test src/lib.rs - enum_count (line 962) ... FAILED [INFO] [stdout] test src/lib.rs - enum_iter (line 478) ... FAILED [INFO] [stdout] test src/lib.rs - enum_messages (line 715) ... FAILED [INFO] [stdout] test src/lib.rs - into_static_str (line 320) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 645) ... FAILED [INFO] [stdout] test src/lib.rs - enum_properties (line 803) ... FAILED [INFO] [stdout] test src/lib.rs - enum_discriminants (line 924) ... FAILED [INFO] [stdout] test src/lib.rs - enum_try_as (line 542) ... FAILED [INFO] [stdout] test src/lib.rs - from_repr (line 675) ... FAILED [INFO] [stdout] test src/lib.rs - static_variants_array (line 272) ... FAILED [INFO] [stdout] test src/lib.rs - from_string (line 76) ... FAILED [INFO] [stdout] test src/lib.rs - enum_table (line 592) ... FAILED [INFO] [stdout] test src/lib.rs - to_string (line 358) ... FAILED [INFO] [stdout] test src/lib.rs - variant_names (line 223) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - display (line 413) stdout ---- [INFO] [stdout] error[E0433]: cannot find module or crate `gratte` in this scope [INFO] [stdout] --> src/lib.rs:414:10 [INFO] [stdout] | [INFO] [stdout] 414 | #[derive(gratte::Display)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:416:7 [INFO] [stdout] | [INFO] [stdout] 416 | #[strum(to_string = "saturation is {sat}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:418:7 [INFO] [stdout] | [INFO] [stdout] 418 | #[strum(to_string = "hue is {1}, saturation is {0}")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - display (line 423) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:426:5 [INFO] [stdout] | [INFO] [stdout] 426 | use gratte::Display; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:430:7 [INFO] [stdout] | [INFO] [stdout] 430 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 429 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 430 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:437:7 [INFO] [stdout] | [INFO] [stdout] 437 | #[strum(to_string = "purple with {sat} saturation")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 429 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 430 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0277]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:445:50 [INFO] [stdout] | [INFO] [stdout] 445 | assert_eq!(String::from("redred"), format!("{}", red)); [INFO] [stdout] | -- ^^^ `Color` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `Color` [INFO] [stdout] --> src/lib.rs:429:1 [INFO] [stdout] | [INFO] [stdout] 429 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:448:43 [INFO] [stdout] | [INFO] [stdout] 429 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 448 | assert_eq!(String::from("Yellow"), yellow.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/mod.rs:1187:0 [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 `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error[E0277]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:454:8 [INFO] [stdout] | [INFO] [stdout] 453 | "blue: {} green: {}", [INFO] [stdout] | -- required by this formatting parameter [INFO] [stdout] 454 | Color::Blue(10), [INFO] [stdout] | ^^^^^^^^^^^^^^^ `Color` cannot be formatted with the default formatter [INFO] [stdout] | [INFO] [stdout] help: the trait `std::fmt::Display` is not implemented for `Color` [INFO] [stdout] --> src/lib.rs:429:1 [INFO] [stdout] | [INFO] [stdout] 429 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:460:62 [INFO] [stdout] | [INFO] [stdout] 429 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 460 | assert_eq!(String::from("purple with 10 saturation"), purple.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/mod.rs:1187:0 [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 `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_is (line 516) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:517:5 [INFO] [stdout] | [INFO] [stdout] 517 | use gratte::EnumIs; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_red` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:525:20 [INFO] [stdout] | [INFO] [stdout] 520 | enum Color { [INFO] [stdout] | ---------- method `is_red` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 525 | assert!(Color::Red.is_red()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_green` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:526:32 [INFO] [stdout] | [INFO] [stdout] 520 | enum Color { [INFO] [stdout] | ---------- method `is_green` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 526 | assert!(Color::Green{range: 0}.is_green()); [INFO] [stdout] | ^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - as_ref_str (line 152) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:155:5 [INFO] [stdout] | [INFO] [stdout] 155 | use gratte::AsRefStr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:159:7 [INFO] [stdout] | [INFO] [stdout] 159 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 158 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 159 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:186:3 [INFO] [stdout] | [INFO] [stdout] 186 | #[strum(prefix = "/")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:188:7 [INFO] [stdout] | [INFO] [stdout] 188 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 187 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 188 | enum ColorWithPrefix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:198:3 [INFO] [stdout] | [INFO] [stdout] 198 | #[strum(suffix = ".rs")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:200:7 [INFO] [stdout] | [INFO] [stdout] 200 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 199 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 200 | enum ColorWithSuffix { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:170:26 [INFO] [stdout] | [INFO] [stdout] 158 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 170 | assert_eq!("redred", red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 158 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 173 | assert_eq!("Yellow", yellow.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `Color` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:179:24 [INFO] [stdout] | [INFO] [stdout] 158 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 179 | Color::Blue(10).as_ref(), [INFO] [stdout] | ^^^^^^ method not found in `Color` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:180:35 [INFO] [stdout] | [INFO] [stdout] 158 | enum Color { [INFO] [stdout] | ---------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 180 | Color::Green { range: 42 }.as_ref() [INFO] [stdout] | ^^^^^^ method not found in `Color` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithPrefix` in the current scope [INFO] [stdout] --> src/lib.rs:193:44 [INFO] [stdout] | [INFO] [stdout] 187 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 193 | assert_eq!("/redred", ColorWithPrefix::Red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithPrefix` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithPrefix` in the current scope [INFO] [stdout] --> src/lib.rs:194:45 [INFO] [stdout] | [INFO] [stdout] 187 | enum ColorWithPrefix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 194 | assert_eq!("/Green", ColorWithPrefix::Green.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithPrefix` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithSuffix` in the current scope [INFO] [stdout] --> src/lib.rs:205:46 [INFO] [stdout] | [INFO] [stdout] 199 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 205 | assert_eq!("redred.rs", ColorWithSuffix::Red.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithSuffix` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_ref` found for enum `ColorWithSuffix` in the current scope [INFO] [stdout] --> src/lib.rs:206:47 [INFO] [stdout] | [INFO] [stdout] 199 | enum ColorWithSuffix { [INFO] [stdout] | -------------------- method `as_ref` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 206 | assert_eq!("Green.rs", ColorWithSuffix::Green.as_ref()); [INFO] [stdout] | ^^^^^^ method not found in `ColorWithSuffix` [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 `as_ref`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `AsRef` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_discriminants (line 861) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:864:5 [INFO] [stdout] | [INFO] [stdout] 864 | use gratte::{IntoEnumIterator, EnumMessage as _}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:865:5 [INFO] [stdout] | [INFO] [stdout] 865 | use gratte::{EnumDiscriminants, EnumIter, EnumString}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:873:3 [INFO] [stdout] | [INFO] [stdout] 873 | #[strum_discriminants(derive(EnumString, gratte::EnumMessage))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:874:3 [INFO] [stdout] | [INFO] [stdout] 874 | #[strum_discriminants(doc = "This is the docstring on the generated type.")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:876:7 [INFO] [stdout] | [INFO] [stdout] 876 | #[strum_discriminants(strum(message = "Variant zero"))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 875 + #[derive(EnumDiscriminants)] [INFO] [stdout] 876 | enum MyEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:884:3 [INFO] [stdout] | [INFO] [stdout] 884 | #[strum_discriminants(derive(EnumIter))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:885:3 [INFO] [stdout] | [INFO] [stdout] 885 | #[strum_discriminants(name(MyVariants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:893:5 [INFO] [stdout] | [INFO] [stdout] 893 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:894:5 [INFO] [stdout] | [INFO] [stdout] 894 | MyEnumDiscriminants::from_str("Variant0").unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyVariants` in this scope [INFO] [stdout] --> src/lib.rs:898:10 [INFO] [stdout] | [INFO] [stdout] 898 | vec![MyVariants::Variant0, MyVariants::Variant1], [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyVariants` in this scope [INFO] [stdout] --> src/lib.rs:898:32 [INFO] [stdout] | [INFO] [stdout] 898 | vec![MyVariants::Variant0, MyVariants::Variant1], [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyVariants` in this scope [INFO] [stdout] --> src/lib.rs:899:5 [INFO] [stdout] | [INFO] [stdout] 899 | MyVariants::iter().collect::>() [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `MyVariants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:905:5 [INFO] [stdout] | [INFO] [stdout] 905 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:909:5 [INFO] [stdout] | [INFO] [stdout] 909 | MyEnumDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:910:5 [INFO] [stdout] | [INFO] [stdout] 910 | MyEnumDiscriminants::from(MyEnum::Variant0(NonDefault)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `MyEnumDiscriminants` in this scope [INFO] [stdout] --> src/lib.rs:915:5 [INFO] [stdout] | [INFO] [stdout] 915 | MyEnumDiscriminants::Variant0.get_message(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of undeclared type `MyEnumDiscriminants` [INFO] [stdout] [INFO] [stdout] error: aborting due to 16 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 - enum_count (line 962) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:963:5 [INFO] [stdout] | [INFO] [stdout] 963 | use gratte::{EnumCount, IntoEnumIterator}; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:964:5 [INFO] [stdout] | [INFO] [stdout] 964 | use gratte::EnumIter; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `gratte` in this scope [INFO] [stdout] --> src/lib.rs:966:17 [INFO] [stdout] | [INFO] [stdout] 966 | #[derive(Debug, gratte::EnumCount, EnumIter)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `COUNT` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:977:21 [INFO] [stdout] | [INFO] [stdout] 967 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 977 | assert_eq!(7, Week::COUNT); [INFO] [stdout] | ^^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:978:18 [INFO] [stdout] | [INFO] [stdout] 967 | enum Week { [INFO] [stdout] | --------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 978 | assert_eq!(Week::iter().count(), Week::COUNT); [INFO] [stdout] | ^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `COUNT` found for enum `Week` in the current scope [INFO] [stdout] --> src/lib.rs:978:40 [INFO] [stdout] | [INFO] [stdout] 967 | enum Week { [INFO] [stdout] | --------- variant or associated item `COUNT` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 978 | assert_eq!(Week::iter().count(), Week::COUNT); [INFO] [stdout] | ^^^^^ variant or associated item not found in `Week` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_iter (line 478) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:480:5 [INFO] [stdout] | [INFO] [stdout] 480 | use gratte::IntoEnumIterator; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:481:5 [INFO] [stdout] | [INFO] [stdout] 481 | use gratte::EnumIter; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:492:21 [INFO] [stdout] | [INFO] [stdout] 484 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 492 | for color in Color::iter() { [INFO] [stdout] | ^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `iter` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:496:21 [INFO] [stdout] | [INFO] [stdout] 484 | enum Color { [INFO] [stdout] | ---------- variant or associated item `iter` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 496 | let mut ci = Color::iter(); [INFO] [stdout] | ^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_messages (line 715) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:717:5 [INFO] [stdout] | [INFO] [stdout] 717 | use gratte::EnumMessage; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:718:5 [INFO] [stdout] | [INFO] [stdout] 718 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:724:7 [INFO] [stdout] | [INFO] [stdout] 724 | #[strum(message = "Red", detailed_message = "This is very red")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 722 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 723 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:726:7 [INFO] [stdout] | [INFO] [stdout] 726 | #[strum(message = "Simply Green")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 722 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 723 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:728:7 [INFO] [stdout] | [INFO] [stdout] 728 | #[strum(serialize = "b", serialize = "blue")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 722 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 723 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_message` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:778:21 [INFO] [stdout] | [INFO] [stdout] 722 | enum Color { [INFO] [stdout] | ---------- method `get_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 778 | assert_eq!("Red", c.get_message().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_detailed_message` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:779:34 [INFO] [stdout] | [INFO] [stdout] 722 | enum Color { [INFO] [stdout] | ---------- method `get_detailed_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 779 | assert_eq!("This is very red", c.get_detailed_message().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_documentation` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:780:31 [INFO] [stdout] | [INFO] [stdout] 722 | enum Color { [INFO] [stdout] | ---------- method `get_documentation` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 780 | assert_eq!("Danger color.", c.get_documentation().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_serializations` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:781:23 [INFO] [stdout] | [INFO] [stdout] 722 | enum Color { [INFO] [stdout] | ---------- method `get_serializations` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 781 | assert_eq!(["Red"], c.get_serializations()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - into_static_str (line 320) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:321:5 [INFO] [stdout] | [INFO] [stdout] 321 | use gratte::IntoStaticStr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&str: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:334:37 [INFO] [stdout] | [INFO] [stdout] 334 | let right: &'static str = state.into(); [INFO] [stdout] | ^^^^ the trait `From>` is not implemented for `&str` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `State<'_>` to implement `Into<&str>` [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&str: From>` is not satisfied [INFO] [stdout] --> src/lib.rs:337:36 [INFO] [stdout] | [INFO] [stdout] 337 | let done: &'static str = state.into(); [INFO] [stdout] | ^^^^ the trait `From>` is not implemented for `&str` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `From`: [INFO] [stdout] `String` implements `From<&String>` [INFO] [stdout] `String` implements `From<&mut str>` [INFO] [stdout] `String` implements `From<&str>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From>` [INFO] [stdout] `String` implements `From` [INFO] [stdout] = note: required for `State<'_>` to implement `Into<&str>` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_repr (line 645) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:646:5 [INFO] [stdout] | [INFO] [stdout] 646 | use gratte::FromRepr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:656:37 [INFO] [stdout] | [INFO] [stdout] 649 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 656 | assert_eq!(Some(Color::Red), Color::from_repr(0)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:657:50 [INFO] [stdout] | [INFO] [stdout] 649 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 657 | assert_eq!(Some(Color::Green {range: 0}), Color::from_repr(1)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:658:41 [INFO] [stdout] | [INFO] [stdout] 649 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 658 | assert_eq!(Some(Color::Blue(0)), Color::from_repr(2)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:659:40 [INFO] [stdout] | [INFO] [stdout] 649 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 659 | assert_eq!(Some(Color::Yellow), Color::from_repr(3)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:660:25 [INFO] [stdout] | [INFO] [stdout] 649 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 660 | assert_eq!(None, Color::from_repr(4)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Vehicle` in the current scope [INFO] [stdout] --> src/lib.rs:670:27 [INFO] [stdout] | [INFO] [stdout] 665 | enum Vehicle { [INFO] [stdout] | ------------ variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 670 | assert_eq!(None, Vehicle::from_repr(0)); [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Vehicle` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_properties (line 803) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:804:5 [INFO] [stdout] | [INFO] [stdout] 804 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:811:7 [INFO] [stdout] | [INFO] [stdout] 811 | #[strum(props(Red = "255", Blue = "255", Green = "255"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 810 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 811 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:813:7 [INFO] [stdout] | [INFO] [stdout] 813 | #[strum(props(Red = "0", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 810 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 811 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:815:7 [INFO] [stdout] | [INFO] [stdout] 815 | #[strum(props(Red = "0", Blue = "255", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 810 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 811 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:817:7 [INFO] [stdout] | [INFO] [stdout] 817 | #[strum(props(Red = "255", Blue = "0", Green = "0"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 810 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 811 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:819:7 [INFO] [stdout] | [INFO] [stdout] 819 | #[strum(props(Red = "0", Blue = "0", Green = "255"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 810 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 811 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:827:14 [INFO] [stdout] | [INFO] [stdout] 810 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 827 | my_color.get_str("Red").unwrap(), [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:828:14 [INFO] [stdout] | [INFO] [stdout] 810 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 828 | my_color.get_str("Green").unwrap(), [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:829:14 [INFO] [stdout] | [INFO] [stdout] 810 | enum Color { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 829 | my_color.get_str("Blue").unwrap() [INFO] [stdout] | ^^^^^^^ method not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 9 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_discriminants (line 924) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:925:5 [INFO] [stdout] | [INFO] [stdout] 925 | use gratte::EnumDiscriminants; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:929:9 [INFO] [stdout] | [INFO] [stdout] 929 | use gratte::EnumDiscriminants; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:933:7 [INFO] [stdout] | [INFO] [stdout] 933 | #[strum_discriminants(vis(pub))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 935 + #[derive(EnumDiscriminants)] [INFO] [stdout] 936 | enum PrivateEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum_discriminants` in this scope [INFO] [stdout] --> src/lib.rs:934:7 [INFO] [stdout] | [INFO] [stdout] 934 | #[strum_discriminants(name(PubDiscriminants))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum_discriminants` is an attribute that can be used by the derive macro `EnumDiscriminants`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 935 + #[derive(EnumDiscriminants)] [INFO] [stdout] 936 | enum PrivateEnum { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `PubDiscriminants` in `inner` [INFO] [stdout] --> src/lib.rs:943:12 [INFO] [stdout] | [INFO] [stdout] 943 | inner::PubDiscriminants::Variant0, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ could not find `PubDiscriminants` in `inner` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find `PubDiscriminants` in `inner` [INFO] [stdout] --> src/lib.rs:944:12 [INFO] [stdout] | [INFO] [stdout] 944 | inner::PubDiscriminants::Variant1, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ could not find `PubDiscriminants` in `inner` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 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 - enum_try_as (line 542) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:543:5 [INFO] [stdout] | [INFO] [stdout] 543 | use gratte::EnumTryAs; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_as_write` found for enum `Message` in the current scope [INFO] [stdout] --> src/lib.rs:554:43 [INFO] [stdout] | [INFO] [stdout] 546 | enum Message { [INFO] [stdout] | ------------ method `try_as_write` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 554 | Message::Write(String::from("Hello")).try_as_write(), [INFO] [stdout] | ^^^^^^^^^^^^ method not found in `Message` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `try_as_change_color` found for enum `Message` in the current scope [INFO] [stdout] --> src/lib.rs:558:35 [INFO] [stdout] | [INFO] [stdout] 546 | enum Message { [INFO] [stdout] | ------------ method `try_as_change_color` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 558 | Message::ChangeColor(1, 2, 3).try_as_change_color(), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `Message` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_repr (line 675) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:676:5 [INFO] [stdout] | [INFO] [stdout] 676 | use gratte::FromRepr; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_repr` found for enum `Number` in the current scope [INFO] [stdout] --> src/lib.rs:686:13 [INFO] [stdout] | [INFO] [stdout] 680 | enum Number { [INFO] [stdout] | ----------- variant or associated item `from_repr` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 686 | Number::from_repr(d) [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `Number` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - static_variants_array (line 272) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:273:5 [INFO] [stdout] | [INFO] [stdout] 273 | use gratte::VariantArray as _; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:274:5 [INFO] [stdout] | [INFO] [stdout] 274 | use gratte::VariantArray; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `VARIANTS` found for enum `Op` in the current scope [INFO] [stdout] --> src/lib.rs:284:16 [INFO] [stdout] | [INFO] [stdout] 277 | enum Op { [INFO] [stdout] | ------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 284 | assert_eq!(Op::VARIANTS, &[Op::Add, Op::Sub, Op::Mul, Op::Div]); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Op` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - from_string (line 76) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | use gratte::EnumString; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:89:7 [INFO] [stdout] | [INFO] [stdout] 89 | #[strum(serialize = "blue", serialize = "b")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 81 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 82 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:93:7 [INFO] [stdout] | [INFO] [stdout] 93 | #[strum(disabled)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 81 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 82 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:97:7 [INFO] [stdout] | [INFO] [stdout] 97 | #[strum(ascii_case_insensitive)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 81 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 82 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:120:28 [INFO] [stdout] | [INFO] [stdout] 81 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 120 | let color_variant = Color::from_str("Red").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [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 `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 120 - let color_variant = Color::from_str("Red").unwrap(); [INFO] [stdout] 120 + let color_variant = Color::from("Red").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:123:28 [INFO] [stdout] | [INFO] [stdout] 81 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 123 | let color_variant = Color::from_str("b").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [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 `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 123 - let color_variant = Color::from_str("b").unwrap(); [INFO] [stdout] 123 + let color_variant = Color::from("b").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 81 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 126 | let color_variant = Color::from_str("Yellow"); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [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 `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 126 - let color_variant = Color::from_str("Yellow"); [INFO] [stdout] 126 + let color_variant = Color::from("Yellow"); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `from_str` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 81 | enum Color { [INFO] [stdout] | ---------- variant or associated item `from_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 130 | let color_variant = Color::from_str("bLACk").unwrap(); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [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 `from_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `FromStr` [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 130 - let color_variant = Color::from_str("bLACk").unwrap(); [INFO] [stdout] 130 + let color_variant = Color::from("bLACk").unwrap(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_table (line 592) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:593:5 [INFO] [stdout] | [INFO] [stdout] 593 | use gratte::EnumTable; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:603:12 [INFO] [stdout] | [INFO] [stdout] 603 | assert_eq!(ColorTable::default(), ColorTable::new(0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:603:35 [INFO] [stdout] | [INFO] [stdout] 603 | assert_eq!(ColorTable::default(), ColorTable::new(0, 0, 0, 0)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:604:12 [INFO] [stdout] | [INFO] [stdout] 604 | assert_eq!(ColorTable::filled(2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:604:35 [INFO] [stdout] | [INFO] [stdout] 604 | assert_eq!(ColorTable::filled(2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:605:12 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(ColorTable::from_closure(|_| 3), ColorTable::new(3, 3, 3, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:605:45 [INFO] [stdout] | [INFO] [stdout] 605 | assert_eq!(ColorTable::from_closure(|_| 3), ColorTable::new(3, 3, 3, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:606:12 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(ColorTable::default().transform(|_, val| val + 2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:606:63 [INFO] [stdout] | [INFO] [stdout] 606 | assert_eq!(ColorTable::default().transform(|_, val| val + 2), ColorTable::new(2, 2, 2, 2)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:608:23 [INFO] [stdout] | [INFO] [stdout] 608 | let mut complex_map = ColorTable::from_closure(|color| match color { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find type `ColorTable` in this scope [INFO] [stdout] --> src/lib.rs:614:25 [INFO] [stdout] | [INFO] [stdout] 614 | assert_eq!(complex_map, ColorTable::new(0, 3, 0, 3)); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `ColorTable` [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 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 - to_string (line 358) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:361:5 [INFO] [stdout] | [INFO] [stdout] 361 | use gratte; [INFO] [stdout] | ^^^^^^ no external crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:365:7 [INFO] [stdout] | [INFO] [stdout] 365 | #[strum(serialize = "redred")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] | [INFO] [stdout] 364 + #[derive(AsRefStr, AsStaticStr, Display, EnumCount, EnumDiscriminants, EnumIs, EnumIter, EnumMessage, EnumProperty, EnumString, EnumTable, EnumTryAs, EnumVariantNames, FromRepr, IntoStaticStr, ToString, VariantArray, VariantNames)] [INFO] [stdout] 365 | enum Color { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:376:40 [INFO] [stdout] | [INFO] [stdout] 364 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 376 | assert_eq!(String::from("redred"), red.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/mod.rs:1187:0 [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 `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error[E0599]: `Color` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/lib.rs:379:43 [INFO] [stdout] | [INFO] [stdout] 364 | enum Color { [INFO] [stdout] | ---------- method `to_string` not found for this enum because it doesn't satisfy `Color: ToString` or `Color: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 379 | assert_eq!(String::from("Yellow"), yellow.to_string()); [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Color` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Color: std::fmt::Display` [INFO] [stdout] which is required by `Color: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/dec9417b8611e34e787a3e4c37686b5131f9e5c5/library/core/src/fmt/mod.rs:1187:0 [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 `to_string`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `ToString` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - variant_names (line 223) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 225 | use gratte::EnumString; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `gratte` [INFO] [stdout] --> src/lib.rs:227:5 [INFO] [stdout] | [INFO] [stdout] 227 | use gratte::VariantNames; [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `gratte`, use `cargo add gratte` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error[E0433]: cannot find module or crate `gratte` in this scope [INFO] [stdout] --> src/lib.rs:229:29 [INFO] [stdout] | [INFO] [stdout] 229 | #[derive(Debug, EnumString, gratte::VariantNames)] [INFO] [stdout] | ^^^^^^ use of unresolved module or unlinked crate `gratte` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:230:3 [INFO] [stdout] | [INFO] [stdout] 230 | #[strum(serialize_all = "kebab-case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `strum` is an attribute that can be used by the derive macros `AsRefStr`, `AsStaticStr`, `Display`, `EnumCount`, `EnumDiscriminants`, `EnumIs`, `EnumIter`, `EnumMessage`, `EnumProperty`, `EnumString`, `EnumTable`, `EnumTryAs`, `EnumVariantNames`, `FromRepr`, `IntoStaticStr`, `ToString`, `VariantArray` and `VariantNames`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `VARIANTS` found for enum `Color` in the current scope [INFO] [stdout] --> src/lib.rs:237:64 [INFO] [stdout] | [INFO] [stdout] 231 | enum Color { [INFO] [stdout] | ---------- variant or associated item `VARIANTS` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 237 | assert_eq!(["red", "blue", "yellow", "rebecca-purple"], Color::VARIANTS); [INFO] [stdout] | ^^^^^^^^ variant or associated item not found in `Color` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - as_ref_str (line 152) [INFO] [stdout] src/lib.rs - display (line 413) [INFO] [stdout] src/lib.rs - display (line 423) [INFO] [stdout] src/lib.rs - enum_count (line 962) [INFO] [stdout] src/lib.rs - enum_discriminants (line 861) [INFO] [stdout] src/lib.rs - enum_discriminants (line 924) [INFO] [stdout] src/lib.rs - enum_is (line 516) [INFO] [stdout] src/lib.rs - enum_iter (line 478) [INFO] [stdout] src/lib.rs - enum_messages (line 715) [INFO] [stdout] src/lib.rs - enum_properties (line 803) [INFO] [stdout] src/lib.rs - enum_table (line 592) [INFO] [stdout] src/lib.rs - enum_try_as (line 542) [INFO] [stdout] src/lib.rs - from_repr (line 645) [INFO] [stdout] src/lib.rs - from_repr (line 675) [INFO] [stdout] src/lib.rs - from_string (line 76) [INFO] [stdout] src/lib.rs - into_static_str (line 320) [INFO] [stdout] src/lib.rs - static_variants_array (line 272) [INFO] [stdout] src/lib.rs - to_string (line 358) [INFO] [stdout] src/lib.rs - variant_names (line 223) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 19 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "7903360ff8f0c390f3e23ef01f11a62b10d8fadf67505e10621051779dfbf30b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7903360ff8f0c390f3e23ef01f11a62b10d8fadf67505e10621051779dfbf30b", kill_on_drop: false }` [INFO] [stdout] 7903360ff8f0c390f3e23ef01f11a62b10d8fadf67505e10621051779dfbf30b