[INFO] fetching crate strum 0.27.2... [INFO] testing strum-0.27.2 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate strum 0.27.2 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate strum 0.27.2 [INFO] finished tweaking crates.io crate strum 0.27.2 [INFO] tweaked toml for crates.io crate strum 0.27.2 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate strum 0.27.2 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate strum 0.27.2 already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 08f50a2aadf50a396e41374094a3b2ec2bfe799acc0a33c86b0954aecb023930 [INFO] running `Command { std: "docker" "start" "-a" "08f50a2aadf50a396e41374094a3b2ec2bfe799acc0a33c86b0954aecb023930", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "08f50a2aadf50a396e41374094a3b2ec2bfe799acc0a33c86b0954aecb023930", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08f50a2aadf50a396e41374094a3b2ec2bfe799acc0a33c86b0954aecb023930", kill_on_drop: false }` [INFO] [stdout] 08f50a2aadf50a396e41374094a3b2ec2bfe799acc0a33c86b0954aecb023930 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc8d29321fcdfa52d76f59f29ac144b17d7220b7e5f53a80d8f71d79f567b028 [INFO] running `Command { std: "docker" "start" "-a" "cc8d29321fcdfa52d76f59f29ac144b17d7220b7e5f53a80d8f71d79f567b028", kill_on_drop: false }` [INFO] [stderr] Compiling strum v0.27.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] running `Command { std: "docker" "inspect" "cc8d29321fcdfa52d76f59f29ac144b17d7220b7e5f53a80d8f71d79f567b028", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc8d29321fcdfa52d76f59f29ac144b17d7220b7e5f53a80d8f71d79f567b028", kill_on_drop: false }` [INFO] [stdout] cc8d29321fcdfa52d76f59f29ac144b17d7220b7e5f53a80d8f71d79f567b028 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 978f5f9c0b7431933f1ef1d7f87ba2c617dbfcbf5493d57f24055843dbf29d78 [INFO] running `Command { std: "docker" "start" "-a" "978f5f9c0b7431933f1ef1d7f87ba2c617dbfcbf5493d57f24055843dbf29d78", kill_on_drop: false }` [INFO] [stderr] Compiling strum v0.27.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.26s [INFO] running `Command { std: "docker" "inspect" "978f5f9c0b7431933f1ef1d7f87ba2c617dbfcbf5493d57f24055843dbf29d78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "978f5f9c0b7431933f1ef1d7f87ba2c617dbfcbf5493d57f24055843dbf29d78", kill_on_drop: false }` [INFO] [stdout] 978f5f9c0b7431933f1ef1d7f87ba2c617dbfcbf5493d57f24055843dbf29d78 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] fd32cf55645195b075a0242e082c00e01533c996865517acff34ac9598eb1708 [INFO] running `Command { std: "docker" "start" "-a" "fd32cf55645195b075a0242e082c00e01533c996865517acff34ac9598eb1708", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/strum-f66cb1a286dff938) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests strum [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/additional_attributes.rs - additional_attributes (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - IntoEnumIterator (line 74) ... FAILED [INFO] [stdout] test src/lib.rs - EnumMessage (line 129) ... FAILED [INFO] [stdout] test src/lib.rs - EnumProperty (line 163) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [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] 5 | 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] 8 | #[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] 3 | 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] 14 | #[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] 3 | 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] 9 | 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] 20 | 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/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:2785:5 [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] 9 | 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] 24 | 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/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:2785:5 [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] 9 | 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] 28 | 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/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/fmt/mod.rs:1006:1 [INFO] [stdout] note: the method `to_string` exists on the type `usize` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/alloc/src/string.rs:2785:5 [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 - IntoEnumIterator (line 74) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `strum::EnumIter` [INFO] [stdout] --> src/lib.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 7 | 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] --> /opt/rustwide/workdir/src/lib.rs:257:5 [INFO] [stdout] | [INFO] [stdout] 252 | / DocumentMacroRexports! { [INFO] [stdout] 253 | | AsRefStr, [INFO] [stdout] 254 | | Display, [INFO] [stdout] 255 | | EnumCount, [INFO] [stdout] 256 | | EnumDiscriminants, [INFO] [stdout] 257 | | EnumIter, [INFO] [stdout] | | ^^^^^^^^ [INFO] [stdout] ... | [INFO] [stdout] 264 | | VariantArray [INFO] [stdout] 265 | | } [INFO] [stdout] | |_- the item is gated here [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Color: IntoEnumIterator` is not satisfied [INFO] [stdout] --> src/lib.rs:99:20 [INFO] [stdout] | [INFO] [stdout] 28 | 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:81:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum Color { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `generic_iterator` [INFO] [stdout] --> src/lib.rs:91:8 [INFO] [stdout] | [INFO] [stdout] 18 | fn generic_iterator(pred: F) [INFO] [stdout] | ---------------- required by a bound in this function [INFO] [stdout] 19 | where [INFO] [stdout] 20 | 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/lib.rs - EnumMessage (line 129) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumMessage` in this scope [INFO] [stdout] --> src/lib.rs:135:32 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:133:5 [INFO] [stdout] | [INFO] [stdout] 7 | use strum::EnumMessage; [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [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] 11 | #[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:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:138:7 [INFO] [stdout] | [INFO] [stdout] 12 | #[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:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:141:7 [INFO] [stdout] | [INFO] [stdout] 15 | #[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:129:1 [INFO] [stdout] | [INFO] [stdout] 3 | 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:146:35 [INFO] [stdout] | [INFO] [stdout] 10 | enum Pet { [INFO] [stdout] | -------- method `get_message` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 20 | 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 163) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumProperty` in this scope [INFO] [stdout] --> src/lib.rs:169:32 [INFO] [stdout] | [INFO] [stdout] 9 | #[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:167:5 [INFO] [stdout] | [INFO] [stdout] 7 | use strum::EnumProperty; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:171:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[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:163:1 [INFO] [stdout] | [INFO] [stdout] 3 | 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] 13 | #[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:163:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:174:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[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:163:1 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#strum; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `strum` in this scope [INFO] [stdout] --> src/lib.rs:176:7 [INFO] [stdout] | [INFO] [stdout] 16 | #[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:163:1 [INFO] [stdout] | [INFO] [stdout] 3 | 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:181:34 [INFO] [stdout] | [INFO] [stdout] 10 | enum Class { [INFO] [stdout] | ---------- method `get_str` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 21 | 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:182:24 [INFO] [stdout] | [INFO] [stdout] 10 | enum Class { [INFO] [stdout] | ---------- method `get_int` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 22 | 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:183:17 [INFO] [stdout] | [INFO] [stdout] 10 | enum Class { [INFO] [stdout] | ---------- method `get_bool` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 23 | 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 129) [INFO] [stdout] src/lib.rs - EnumProperty (line 163) [INFO] [stdout] src/lib.rs - IntoEnumIterator (line 74) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.26s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "fd32cf55645195b075a0242e082c00e01533c996865517acff34ac9598eb1708", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fd32cf55645195b075a0242e082c00e01533c996865517acff34ac9598eb1708", kill_on_drop: false }` [INFO] [stdout] fd32cf55645195b075a0242e082c00e01533c996865517acff34ac9598eb1708