[INFO] cloning repository https://github.com/tascord/magic [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tascord/magic" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Fmagic", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Fmagic'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81bd82d9f1bc59b31477e2c434fd3a522e574c1c [INFO] checking tascord/magic against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftascord%2Fmagic" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tascord/magic [INFO] finished tweaking git repo https://github.com/tascord/magic [INFO] tweaked toml for git repo https://github.com/tascord/magic written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tascord/magic on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tascord/magic 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0c4f085a25f65947d795bac9e9b9527d7340c569182352e74f99841135f69d49 [INFO] running `Command { std: "docker" "start" "-a" "0c4f085a25f65947d795bac9e9b9527d7340c569182352e74f99841135f69d49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0c4f085a25f65947d795bac9e9b9527d7340c569182352e74f99841135f69d49", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0c4f085a25f65947d795bac9e9b9527d7340c569182352e74f99841135f69d49", kill_on_drop: false }` [INFO] [stdout] 0c4f085a25f65947d795bac9e9b9527d7340c569182352e74f99841135f69d49 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a335c3ffc6fff7a115a501d8acb34e46776768064f31e45d00e23d1af210a094 [INFO] running `Command { std: "docker" "start" "-a" "a335c3ffc6fff7a115a501d8acb34e46776768064f31e45d00e23d1af210a094", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking magic v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | target: Target, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | struct Action { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/main.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | Damage { damaged: Target, damager: Target, amount: u8 }, [INFO] [stdout] | ^^^^^^ -------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut(Game, Action) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut(Game, Action) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut(Game, Action) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut(Game, Action) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut(Game, Action) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Target` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required because it appears within the type `Trigger` [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum Trigger { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Target` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required because it appears within the type `Trigger` [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum Trigger { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/main.rs:8:20 [INFO] [stdout] | [INFO] [stdout] 8 | target: Target, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 6 | struct Action { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 1 generic argument but 2 generic arguments were supplied [INFO] [stdout] --> src/main.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | Damage { damaged: Target, damager: Target, amount: u8 }, [INFO] [stdout] | ^^^^^^ -------- help: remove the unnecessary generic argument [INFO] [stdout] | | [INFO] [stdout] | expected 1 generic argument [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 1 generic parameter: `T` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Player` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:78:50 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Player` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 78 | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] | ^^^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Card` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:78:73 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Card` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 78 | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] | ^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Card` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Card` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 81 | if action.target == Target::Card { [INFO] [stdout] | ^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut(Game, Action) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut(Game, Action) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut(Game, Action) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut(Game, Action) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut(Game, Action) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Target` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required because it appears within the type `Trigger` [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum Trigger { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] --> src/main.rs:76:1 [INFO] [stdout] | [INFO] [stdout] 76 | / lazy_static::lazy_static! { [INFO] [stdout] 77 | | static ref PROWESS: TriggeredAbility = TriggeredAbility { [INFO] [stdout] 78 | | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] 79 | | effect: Box::new( [INFO] [stdout] ... | [INFO] [stdout] 89 | | }; [INFO] [stdout] 90 | | } [INFO] [stdout] | |_^ `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` cannot be shared between threads safely [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sync` is not implemented for `(dyn FnMut() -> (dyn Targetable + 'static) + 'static)` [INFO] [stdout] = note: required for `Unique<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` to implement `Sync` [INFO] [stdout] note: required because it appears within the type `Box<(dyn FnMut() -> (dyn Targetable + 'static) + 'static)>` [INFO] [stdout] --> /rustc/350d0ef0ec0493e6d21cfb265cb8211a0e74d766/library/alloc/src/boxed.rs:231:12 [INFO] [stdout] note: required because it appears within the type `Target` [INFO] [stdout] --> src/main.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] note: required because it appears within the type `Trigger` [INFO] [stdout] --> src/main.rs:35:6 [INFO] [stdout] | [INFO] [stdout] 35 | enum Trigger { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: required because it appears within the type `TriggeredAbility` [INFO] [stdout] --> src/main.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | struct TriggeredAbility { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] note: required by a bound in `Lazy` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lazy_static-1.4.0/src/inline_lazy.rs:19:20 [INFO] [stdout] | [INFO] [stdout] 19 | pub struct Lazy(Cell>, Once); [INFO] [stdout] | ^^^^ required by this bound in `Lazy` [INFO] [stdout] = note: this error originates in the macro `__lazy_static_create` which comes from the expansion of the macro `lazy_static::lazy_static` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `target` found for struct `Action` in the current scope [INFO] [stdout] --> src/main.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 6 | struct Action { [INFO] [stdout] | ------------- method `target` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 82 | let card = action.target(); [INFO] [stdout] | ^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Prowess` found for enum `Ability` in the current scope [INFO] [stdout] --> src/main.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 42 | enum Ability { [INFO] [stdout] | ------------ variant or associated item `Prowess` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 83 | if card.abilities.contains(Ability::Prowess) { [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `Ability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Player` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:78:50 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Player` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 78 | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] | ^^^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Card` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:78:73 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Card` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 78 | trigger: Trigger::Cast { caster: Target::Player, spell: Target::Card }, [INFO] [stdout] | ^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `Card` found for struct `Target` in the current scope [INFO] [stdout] --> src/main.rs:81:45 [INFO] [stdout] | [INFO] [stdout] 10 | struct Target(Box dyn Targetable>); [INFO] [stdout] | ---------------- associated item `Card` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 81 | if action.target == Target::Card { [INFO] [stdout] | ^^^^ associated item not found in `Target<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | abilities: vec![PROWESS], [INFO] [stdout] | ^^^^^^^ expected `Ability`, found `PROWESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308, E0412, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `target` found for struct `Action` in the current scope [INFO] [stdout] --> src/main.rs:82:39 [INFO] [stdout] | [INFO] [stdout] 6 | struct Action { [INFO] [stdout] | ------------- method `target` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 82 | let card = action.target(); [INFO] [stdout] | ^^^^^^-- help: remove the arguments [INFO] [stdout] | | [INFO] [stdout] | field, not a method [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Prowess` found for enum `Ability` in the current scope [INFO] [stdout] --> src/main.rs:83:57 [INFO] [stdout] | [INFO] [stdout] 42 | enum Ability { [INFO] [stdout] | ------------ variant or associated item `Prowess` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 83 | if card.abilities.contains(Ability::Prowess) { [INFO] [stdout] | ^^^^^^^ variant or associated item not found in `Ability` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:96:25 [INFO] [stdout] | [INFO] [stdout] 96 | abilities: vec![PROWESS], [INFO] [stdout] | ^^^^^^^ expected `Ability`, found `PROWESS` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0277, E0308, E0412, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `magic` (bin "magic" test) due to 11 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `magic` (bin "magic") due to 11 previous errors [INFO] running `Command { std: "docker" "inspect" "a335c3ffc6fff7a115a501d8acb34e46776768064f31e45d00e23d1af210a094", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a335c3ffc6fff7a115a501d8acb34e46776768064f31e45d00e23d1af210a094", kill_on_drop: false }` [INFO] [stdout] a335c3ffc6fff7a115a501d8acb34e46776768064f31e45d00e23d1af210a094