[INFO] fetching crate dialogue-core 0.3.3... [INFO] testing dialogue-core-0.3.3 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate dialogue-core 0.3.3 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate dialogue-core 0.3.3 [INFO] finished tweaking crates.io crate dialogue-core 0.3.3 [INFO] tweaked toml for crates.io crate dialogue-core 0.3.3 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dialogue-core 0.3.3 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 4 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a671b2ad964c2814af13aabb70dbbeab66665b86c5870eae762be04bb592fbd5 [INFO] running `Command { std: "docker" "start" "-a" "a671b2ad964c2814af13aabb70dbbeab66665b86c5870eae762be04bb592fbd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a671b2ad964c2814af13aabb70dbbeab66665b86c5870eae762be04bb592fbd5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a671b2ad964c2814af13aabb70dbbeab66665b86c5870eae762be04bb592fbd5", kill_on_drop: false }` [INFO] [stdout] a671b2ad964c2814af13aabb70dbbeab66665b86c5870eae762be04bb592fbd5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 682320f8ec912d4bc332064088f1819e56ecf465291b63d4640f5674da4594df [INFO] running `Command { std: "docker" "start" "-a" "682320f8ec912d4bc332064088f1819e56ecf465291b63d4640f5674da4594df", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling dialogue-core v0.3.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.70s [INFO] running `Command { std: "docker" "inspect" "682320f8ec912d4bc332064088f1819e56ecf465291b63d4640f5674da4594df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "682320f8ec912d4bc332064088f1819e56ecf465291b63d4640f5674da4594df", kill_on_drop: false }` [INFO] [stdout] 682320f8ec912d4bc332064088f1819e56ecf465291b63d4640f5674da4594df [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 95e68eb3aa37c13510ac804825d66ed3300002cb3a568d3122411cf6bb7a0c16 [INFO] running `Command { std: "docker" "start" "-a" "95e68eb3aa37c13510ac804825d66ed3300002cb3a568d3122411cf6bb7a0c16", kill_on_drop: false }` [INFO] [stderr] Compiling dialogue-core v0.3.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.13s [INFO] running `Command { std: "docker" "inspect" "95e68eb3aa37c13510ac804825d66ed3300002cb3a568d3122411cf6bb7a0c16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "95e68eb3aa37c13510ac804825d66ed3300002cb3a568d3122411cf6bb7a0c16", kill_on_drop: false }` [INFO] [stdout] 95e68eb3aa37c13510ac804825d66ed3300002cb3a568d3122411cf6bb7a0c16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9b6d4b35bde4b5b59cd3c0bca111e799c1e218069c3b1475d834b12985a99027 [INFO] running `Command { std: "docker" "start" "-a" "9b6d4b35bde4b5b59cd3c0bca111e799c1e218069c3b1475d834b12985a99027", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dialogue_core-07bbcdff0282f307) [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 dialogue_core [INFO] [stdout] [INFO] [stdout] running 13 tests [INFO] [stdout] test src/lib.rs - enum_asker (line 223) ... FAILED [INFO] [stdout] test src/lib.rs - asker (line 153) ... FAILED [INFO] [stdout] test src/lib.rs - asker (line 109) ... FAILED [INFO] [stdout] test src/lib.rs - asker (line 83) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 234) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 271) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 363) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 255) ... FAILED [INFO] [stdout] test src/lib.rs - asker (line 61) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 337) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 298) ... FAILED [INFO] [stdout] test src/lib.rs - enum_asker (line 209) ... FAILED [INFO] [stdout] test src/lib.rs - asker (line 28) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - enum_asker (line 223) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumAsker` in this scope [INFO] [stdout] --> src/lib.rs:224:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(EnumAsker)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::EnumAsker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Student` in this scope [INFO] [stdout] --> src/lib.rs:226:7 [INFO] [stdout] | [INFO] [stdout] 5 | A(Student, User), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:226:16 [INFO] [stdout] | [INFO] [stdout] 5 | A(Student, User), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:227:7 [INFO] [stdout] | [INFO] [stdout] 6 | B(User), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - asker (line 153) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dialogue_macro` [INFO] [stdout] --> src/lib.rs:156:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dialogue_macro::Asker; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dialogue_macro` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use dialogue_macro::Asker; [INFO] [stdout] 4 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `multiselect` in this scope [INFO] [stdout] --> src/lib.rs:160:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[multiselect(prompt = "请选择您的兴趣爱好", options = ["吃", "睡", "编程"], default=[1])] [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `multiselect` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `multiselect` in this scope [INFO] [stdout] --> src/lib.rs:162:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[multiselect(prompt = "请选择您的学校: ", default = [1,2],options=[ [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `multiselect` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `asker` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:188:22 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ----------- function or associated item `asker` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 36 | let user = User::asker().school().favorite().finish(); [INFO] [stdout] | ^^^^^ function or associated item not found in `User` [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 - asker (line 109) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dialogue_macro` [INFO] [stdout] --> src/lib.rs:112:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dialogue_macro::Asker; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dialogue_macro` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use dialogue_macro::Asker; [INFO] [stdout] 4 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `select` in this scope [INFO] [stdout] --> src/lib.rs:116:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[select(prompt = "请选择您的性别", options = ["男", "女", "其他"], default = 1)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `select` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `select` in this scope [INFO] [stdout] --> src/lib.rs:118:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[select(prompt = "请选择您的学校: ", default = 1,options=[ [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `select` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `asker` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:144:22 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ----------- function or associated item `asker` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 36 | let user = User::asker().sex().school().finish(); [INFO] [stdout] | ^^^^^ function or associated item not found in `User` [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 - asker (line 83) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dialogue_macro` [INFO] [stdout] --> src/lib.rs:86:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dialogue_macro::Asker; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dialogue_macro` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use dialogue_macro::Asker; [INFO] [stdout] 4 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `password` in this scope [INFO] [stdout] --> src/lib.rs:90:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[password()] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `password` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `password` in this scope [INFO] [stdout] --> src/lib.rs:92:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[password( [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `password` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `asker` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:101:22 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ----------- function or associated item `asker` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 19 | let user = User::asker().password2().password("请输入您的密码:").finish(); [INFO] [stdout] | ^^^^^ function or associated item not found in `User` [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_asker (line 234) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumAsker` in this scope [INFO] [stdout] --> src/lib.rs:235:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(EnumAsker)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::EnumAsker; [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/lib.rs - enum_asker (line 271) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumAsker` in this scope [INFO] [stdout] --> src/lib.rs:272:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, EnumAsker)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::EnumAsker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:273:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[asker(...)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:275:7 [INFO] [stdout] | [INFO] [stdout] 6 | #[asker(label = "注册为普通用户")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:277:7 [INFO] [stdout] | [INFO] [stdout] 8 | #[asker(label = "注册为学生")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:279:7 [INFO] [stdout] | [INFO] [stdout] 10 | #[asker(label = "退出")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:276:10 [INFO] [stdout] | [INFO] [stdout] 7 | User(User), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Student` in this scope [INFO] [stdout] --> src/lib.rs:278:13 [INFO] [stdout] | [INFO] [stdout] 9 | Student(Student), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_asker (line 363) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register` [INFO] [stdout] --> src/lib.rs:365:18 [INFO] [stdout] | [INFO] [stdout] 3 | let choice = Register::build(); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Register` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register` [INFO] [stdout] --> src/lib.rs:370:9 [INFO] [stdout] | [INFO] [stdout] 8 | Register::Exit => println!("Exiting..."), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Register` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register` [INFO] [stdout] --> src/lib.rs:368:9 [INFO] [stdout] | [INFO] [stdout] 6 | Register::User(user) => println!("Registered regular user: {:?}", user), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Register` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Register` [INFO] [stdout] --> src/lib.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 7 | Register::Student(student) => println!("Registered student: {:?}", student), [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Register` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 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 - enum_asker (line 255) stdout ---- [INFO] [stdout] error: expected identifier, found `...` [INFO] [stdout] --> src/lib.rs:263:5 [INFO] [stdout] | [INFO] [stdout] 7 | enum Register { [INFO] [stdout] | -------- while parsing this enum [INFO] [stdout] 8 | ... [INFO] [stdout] | ^^^ expected identifier [INFO] [stdout] | [INFO] [stdout] = help: enum variants can be `Variant`, `Variant = `, `Variant(Type, ..., TypeN)` or `Variant { fields: Types }` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - asker (line 61) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dialogue_macro` [INFO] [stdout] --> src/lib.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dialogue_macro::Asker; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dialogue_macro` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use dialogue_macro::Asker; [INFO] [stdout] 4 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `confirm` in this scope [INFO] [stdout] --> src/lib.rs:69:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[confirm(prompt = "您是否是学生?")] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `confirm` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `asker` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ----------- function or associated item `asker` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 14 | let user = User::asker().boy("您是男孩吗?").student().finish(); [INFO] [stdout] | ^^^^^ function or associated item not found in `User` [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 - enum_asker (line 337) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumAsker` in this scope [INFO] [stdout] --> src/lib.rs:338:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, EnumAsker)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::EnumAsker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:339:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[asker( [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:346:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[asker(label = "Register as a regular user")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:349:7 [INFO] [stdout] | [INFO] [stdout] 14 | #[asker(label = "Register as a student")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `asker` in this scope [INFO] [stdout] --> src/lib.rs:352:7 [INFO] [stdout] | [INFO] [stdout] 17 | #[asker(label = "Exit")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `User` in this scope [INFO] [stdout] --> src/lib.rs:347:10 [INFO] [stdout] | [INFO] [stdout] 12 | User(User), [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Student` in this scope [INFO] [stdout] --> src/lib.rs:350:13 [INFO] [stdout] | [INFO] [stdout] 15 | Student(Student), [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_asker (line 298) stdout ---- [INFO] [stdout] error: cannot find derive macro `Asker` in this scope [INFO] [stdout] --> src/lib.rs:316:17 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Debug, Asker, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Asker` in this scope [INFO] [stdout] --> src/lib.rs:299:17 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug, Asker, Clone)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `input` in this scope [INFO] [stdout] --> src/lib.rs:301:7 [INFO] [stdout] | [INFO] [stdout] 5 | #[input(with_default = true)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Build` in this scope [INFO] [stdout] --> src/lib.rs:306:6 [INFO] [stdout] | [INFO] [stdout] 10 | impl Build for User { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0405]: cannot find trait `Build` in this scope [INFO] [stdout] --> src/lib.rs:322:6 [INFO] [stdout] | [INFO] [stdout] 26 | impl Build for Student { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - enum_asker (line 209) stdout ---- [INFO] [stdout] error: cannot find derive macro `EnumAsker` in this scope [INFO] [stdout] --> src/lib.rs:210:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(EnumAsker)] [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 2 + use dialogue_core::EnumAsker; [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/lib.rs - asker (line 28) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `dialogue_macro` [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 4 | use dialogue_macro::Asker; [INFO] [stdout] | ^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `dialogue_macro` [INFO] [stdout] | [INFO] [stdout] help: there is a crate or module with a similar name [INFO] [stdout] | [INFO] [stdout] 4 - use dialogue_macro::Asker; [INFO] [stdout] 4 + use dialogue_core::Asker; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `input` in this scope [INFO] [stdout] --> src/lib.rs:36:7 [INFO] [stdout] | [INFO] [stdout] 9 | #[input(prompt = "请输入您的邮箱地址: ")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `input` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `input` in this scope [INFO] [stdout] --> src/lib.rs:38:7 [INFO] [stdout] | [INFO] [stdout] 11 | #[input(default = 16)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `input` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `input` in this scope [INFO] [stdout] --> src/lib.rs:40:7 [INFO] [stdout] | [INFO] [stdout] 13 | #[input(prompt = "请输入您的学校: ", default = "清华大学")] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `input` is an attribute that can be used by the derive macro `Asker`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `asker` found for struct `User` in the current scope [INFO] [stdout] --> src/lib.rs:45:22 [INFO] [stdout] | [INFO] [stdout] 7 | struct User { [INFO] [stdout] | ----------- function or associated item `asker` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 18 | let user = User::asker() [INFO] [stdout] | ^^^^^ function or associated item not found in `User` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 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] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - asker (line 109) [INFO] [stdout] src/lib.rs - asker (line 153) [INFO] [stdout] src/lib.rs - asker (line 28) [INFO] [stdout] src/lib.rs - asker (line 61) [INFO] [stdout] src/lib.rs - asker (line 83) [INFO] [stdout] src/lib.rs - enum_asker (line 209) [INFO] [stdout] src/lib.rs - enum_asker (line 223) [INFO] [stdout] src/lib.rs - enum_asker (line 234) [INFO] [stdout] src/lib.rs - enum_asker (line 255) [INFO] [stdout] src/lib.rs - enum_asker (line 271) [INFO] [stdout] src/lib.rs - enum_asker (line 298) [INFO] [stdout] src/lib.rs - enum_asker (line 337) [INFO] [stdout] src/lib.rs - enum_asker (line 363) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 13 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.85s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "9b6d4b35bde4b5b59cd3c0bca111e799c1e218069c3b1475d834b12985a99027", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b6d4b35bde4b5b59cd3c0bca111e799c1e218069c3b1475d834b12985a99027", kill_on_drop: false }` [INFO] [stdout] 9b6d4b35bde4b5b59cd3c0bca111e799c1e218069c3b1475d834b12985a99027