We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.7.0
Pop_OS! 21.10
#[derive(Component)] struct Comp1; #[derive(Component)] struct Comp2; #[derive(Component)] struct Comp3; #[derive(WorldQuery)] struct WithoutComps { _1: Without<Comp1>, _2: Without<Comp2>, _3: Without<Comp3> }
The project to compile.
$ cargo run Compiling somegame v0.1.0 (/home/pancake/Documents/dev/rust/somegame) error: proc-macro derive panicked --> src/main.rs:29:10 | 29 | #[derive(WorldQuery)] | ^^^^^^^^^^ | = help: message: called `Option::unwrap()` on a `None` value
The text was updated successfully, but these errors were encountered:
I'm getting
error: proc-macro derive panicked --> src/main.rs:16:10 | 16 | #[derive(WorldQuery)] | ^^^^^^^^^^ | = help: message: Expected a struct with a lifetime
instead when using bevy_ecs directly.
bevy_ecs
Sorry, something went wrong.
With the help of @Gibonus on discord, the fix for this is:
@Gibonus
#[derive(WorldQuery)] struct WithoutComps<'w> { _1: Without<Comp1>, _2: Without<Comp2>, _3: Without<Comp3>, #[world_query(ignore)] _fix: Option<&'w ()> }
This has been fixed by #3001
#[derive(WorldQuery)] struct Foo { _1: Without<A>, _2: Without<B>, _3: Without<C> }
will just work:tm: now
Successfully merging a pull request may close this issue.
Bevy version
0.7.0
Operating system & version
Pop_OS! 21.10
What you did
What you expected to happen
The project to compile.
What actually happened
The text was updated successfully, but these errors were encountered: