Skip to content

Standalone bevy_ecs tests fail to compile #20542

@alice-i-cecile

Description

@alice-i-cecile

Bevy version

ed13d9b

What you did

Attempted to run a single test in bevy_ecs.

The exact command run was:

cargo test --package bevy_ecs --lib --all-features -- world::error::tests::fixing_panicking_entity_commands --exact --show-output

That particular test doesn't exist on main: I was attempting to fix a different issue.

What went wrong

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<impl Future<Output = _>>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:484:22
    |
483 |                   let _result = AssertUnwindSafe(executor.run(tick_forever))
    |  _______________________________-
484 | |                     .catch_unwind()
    | |                     -^^^^^^^^^^^^ method not found in `AssertUnwindSafe<impl Future<Output = _>>`
    | |_____________________|
    |

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<{async block@crates/bevy_tasks/src/task_pool.rs:500:36: 500:41}>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:505:62
    |
505 |                 let _result = AssertUnwindSafe(tick_forever).catch_unwind().await.is_ok();
    |                                                              ^^^^^^^^^^^^ method not found in `AssertUnwindSafe<{async block@crates/bevy_tasks/src/task_pool.rs:500:36: 500:41}>`

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<impl Future<Output = _>>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:525:22
    |
524 |                   let _result = AssertUnwindSafe(executor.run(tick_forever))
    |  _______________________________-
525 | |                     .catch_unwind()
    | |                     -^^^^^^^^^^^^ method not found in `AssertUnwindSafe<impl Future<Output = _>>`
    | |_____________________|
    |

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<{async block@crates/bevy_tasks/src/task_pool.rs:540:36: 540:41}>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:545:62
    |
545 |                 let _result = AssertUnwindSafe(tick_forever).catch_unwind().await.is_ok();
    |                                                              ^^^^^^^^^^^^ method not found in `AssertUnwindSafe<{async block@crates/bevy_tasks/src/task_pool.rs:540:36: 540:41}>`

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<Fut>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:649:40
    |
649 |             .spawn(AssertUnwindSafe(f).catch_unwind())
    |                                        ^^^^^^^^^^^^ method not found in `AssertUnwindSafe<Fut>`

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<Fut>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:665:40
    |
665 |             .spawn(AssertUnwindSafe(f).catch_unwind())
    |                                        ^^^^^^^^^^^^ method not found in `AssertUnwindSafe<Fut>`

error[E0599]: no method named `catch_unwind` found for struct `AssertUnwindSafe<Fut>` in the current scope
   --> crates/bevy_tasks/src/task_pool.rs:682:40
    |
682 |             .spawn(AssertUnwindSafe(f).catch_unwind())
    |                                        ^^^^^^^^^^^^ method not found in `AssertUnwindSafe<Fut>`

error[E0432]: unresolved import `__automatic_type_registration_impl`
   --> crates/bevy_reflect/src/lib.rs:820:17
    |
820 |         pub use __automatic_type_registration_impl::*;
    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `__automatic_type_registration_impl`
    |
    = help: if you wanted to use a crate named `__automatic_type_registration_impl`, use `cargo add __automatic_type_registration_impl` to add it to your `Cargo.toml`

Additional information

Likely introduced by #15030.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-ECSEntities, components, systems, and eventsC-BugAn unexpected or incorrect behaviorS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions