[INFO] fetching crate auto-delegate-impl 0.1.2... [INFO] testing auto-delegate-impl-0.1.2 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate auto-delegate-impl 0.1.2 into /workspace/builds/worker-6-tc2/source [INFO] started tweaking crates.io crate auto-delegate-impl 0.1.2 [INFO] finished tweaking crates.io crate auto-delegate-impl 0.1.2 [INFO] tweaked toml for crates.io crate auto-delegate-impl 0.1.2 written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate auto-delegate-impl 0.1.2 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 00dda7c80cecaf49eb0bdcc3a5f17e62560972bd7838d701629dcb48a474a2dc [INFO] running `Command { std: "docker" "start" "-a" "00dda7c80cecaf49eb0bdcc3a5f17e62560972bd7838d701629dcb48a474a2dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "00dda7c80cecaf49eb0bdcc3a5f17e62560972bd7838d701629dcb48a474a2dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00dda7c80cecaf49eb0bdcc3a5f17e62560972bd7838d701629dcb48a474a2dc", kill_on_drop: false }` [INFO] [stdout] 00dda7c80cecaf49eb0bdcc3a5f17e62560972bd7838d701629dcb48a474a2dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7781cebd495461b7ad3199f1f341d3b1c0474f258af46ea7bfe88ae682326e65 [INFO] running `Command { std: "docker" "start" "-a" "7781cebd495461b7ad3199f1f341d3b1c0474f258af46ea7bfe88ae682326e65", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling auto-delegate-impl v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.60s [INFO] running `Command { std: "docker" "inspect" "7781cebd495461b7ad3199f1f341d3b1c0474f258af46ea7bfe88ae682326e65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7781cebd495461b7ad3199f1f341d3b1c0474f258af46ea7bfe88ae682326e65", kill_on_drop: false }` [INFO] [stdout] 7781cebd495461b7ad3199f1f341d3b1c0474f258af46ea7bfe88ae682326e65 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 91061ab2c4bce589fc66d19398a2c4dadc4e47136967be5c719b61e600c0a73a [INFO] running `Command { std: "docker" "start" "-a" "91061ab2c4bce589fc66d19398a2c4dadc4e47136967be5c719b61e600c0a73a", kill_on_drop: false }` [INFO] [stderr] Compiling auto-delegate-impl v0.1.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.93s [INFO] running `Command { std: "docker" "inspect" "91061ab2c4bce589fc66d19398a2c4dadc4e47136967be5c719b61e600c0a73a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "91061ab2c4bce589fc66d19398a2c4dadc4e47136967be5c719b61e600c0a73a", kill_on_drop: false }` [INFO] [stdout] 91061ab2c4bce589fc66d19398a2c4dadc4e47136967be5c719b61e600c0a73a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4ed7f3263e987bd193555d842900b7828acbc9db44d3fdf67ca83cac8d96f05c [INFO] running `Command { std: "docker" "start" "-a" "4ed7f3263e987bd193555d842900b7828acbc9db44d3fdf67ca83cac8d96f05c", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/auto_delegate_impl-a0a4d28ef6594faf) [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 auto_delegate_impl [INFO] [stdout] [INFO] [stdout] running 5 tests [INFO] [stdout] test src/lib.rs - delegate (line 20) ... FAILED [INFO] [stdout] test src/lib.rs - derive_delegate (line 203) ... FAILED [INFO] [stdout] test src/lib.rs - derive_delegate (line 45) ... FAILED [INFO] [stdout] test src/lib.rs - derive_delegate (line 78) ... FAILED [INFO] [stdout] test src/lib.rs - derive_delegate (line 113) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - delegate (line 20) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `auto_delegate` [INFO] [stdout] --> src/lib.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | use auto_delegate::delegate; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `auto_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `auto_delegate`, use `cargo add auto_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - derive_delegate (line 203) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `auto_delegate` [INFO] [stdout] --> src/lib.rs:204:5 [INFO] [stdout] | [INFO] [stdout] 204 | use auto_delegate::{delegate, Delegate}; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `auto_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `auto_delegate`, use `cargo add auto_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `to` in this scope [INFO] [stdout] --> src/lib.rs:235:3 [INFO] [stdout] | [INFO] [stdout] 235 | #[to(Calc)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `to` is an attribute that can be used by the derive macro `Delegate`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calc` found for enum `EnumCalc` in the current scope [INFO] [stdout] --> src/lib.rs:243:14 [INFO] [stdout] | [INFO] [stdout] 236 | enum EnumCalc { [INFO] [stdout] | ------------- method `calc` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 243 | assert_eq!(c.calc(3, 5), 8); [INFO] [stdout] | ^^^^ method not found in `EnumCalc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Calc` defines an item `calc`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | trait Calc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calc` found for enum `EnumCalc` in the current scope [INFO] [stdout] --> src/lib.rs:246:14 [INFO] [stdout] | [INFO] [stdout] 236 | enum EnumCalc { [INFO] [stdout] | ------------- method `calc` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 246 | assert_eq!(c.calc(3, 2), 1); [INFO] [stdout] | ^^^^ method not found in `EnumCalc` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Calc` defines an item `calc`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:207:1 [INFO] [stdout] | [INFO] [stdout] 207 | trait Calc { [INFO] [stdout] | ^^^^^^^^^^ [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 - derive_delegate (line 45) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `auto_delegate` [INFO] [stdout] --> src/lib.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | use auto_delegate::*; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `auto_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `auto_delegate`, use `cargo add auto_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delegate` in this scope [INFO] [stdout] --> src/lib.rs:48:3 [INFO] [stdout] | [INFO] [stdout] 48 | #[delegate] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 45 + use auto_delegate_impl::delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Delegate` in this scope [INFO] [stdout] --> src/lib.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 62 | #[derive(Delegate, Default)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 45 + use auto_delegate_impl::Delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `to` in this scope [INFO] [stdout] --> src/lib.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 64 | #[to(Calc)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `to` is an attribute that can be used by the derive macro `Delegate`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calc` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:70:19 [INFO] [stdout] | [INFO] [stdout] 63 | struct Parent { [INFO] [stdout] | ------------- method `calc` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 70 | assert_eq!(parent.calc(3, 2), 5); [INFO] [stdout] | ^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Calc` defines an item `calc`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:49:1 [INFO] [stdout] | [INFO] [stdout] 49 | trait Calc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 70 | assert_eq!(parent.child.calc(3, 2), 5); [INFO] [stdout] | ++++++ [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] ---- src/lib.rs - derive_delegate (line 78) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `auto_delegate` [INFO] [stdout] --> src/lib.rs:79:5 [INFO] [stdout] | [INFO] [stdout] 79 | use auto_delegate::*; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `auto_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `auto_delegate`, use `cargo add auto_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delegate` in this scope [INFO] [stdout] --> src/lib.rs:81:3 [INFO] [stdout] | [INFO] [stdout] 81 | #[delegate] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 78 + use auto_delegate_impl::delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Delegate` in this scope [INFO] [stdout] --> src/lib.rs:97:19 [INFO] [stdout] | [INFO] [stdout] 97 | #[derive(Default, Delegate)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 78 + use auto_delegate_impl::Delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `to` in this scope [INFO] [stdout] --> src/lib.rs:99:7 [INFO] [stdout] | [INFO] [stdout] 99 | #[to(Calc)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `to` is an attribute that can be used by the derive macro `Delegate`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calc` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:106:19 [INFO] [stdout] | [INFO] [stdout] 98 | struct Parent{ [INFO] [stdout] | -------------------------------- method `calc` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 106 | assert_eq!(parent.calc(3, 2), 5); [INFO] [stdout] | ^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Calc` defines an item `calc`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:82:1 [INFO] [stdout] | [INFO] [stdout] 82 | trait Calc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 106 | assert_eq!(parent.child.calc(3, 2), 5); [INFO] [stdout] | ++++++ [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] ---- src/lib.rs - derive_delegate (line 113) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `auto_delegate` [INFO] [stdout] --> src/lib.rs:114:5 [INFO] [stdout] | [INFO] [stdout] 114 | use auto_delegate::*; [INFO] [stdout] | ^^^^^^^^^^^^^ use of unresolved module or unlinked crate `auto_delegate` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `auto_delegate`, use `cargo add auto_delegate` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delegate` in this scope [INFO] [stdout] --> src/lib.rs:116:3 [INFO] [stdout] | [INFO] [stdout] 116 | #[delegate] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 113 + use auto_delegate_impl::delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delegate` in this scope [INFO] [stdout] --> src/lib.rs:133:3 [INFO] [stdout] | [INFO] [stdout] 133 | #[delegate] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 113 + use auto_delegate_impl::delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `delegate` in this scope [INFO] [stdout] --> src/lib.rs:141:3 [INFO] [stdout] | [INFO] [stdout] 141 | #[delegate] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this attribute macro [INFO] [stdout] | [INFO] [stdout] 113 + use auto_delegate_impl::delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find derive macro `Delegate` in this scope [INFO] [stdout] --> src/lib.rs:179:19 [INFO] [stdout] | [INFO] [stdout] 179 | #[derive(Default, Delegate)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: consider importing this derive macro [INFO] [stdout] | [INFO] [stdout] 113 + use auto_delegate_impl::Delegate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `to` in this scope [INFO] [stdout] --> src/lib.rs:181:7 [INFO] [stdout] | [INFO] [stdout] 181 | #[to(Movable, Resizable)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `to` is an attribute that can be used by the derive macro `Delegate`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `to` in this scope [INFO] [stdout] --> src/lib.rs:184:7 [INFO] [stdout] | [INFO] [stdout] 184 | #[to(Calc)] [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `to` is an attribute that can be used by the derive macro `Delegate`, you might be missing a `derive` attribute [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `calc` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:191:19 [INFO] [stdout] | [INFO] [stdout] 180 | struct Parent{ [INFO] [stdout] | -------------------------------- method `calc` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 191 | assert_eq!(parent.calc(3, 2), 5); [INFO] [stdout] | ^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Calc` defines an item `calc`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:117:1 [INFO] [stdout] | [INFO] [stdout] 117 | trait Calc { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 191 | assert_eq!(parent.calculator.calc(3, 2), 5); [INFO] [stdout] | +++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `move_to` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 180 | struct Parent{ [INFO] [stdout] | -------------------------------- method `move_to` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 193 | parent.move_to((10, 11)); [INFO] [stdout] | ^^^^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Movable` defines an item `move_to`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | trait Movable{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 193 | parent.transform.move_to((10, 11)); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `pos` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:194:19 [INFO] [stdout] | [INFO] [stdout] 180 | struct Parent{ [INFO] [stdout] | -------------------------------- method `pos` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 194 | assert_eq!(parent.pos(), (10, 11)); [INFO] [stdout] | ^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Movable` defines an item `pos`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:134:1 [INFO] [stdout] | [INFO] [stdout] 134 | trait Movable{ [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 194 | assert_eq!(parent.transform.pos(), (10, 11)); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `resize` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:196:8 [INFO] [stdout] | [INFO] [stdout] 180 | struct Parent{ [INFO] [stdout] | -------------------------------- method `resize` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 196 | parent.resize(100, 120); [INFO] [stdout] | ^^^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `Resizable` defines an item `resize`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:142:1 [INFO] [stdout] | [INFO] [stdout] 142 | trait Resizable{ [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 196 | parent.transform.resize(100, 120); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `size` found for struct `Parent` in the current scope [INFO] [stdout] --> src/lib.rs:197:19 [INFO] [stdout] | [INFO] [stdout] 180 | struct Parent{ [INFO] [stdout] | -------------------------------- method `size` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 197 | assert_eq!(parent.size(), (100, 120)); [INFO] [stdout] | ^^^^ method not found in `Parent` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following traits define an item `size`, perhaps you need to implement one of them: [INFO] [stdout] candidate #1: `Resizable` [INFO] [stdout] candidate #2: `std::os::unix::fs::MetadataExt` [INFO] [stdout] help: one of the expressions' fields has a method of the same name [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(parent.transform.size(), (100, 120)); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 12 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 - delegate (line 20) [INFO] [stdout] src/lib.rs - derive_delegate (line 113) [INFO] [stdout] src/lib.rs - derive_delegate (line 203) [INFO] [stdout] src/lib.rs - derive_delegate (line 45) [INFO] [stdout] src/lib.rs - derive_delegate (line 78) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4ed7f3263e987bd193555d842900b7828acbc9db44d3fdf67ca83cac8d96f05c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4ed7f3263e987bd193555d842900b7828acbc9db44d3fdf67ca83cac8d96f05c", kill_on_drop: false }` [INFO] [stdout] 4ed7f3263e987bd193555d842900b7828acbc9db44d3fdf67ca83cac8d96f05c