[INFO] fetching crate macro_state_macros 0.2.1... [INFO] testing macro_state_macros-0.2.1 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145330-1 [INFO] extracting crate macro_state_macros 0.2.1 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate macro_state_macros 0.2.1 [INFO] finished tweaking crates.io crate macro_state_macros 0.2.1 [INFO] tweaked toml for crates.io crate macro_state_macros 0.2.1 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate macro_state_macros 0.2.1 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 6 packages to latest compatible versions [INFO] [stderr] Adding derive-syn-parse v0.1.5 (available: v0.2.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.106) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded derive-syn-parse v0.1.5 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4189cadbf79964245202ad9ee95618bce19adbcfb090bec2b6aab4482ef5c1f5 [INFO] running `Command { std: "docker" "start" "-a" "4189cadbf79964245202ad9ee95618bce19adbcfb090bec2b6aab4482ef5c1f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4189cadbf79964245202ad9ee95618bce19adbcfb090bec2b6aab4482ef5c1f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4189cadbf79964245202ad9ee95618bce19adbcfb090bec2b6aab4482ef5c1f5", kill_on_drop: false }` [INFO] [stdout] 4189cadbf79964245202ad9ee95618bce19adbcfb090bec2b6aab4482ef5c1f5 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fc75c93488694fb9ee07a69221f35bfde0e6b5f4fad7c5b7ca8aea3a443a7a4d [INFO] running `Command { std: "docker" "start" "-a" "fc75c93488694fb9ee07a69221f35bfde0e6b5f4fad7c5b7ca8aea3a443a7a4d", kill_on_drop: false }` [INFO] [stderr] Compiling macro_state_macros v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling derive-syn-parse v0.1.5 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.27s [INFO] running `Command { std: "docker" "inspect" "fc75c93488694fb9ee07a69221f35bfde0e6b5f4fad7c5b7ca8aea3a443a7a4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc75c93488694fb9ee07a69221f35bfde0e6b5f4fad7c5b7ca8aea3a443a7a4d", kill_on_drop: false }` [INFO] [stdout] fc75c93488694fb9ee07a69221f35bfde0e6b5f4fad7c5b7ca8aea3a443a7a4d [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c4ea3dd41d1084865d66227c02fa6f92744c49272f530f67bf812be53608b673 [INFO] running `Command { std: "docker" "start" "-a" "c4ea3dd41d1084865d66227c02fa6f92744c49272f530f67bf812be53608b673", kill_on_drop: false }` [INFO] [stderr] Compiling macro_state_macros v0.2.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.37s [INFO] running `Command { std: "docker" "inspect" "c4ea3dd41d1084865d66227c02fa6f92744c49272f530f67bf812be53608b673", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4ea3dd41d1084865d66227c02fa6f92744c49272f530f67bf812be53608b673", kill_on_drop: false }` [INFO] [stdout] c4ea3dd41d1084865d66227c02fa6f92744c49272f530f67bf812be53608b673 [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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] e89c8168cfef8a966a343981a0a59e2eb86f9e14e4b00deabfa861b76e4e1331 [INFO] running `Command { std: "docker" "start" "-a" "e89c8168cfef8a966a343981a0a59e2eb86f9e14e4b00deabfa861b76e4e1331", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stderr] Running unittests src/macros.rs (/opt/rustwide/target/debug/deps/macro_state_macros-4298e92c05a754e3) [INFO] [stderr] Doc-tests macro_state_macros [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 8 tests [INFO] [stdout] test src/macros.rs - clear_state (line 214) ... FAILED [INFO] [stdout] test src/macros.rs - read_state (line 129) ... FAILED [INFO] [stdout] test src/macros.rs - append_state (line 93) ... FAILED [INFO] [stdout] test src/macros.rs - has_state (line 193) ... FAILED [INFO] [stdout] test src/macros.rs - read_state_vec (line 161) ... FAILED [INFO] [stdout] test src/macros.rs - write_state (line 62) ... FAILED [INFO] [stdout] test src/macros.rs - init_state (line 234) ... FAILED [INFO] [stdout] test src/macros.rs - read_state_vec (line 153) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/macros.rs - clear_state (line 214) stdout ---- [INFO] [stdout] error: cannot find macro `has_state` in this scope [INFO] [stdout] --> src/macros.rs:218:1 [INFO] [stdout] | [INFO] [stdout] 6 | has_state!("my key"); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::has_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `clear_state` in this scope [INFO] [stdout] --> src/macros.rs:217:1 [INFO] [stdout] | [INFO] [stdout] 5 | clear_state!("my key"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::clear_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `read_state` in this scope [INFO] [stdout] --> src/macros.rs:216:1 [INFO] [stdout] | [INFO] [stdout] 4 | read_state!("my key"); // => "test" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::read_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `write_state` in this scope [INFO] [stdout] --> src/macros.rs:215:1 [INFO] [stdout] | [INFO] [stdout] 3 | write_state!("my key", "test"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::write_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - read_state (line 129) stdout ---- [INFO] [stdout] error: cannot find macro `read_state` in this scope [INFO] [stdout] --> src/macros.rs:130:1 [INFO] [stdout] | [INFO] [stdout] 3 | read_state!("my key"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::read_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - append_state (line 93) stdout ---- [INFO] [stdout] error: cannot find macro `append_state` in this scope [INFO] [stdout] --> src/macros.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 3 | append_state!("my_key", "apples"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::append_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `append_state` in this scope [INFO] [stdout] --> src/macros.rs:95:1 [INFO] [stdout] | [INFO] [stdout] 4 | append_state!("my_key", "pears"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::append_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `append_state` in this scope [INFO] [stdout] --> src/macros.rs:96:1 [INFO] [stdout] | [INFO] [stdout] 5 | append_state!("my_key", "oh my!"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::append_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `read_state` in this scope [INFO] [stdout] --> src/macros.rs:97:12 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(read_state!("my_key"), "apples\npears\noh my!\n"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::read_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - has_state (line 193) stdout ---- [INFO] [stdout] error: macros that expand to items must be delimited with braces or followed by a semicolon [INFO] [stdout] --> src/macros.rs:194:13 [INFO] [stdout] | [INFO] [stdout] 1 | write_state!("my key", "hey") [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: change the delimiters to curly braces [INFO] [stdout] | [INFO] [stdout] 1 - write_state!("my key", "hey") [INFO] [stdout] 1 + write_state!{"my key", "hey"} [INFO] [stdout] | [INFO] [stdout] help: add a semicolon [INFO] [stdout] | [INFO] [stdout] 1 | write_state!("my key", "hey"); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores keyword `match` and any tokens following [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/macros/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] ::: src/macros.rs:195:1 [INFO] [stdout] | [INFO] [stdout] 2 | assert_eq!(has_state!("my key"), true); [INFO] [stdout] | -------------------------------------- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `assert_eq!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] error: macro expansion ignores keyword `match` and any tokens following [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/core/src/macros/mod.rs:44:9 [INFO] [stdout] | [INFO] [stdout] ::: src/macros.rs:196:1 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(has_state!("unknown key"), false); [INFO] [stdout] | -------------------------------------------- caused by the macro expansion here [INFO] [stdout] | [INFO] [stdout] = note: the usage of `assert_eq!` is likely invalid in item context [INFO] [stdout] [INFO] [stdout] error: cannot find macro `write_state` in this scope [INFO] [stdout] --> src/macros.rs:194:1 [INFO] [stdout] | [INFO] [stdout] 1 | write_state!("my key", "hey") [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 1 + use macro_state_macros::write_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `rust_out` [INFO] [stdout] --> src/macros.rs:196:46 [INFO] [stdout] | [INFO] [stdout] 3 | assert_eq!(has_state!("unknown key"), false); [INFO] [stdout] | ^ consider adding a `main` function to `src/macros.rs` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0601`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - read_state_vec (line 161) stdout ---- [INFO] [stdout] error: cannot find macro `append_state` in this scope [INFO] [stdout] --> src/macros.rs:162:1 [INFO] [stdout] | [INFO] [stdout] 3 | append_state!("my_key", "first item"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::append_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `append_state` in this scope [INFO] [stdout] --> src/macros.rs:163:1 [INFO] [stdout] | [INFO] [stdout] 4 | append_state!("my_key", "2nd item"); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::append_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `read_state_vec` in this scope [INFO] [stdout] --> src/macros.rs:164:12 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(read_state_vec!("my_key"), vec!["first item", "2nd item"]); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::read_state_vec; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - write_state (line 62) stdout ---- [INFO] [stdout] error: cannot find macro `write_state` in this scope [INFO] [stdout] --> src/macros.rs:63:1 [INFO] [stdout] | [INFO] [stdout] 3 | write_state!("my key", "some value"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::write_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `read_state` in this scope [INFO] [stdout] --> src/macros.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(read_state!("my key"), "some value"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::read_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/macros.rs - init_state (line 234) stdout ---- [INFO] [stdout] error: cannot find macro `init_state` in this scope [INFO] [stdout] --> src/macros.rs:237:1 [INFO] [stdout] | [INFO] [stdout] 5 | init_state!("other key", "B"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::init_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `init_state` in this scope [INFO] [stdout] --> src/macros.rs:236:1 [INFO] [stdout] | [INFO] [stdout] 4 | init_state!("my key", "B"); // => "A" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::init_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find macro `write_state` in this scope [INFO] [stdout] --> src/macros.rs:235:1 [INFO] [stdout] | [INFO] [stdout] 3 | write_state!("my key", "A"); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this macro [INFO] [stdout] | [INFO] [stdout] 2 + use macro_state_macros::write_state; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/macros.rs - append_state (line 93) [INFO] [stdout] src/macros.rs - clear_state (line 214) [INFO] [stdout] src/macros.rs - has_state (line 193) [INFO] [stdout] src/macros.rs - init_state (line 234) [INFO] [stdout] src/macros.rs - read_state (line 129) [INFO] [stdout] src/macros.rs - read_state_vec (line 161) [INFO] [stdout] src/macros.rs - write_state (line 62) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.21s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "e89c8168cfef8a966a343981a0a59e2eb86f9e14e4b00deabfa861b76e4e1331", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e89c8168cfef8a966a343981a0a59e2eb86f9e14e4b00deabfa861b76e4e1331", kill_on_drop: false }` [INFO] [stdout] e89c8168cfef8a966a343981a0a59e2eb86f9e14e4b00deabfa861b76e4e1331