[INFO] fetching crate strum 0.28.0... [INFO] testing strum-0.28.0 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-2 [INFO] extracting crate strum 0.28.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate strum 0.28.0 [INFO] finished tweaking crates.io crate strum 0.28.0 [INFO] tweaked toml for crates.io crate strum 0.28.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate strum 0.28.0 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate strum 0.28.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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded phf_generator v0.13.1 [INFO] [stderr] Downloaded phf_shared v0.13.1 [INFO] [stderr] Downloaded phf_macros v0.13.1 [INFO] [stderr] Downloaded phf v0.13.1 [INFO] [stderr] Downloaded strum_macros v0.28.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4ff464f7ee66b1b6a46ef348502dda84363f593b5427545257768d0fc692d43 [INFO] running `Command { std: "docker" "start" "-a" "a4ff464f7ee66b1b6a46ef348502dda84363f593b5427545257768d0fc692d43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4ff464f7ee66b1b6a46ef348502dda84363f593b5427545257768d0fc692d43", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4ff464f7ee66b1b6a46ef348502dda84363f593b5427545257768d0fc692d43", kill_on_drop: false }` [INFO] [stdout] a4ff464f7ee66b1b6a46ef348502dda84363f593b5427545257768d0fc692d43 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b70dfb8f895cd478c7ee0b17e8c05714007a396f008e90fb6953f95b218bdb86 [INFO] running `Command { std: "docker" "start" "-a" "b70dfb8f895cd478c7ee0b17e8c05714007a396f008e90fb6953f95b218bdb86", kill_on_drop: false }` [INFO] [stderr] Compiling strum v0.28.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.15s [INFO] running `Command { std: "docker" "inspect" "b70dfb8f895cd478c7ee0b17e8c05714007a396f008e90fb6953f95b218bdb86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b70dfb8f895cd478c7ee0b17e8c05714007a396f008e90fb6953f95b218bdb86", kill_on_drop: false }` [INFO] [stdout] b70dfb8f895cd478c7ee0b17e8c05714007a396f008e90fb6953f95b218bdb86 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a5cbf95f8bbe3553d5c9082fdfd38f7582ee6a1502d8b15886648e09f5f8ddad [INFO] running `Command { std: "docker" "start" "-a" "a5cbf95f8bbe3553d5c9082fdfd38f7582ee6a1502d8b15886648e09f5f8ddad", kill_on_drop: false }` [INFO] [stderr] Compiling strum v0.28.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.22s [INFO] running `Command { std: "docker" "inspect" "a5cbf95f8bbe3553d5c9082fdfd38f7582ee6a1502d8b15886648e09f5f8ddad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a5cbf95f8bbe3553d5c9082fdfd38f7582ee6a1502d8b15886648e09f5f8ddad", kill_on_drop: false }` [INFO] [stdout] a5cbf95f8bbe3553d5c9082fdfd38f7582ee6a1502d8b15886648e09f5f8ddad [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 70da4b17b5b53855961442a1446f0e23a58e3b58c7ecef823cba840451ea39b6 [INFO] running `Command { std: "docker" "start" "-a" "70da4b17b5b53855961442a1446f0e23a58e3b58c7ecef823cba840451ea39b6", 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/strum-d405b966b040f8b4) [INFO] [stderr] Doc-tests strum [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 4 tests [INFO] [stdout] test src/lib.rs - IntoEnumIterator (line 73) ... FAILED [INFO] [stdout] test src/additional_attributes.rs - additional_attributes (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - EnumMessage (line 128) ... FAILED [INFO] [stdout] test src/lib.rs - EnumProperty (line 162) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - IntoEnumIterator (line 73) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `strum::EnumIter` [INFO] [stdout] --> src/lib.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | use strum::{EnumIter, IntoEnumIterator}; [INFO] [stdout] | ^^^^^^^^ no `EnumIter` in the root [INFO] [stdout] | [INFO] [stdout] note: found an item that was configured out [INFO] [stdout] --> src/lib.rs:256:5 [INFO] [stdout] | [INFO] [stdout] 240 | #[cfg(all(docsrs, feature = "derive"))] [INFO] [stdout] | ------ the item is gated here [INFO] [stdout] ... [INFO] [stdout] 256 | EnumIter, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: IntoEnumIterator` is not satisfied [INFO] [stdout] --> src/lib.rs:98:20 [INFO] [stdout] | [INFO] [stdout] 98 | generic_iterator::(|color| println!("{:?}", color)); [INFO] [stdout] | ^^^^^ unsatisfied trait bound [INFO] [stdout] | [INFO] [stdout] help: the trait `IntoEnumIterator` is not implemented for `Color` [INFO] [stdout] --> src/lib.rs:80:1 [INFO] [stdout] | [INFO] [stdout] 80 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `generic_iterator` [INFO] [stdout] --> src/lib.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 88 | fn generic_iterator(pred: F) [INFO] [stdout] | ---------------- required by a bound in this function [INFO] [stdout] 89 | where [INFO] [stdout] 90 | E: IntoEnumIterator, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ required by this bound in `generic_iterator` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 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/additional_attributes.rs - additional_attributes (line 22) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `strum_macros` [INFO] [stdout] --> src/additional_attributes.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use strum_macros; [INFO] [stdout] | ^^^^^^^^^^^^ no external crate `strum_macros` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/additional_attributes.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 27 | #[strum(serialize_all = "snake_case")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/additional_attributes.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/additional_attributes.rs:33:7 [INFO] [stdout] | [INFO] [stdout] 33 | #[strum(serialize = "bright")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/additional_attributes.rs:22:1 [INFO] [stdout] | [INFO] [stdout] 22 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: `Brightness` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/additional_attributes.rs:39:27 [INFO] [stdout] | [INFO] [stdout] 28 | enum Brightness { [INFO] [stdout] | --------------- method `to_string` not found for this enum because it doesn't satisfy `Brightness: ToString` or `Brightness: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 39 | Brightness::DarkBlack.to_string().as_ref() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Brightness` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Brightness: std::fmt::Display` [INFO] [stdout] which is required by `Brightness: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/mod.rs:1187:0 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/string.rs:2880:4 [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]: `Brightness` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/additional_attributes.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 28 | enum Brightness { [INFO] [stdout] | --------------- method `to_string` not found for this enum because it doesn't satisfy `Brightness: ToString` or `Brightness: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 43 | Brightness::Dim { glow: 0 }.to_string().as_ref() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Brightness` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Brightness: std::fmt::Display` [INFO] [stdout] which is required by `Brightness: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/mod.rs:1187:0 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/string.rs:2880:4 [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]: `Brightness` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/additional_attributes.rs:47:29 [INFO] [stdout] | [INFO] [stdout] 28 | enum Brightness { [INFO] [stdout] | --------------- method `to_string` not found for this enum because it doesn't satisfy `Brightness: ToString` or `Brightness: std::fmt::Display` [INFO] [stdout] ... [INFO] [stdout] 47 | Brightness::BrightWhite.to_string().as_ref() [INFO] [stdout] | ^^^^^^^^^ method cannot be called on `Brightness` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `Brightness: std::fmt::Display` [INFO] [stdout] which is required by `Brightness: ToString` [INFO] [stdout] note: the trait `std::fmt::Display` must be implemented [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/core/src/fmt/mod.rs:1187:0 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/562dee4820c458d823175268e41601d4c060588a/library/alloc/src/string.rs:2880:4 [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 6 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 - EnumMessage (line 128) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumMessage` in this scope [INFO] [stdout] --> src/lib.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 134 | #[derive(PartialEq, Eq, Debug, EnumMessage)] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EnumMessage` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:132:5 [INFO] [stdout] | [INFO] [stdout] 132 | use strum::EnumMessage; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:136:7 [INFO] [stdout] | [INFO] [stdout] 136 | #[strum(message="I have a dog")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:137:7 [INFO] [stdout] | [INFO] [stdout] 137 | #[strum(detailed_message="My dog's name is Spots")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | #[strum(message="I don't have a cat")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:128:1 [INFO] [stdout] | [INFO] [stdout] 128 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_message` found for enum `Pet` in the current scope [INFO] [stdout] --> src/lib.rs:145:35 [INFO] [stdout] | [INFO] [stdout] 135 | enum Pet { [INFO] [stdout] | -------- method `get_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 145 | assert_eq!("I have a dog", my_pet.get_message().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `Pet` [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 `get_message`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `EnumMessage` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - EnumProperty (line 162) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumProperty` in this scope [INFO] [stdout] --> src/lib.rs:168:32 [INFO] [stdout] | [INFO] [stdout] 168 | #[derive(PartialEq, Eq, Debug, EnumProperty)] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `EnumProperty` is imported here, but it is only a trait, without a derive macro [INFO] [stdout] --> src/lib.rs:166:5 [INFO] [stdout] | [INFO] [stdout] 166 | use strum::EnumProperty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:170:7 [INFO] [stdout] | [INFO] [stdout] 170 | #[strum(props(Teacher="Ms.Frizzle", Room="201", students=16, mandatory=true))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:172:7 [INFO] [stdout] | [INFO] [stdout] 172 | #[strum(props(Teacher="Mr.Smith"))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:173:7 [INFO] [stdout] | [INFO] [stdout] 173 | #[strum(props(Room="103", students=10))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:175:7 [INFO] [stdout] | [INFO] [stdout] 175 | #[strum(props(Time="2:30", mandatory=true))] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `strum` is imported here, but it is a crate, not an attribute [INFO] [stdout] --> src/lib.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 162 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_str` found for enum `Class` in the current scope [INFO] [stdout] --> src/lib.rs:180:34 [INFO] [stdout] | [INFO] [stdout] 169 | enum Class { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 180 | assert_eq!("Ms.Frizzle", history.get_str("Teacher").unwrap()); [INFO] [stdout] | ^^^^^^^ method not found in `Class` [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 `get_str`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `EnumProperty` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_int` found for enum `Class` in the current scope [INFO] [stdout] --> src/lib.rs:181:24 [INFO] [stdout] | [INFO] [stdout] 169 | enum Class { [INFO] [stdout] | ---------- method `get_int` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 181 | assert_eq!(16, history.get_int("students").unwrap()); [INFO] [stdout] | ^^^^^^^ method not found in `Class` [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 `get_int`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `EnumProperty` [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_bool` found for enum `Class` in the current scope [INFO] [stdout] --> src/lib.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 169 | enum Class { [INFO] [stdout] | ---------- method `get_bool` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 182 | assert!(history.get_bool("mandatory").unwrap()); [INFO] [stdout] | ^^^^^^^^ method not found in `Class` [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 `get_bool`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `EnumProperty` [INFO] [stdout] [INFO] [stdout] error: aborting due to 8 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/additional_attributes.rs - additional_attributes (line 22) [INFO] [stdout] src/lib.rs - EnumMessage (line 128) [INFO] [stdout] src/lib.rs - EnumProperty (line 162) [INFO] [stdout] src/lib.rs - IntoEnumIterator (line 73) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.20s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "70da4b17b5b53855961442a1446f0e23a58e3b58c7ecef823cba840451ea39b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70da4b17b5b53855961442a1446f0e23a58e3b58c7ecef823cba840451ea39b6", kill_on_drop: false }` [INFO] [stdout] 70da4b17b5b53855961442a1446f0e23a58e3b58c7ecef823cba840451ea39b6