[INFO] cloning repository https://github.com/shunlingsmile/smile-marco [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shunlingsmile/smile-marco" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunlingsmile%2Fsmile-marco", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunlingsmile%2Fsmile-marco'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ea104405e50207cf262ed37f77e5de2c74839c7c [INFO] testing shunlingsmile/smile-marco against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunlingsmile%2Fsmile-marco" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunlingsmile/smile-marco on toolchain 1871252fc8bb672d40787e67404e6eaae7059369 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] finished tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] tweaked toml for git repo https://github.com/shunlingsmile/smile-marco written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/shunlingsmile/smile-marco 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" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] testing shunlingsmile/smile-marco against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunlingsmile%2Fsmile-marco" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunlingsmile/smile-marco on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] finished tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] tweaked toml for git repo https://github.com/shunlingsmile/smile-marco written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/shunlingsmile/smile-marco 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" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] testing shunlingsmile/smile-marco against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshunlingsmile%2Fsmile-marco" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shunlingsmile/smile-marco on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] finished tweaking git repo https://github.com/shunlingsmile/smile-marco [INFO] tweaked toml for git repo https://github.com/shunlingsmile/smile-marco written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/shunlingsmile/smile-marco 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" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c9ed1e0e4d8cd6e9c61b197a5242f53d0dbf9b4033fe988ecaad183a4f65a549 [INFO] running `Command { std: "docker" "start" "-a" "c9ed1e0e4d8cd6e9c61b197a5242f53d0dbf9b4033fe988ecaad183a4f65a549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c9ed1e0e4d8cd6e9c61b197a5242f53d0dbf9b4033fe988ecaad183a4f65a549", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c9ed1e0e4d8cd6e9c61b197a5242f53d0dbf9b4033fe988ecaad183a4f65a549", kill_on_drop: false }` [INFO] [stdout] c9ed1e0e4d8cd6e9c61b197a5242f53d0dbf9b4033fe988ecaad183a4f65a549 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7101b3e13487a053dab5f7bca0dafc22eea57a70879c55c66339f1fe7d61002c [INFO] running `Command { std: "docker" "start" "-a" "7101b3e13487a053dab5f7bca0dafc22eea57a70879c55c66339f1fe7d61002c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling smile-marco v1.0.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.20s [INFO] running `Command { std: "docker" "inspect" "7101b3e13487a053dab5f7bca0dafc22eea57a70879c55c66339f1fe7d61002c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7101b3e13487a053dab5f7bca0dafc22eea57a70879c55c66339f1fe7d61002c", kill_on_drop: false }` [INFO] [stdout] 7101b3e13487a053dab5f7bca0dafc22eea57a70879c55c66339f1fe7d61002c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 45010fa43a6add008fea715e0eae9412945fc62d330b92a2d907765ab4ea0241 [INFO] running `Command { std: "docker" "start" "-a" "45010fa43a6add008fea715e0eae9412945fc62d330b92a2d907765ab4ea0241", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Compiling smile-marco v1.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `title` and `author` are never read [INFO] [stdout] --> examples/setter.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/wither.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | let mut book = Book { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `author` is never read [INFO] [stdout] --> examples/builder.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Book { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 7 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `title` and `author` are never read [INFO] [stdout] --> examples/wither.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Book { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 5 | title: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 9 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `author` is never read [INFO] [stdout] --> examples/getter.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Book { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `author` is never read [INFO] [stdout] --> examples/data.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 4 | struct Book { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 9 | author: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 2.29s [INFO] running `Command { std: "docker" "inspect" "45010fa43a6add008fea715e0eae9412945fc62d330b92a2d907765ab4ea0241", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "45010fa43a6add008fea715e0eae9412945fc62d330b92a2d907765ab4ea0241", kill_on_drop: false }` [INFO] [stdout] 45010fa43a6add008fea715e0eae9412945fc62d330b92a2d907765ab4ea0241 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 2b473fb80e872fec6a246bd67fd51f2849158365482841154d581cffd663facb [INFO] running `Command { std: "docker" "start" "-a" "2b473fb80e872fec6a246bd67fd51f2849158365482841154d581cffd663facb", kill_on_drop: false }` [INFO] [stderr] warning: fields `title` and `author` are never read [INFO] [stderr] --> examples/setter.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 4 | struct Book { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 5 | title: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 9 | author: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> examples/wither.rs:13:9 [INFO] [stderr] | [INFO] [stderr] 13 | let mut book = Book { [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: fields `title` and `author` are never read [INFO] [stderr] --> examples/wither.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 4 | struct Book { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 5 | title: String, [INFO] [stderr] | ^^^^^ [INFO] [stderr] ... [INFO] [stderr] 9 | author: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `author` is never read [INFO] [stderr] --> examples/builder.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 4 | struct Book { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 7 | author: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `smile-marco` (example "setter") generated 1 warning [INFO] [stderr] warning: `smile-marco` (example "wither") generated 2 warnings (run `cargo fix --example "wither"` to apply 1 suggestion) [INFO] [stderr] warning: `smile-marco` (example "builder") generated 1 warning [INFO] [stderr] warning: field `author` is never read [INFO] [stderr] --> examples/getter.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 4 | struct Book { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | author: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: field `author` is never read [INFO] [stderr] --> examples/data.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 4 | struct Book { [INFO] [stderr] | ---- field in this struct [INFO] [stderr] ... [INFO] [stderr] 9 | author: String, [INFO] [stderr] | ^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `smile-marco` (example "getter") generated 1 warning [INFO] [stderr] warning: `smile-marco` (example "data") generated 1 warning [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.01s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/smile_marco-5c9ccb8717f5bec1) [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 smile_marco [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - getter_derive (line 58) ... FAILED [INFO] [stdout] test src/lib.rs - wither_derive (line 144) ... FAILED [INFO] [stdout] test src/lib.rs - builder_derive (line 195) ... FAILED [INFO] [stdout] test src/lib.rs - data (line 268) ... FAILED [INFO] [stdout] test src/lib.rs - setter_derive (line 101) ... FAILED [INFO] [stdout] test src/lib.rs - (line 16) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - getter_derive (line 58) stdout ---- [INFO] [stdout] error[E0592]: duplicate definitions with name `get_title` [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Getter)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `get_title` [INFO] [stdout] ... [INFO] [stdout] 28 | pub fn get_title(&self) -> &String { [INFO] [stdout] | ---------------------------------- other definition for `get_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_cost` [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Getter)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `get_cost` [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn get_cost(&self) -> &i32 { [INFO] [stdout] | ------------------------------ other definition for `get_cost` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(book.get_title(), &"Rust Programming".to_string()); [INFO] [stdout] | ^^^^^^^^^ multiple `get_title` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Getter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:83:5 [INFO] [stdout] | [INFO] [stdout] 28 | pub fn get_title(&self) -> &String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:77:18 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(book.get_cost(), &100); [INFO] [stdout] | ^^^^^^^^ multiple `get_cost` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:61:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Getter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:87:4 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn get_cost(&self) -> &i32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0592. [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - wither_derive (line 144) stdout ---- [INFO] [stdout] error[E0592]: duplicate definitions with name `with_title` [INFO] [stdout] --> src/lib.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Wither)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `with_title` [INFO] [stdout] ... [INFO] [stdout] 27 | / pub fn with_title(mut self, func: F) -> Self [INFO] [stdout] 28 | | where [INFO] [stdout] 29 | | F: FnOnce(String) -> String, [INFO] [stdout] | |________________________________________- other definition for `with_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `with_cost` [INFO] [stdout] --> src/lib.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Wither)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `with_cost` [INFO] [stdout] ... [INFO] [stdout] 35 | / pub fn with_cost(mut self, func: F) -> Self [INFO] [stdout] 36 | | where [INFO] [stdout] 37 | | F: FnOnce(i32) -> i32, [INFO] [stdout] | |__________________________________- other definition for `with_cost` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:162:18 [INFO] [stdout] | [INFO] [stdout] 21 | let book = book.with_cost(|v| v+100); [INFO] [stdout] | ^^^^^^^^^ multiple `with_cost` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:147:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Wither)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:176:5 [INFO] [stdout] | [INFO] [stdout] 35 | / pub fn with_cost(mut self, func: F) -> Self [INFO] [stdout] 36 | | where [INFO] [stdout] 37 | | F: FnOnce(i32) -> i32, [INFO] [stdout] | |__________________________________^ [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0592. [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - builder_derive (line 195) stdout ---- [INFO] [stdout] error[E0428]: the name `BookBuilder` is defined multiple times [INFO] [stdout] --> src/lib.rs:214:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ------- previous definition of the type `BookBuilder` here [INFO] [stdout] ... [INFO] [stdout] 22 | struct BookBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ `BookBuilder` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `BookBuilder` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `builder` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `builder` [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn builder() -> BookBuilder { [INFO] [stdout] | ------------------------------- other definition for `builder` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `new` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `new` [INFO] [stdout] ... [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | -------------------- other definition for `new` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `build` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `build` [INFO] [stdout] ... [INFO] [stdout] 37 | pub fn build(self) -> Book { [INFO] [stdout] | -------------------------- other definition for `build` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `title` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `title` [INFO] [stdout] ... [INFO] [stdout] 45 | pub fn title(mut self, v: String) -> Self { [INFO] [stdout] | ----------------------------------------- other definition for `title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `price` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `price` [INFO] [stdout] ... [INFO] [stdout] 50 | pub fn price(mut self, v: i32) -> Self { [INFO] [stdout] | -------------------------------------- other definition for `price` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `author` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `author` [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn author(mut self, v: String) -> Self { [INFO] [stdout] | ------------------------------------------ other definition for `author` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:206:18 [INFO] [stdout] | [INFO] [stdout] 14 | let book = Book::builder() [INFO] [stdout] | ^^^^^^^ multiple `builder` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:254:5 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn builder() -> BookBuilder { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ multiple `new` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `_doctest_main_src_lib_rs_195_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `_doctest_main_src_lib_rs_195_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:255:22 [INFO] [stdout] | [INFO] [stdout] 63 | BookBuilder::new() [INFO] [stdout] | ^^^ multiple `new` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `_doctest_main_src_lib_rs_195_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:198:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Builder)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `_doctest_main_src_lib_rs_195_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:221:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn new() -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0428, E0592. [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - data (line 268) stdout ---- [INFO] [stdout] error: expected statement after outer attribute [INFO] [stdout] --> src/lib.rs:286:1 [INFO] [stdout] | [INFO] [stdout] 21 | #[data(link="xxx",exclude = ["Getter", "Setter"])] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `Book` is defined multiple times [INFO] [stdout] --> src/lib.rs:279:1 [INFO] [stdout] | [INFO] [stdout] 7 | struct Book { [INFO] [stdout] | ----------- previous definition of the type `Book` here [INFO] [stdout] ... [INFO] [stdout] 14 | struct Book { [INFO] [stdout] | ^^^^^^^^^^^ `Book` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `Book` must be defined only once in the type namespace of this block [INFO] [stdout] [INFO] [stdout] error[E0428]: the name `BookBuilder` is defined multiple times [INFO] [stdout] --> src/lib.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ------- previous definition of the type `BookBuilder` here [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ^^^^^^^ `BookBuilder` redefined here [INFO] [stdout] | [INFO] [stdout] = note: `BookBuilder` must be defined only once in the type namespace of this block [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_title` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `get_title` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `get_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_price` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `get_price` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `get_price` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `get_author` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `get_author` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `get_author` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Getter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_title` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `set_title` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `set_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_price` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `set_price` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `set_price` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_author` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `set_author` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `set_author` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `with_title` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `with_title` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `with_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `with_price` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `with_price` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `with_price` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `with_author` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `with_author` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------ other definition for `with_author` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Wither` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `builder` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `builder` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `builder` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `new` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `new` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `new` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `build` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `build` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `build` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `title` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `title` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `price` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `price` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `price` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `author` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ duplicate definitions for `author` [INFO] [stdout] ... [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ------- other definition for `author` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ multiple `new` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `_doctest_main_src_lib_rs_268_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `_doctest_main_src_lib_rs_268_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ^^^^^^^ multiple `new` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `_doctest_main_src_lib_rs_268_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:271:1 [INFO] [stdout] | [INFO] [stdout] 6 | #[data] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `_doctest_main_src_lib_rs_268_0::BookBuilder` [INFO] [stdout] --> src/lib.rs:278:31 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Getter,Setter,Wither,Builder)] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Builder` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error: aborting due to 20 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0428, E0592. [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - setter_derive (line 101) stdout ---- [INFO] [stdout] error[E0592]: duplicate definitions with name `set_title` [INFO] [stdout] --> src/lib.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Setter)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `set_title` [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn set_title(&mut self, title: String) { [INFO] [stdout] | ------------------------------------------ other definition for `set_title` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0592]: duplicate definitions with name `set_cost` [INFO] [stdout] --> src/lib.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Setter)] [INFO] [stdout] | ^^^^^^ duplicate definitions for `set_cost` [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn set_cost(&mut self, cost: i32) { [INFO] [stdout] | ------------------------------------- other definition for `set_cost` [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/lib.rs:119:7 [INFO] [stdout] | [INFO] [stdout] 21 | book.set_cost(200); [INFO] [stdout] | ^^^^^^^^ multiple `set_cost` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:104:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Setter)] [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: candidate #2 is defined in an impl for the type `Book` [INFO] [stdout] --> src/lib.rs:129:5 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn set_cost(&mut self, cost: i32) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this error originates in the derive macro `Setter` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_cost` found for struct `Book` in the current scope [INFO] [stdout] --> src/lib.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 7 | struct Book { [INFO] [stdout] | ----------- method `get_cost` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 22 | assert_eq!(book.get_cost(), &200); [INFO] [stdout] | ^^^^^^^^ method not found in `Book` [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0592, E0599. [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - builder_derive (line 195) [INFO] [stdout] src/lib.rs - data (line 268) [INFO] [stdout] src/lib.rs - getter_derive (line 58) [INFO] [stdout] src/lib.rs - setter_derive (line 101) [INFO] [stdout] src/lib.rs - wither_derive (line 144) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 1 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.14s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "2b473fb80e872fec6a246bd67fd51f2849158365482841154d581cffd663facb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b473fb80e872fec6a246bd67fd51f2849158365482841154d581cffd663facb", kill_on_drop: false }` [INFO] [stdout] 2b473fb80e872fec6a246bd67fd51f2849158365482841154d581cffd663facb