You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Objective
- next batch of compile issues
- I think that's the last for now... until we add more
## Solution
- gate bevy_reflect properly in bevy_window
- improve compile error when auto_register is enabled but not
"*_inventory" or "*_static" is. Error is currently:
```
error[E0425]: cannot find function `register_types` in module `crate::__macro_exports::auto_register`
--> crates/bevy_reflect/src/type_registry.rs:158:48
|
158 | crate::__macro_exports::auto_register::register_types(self);
| ^^^^^^^^^^^^^^ not found in `crate::__macro_exports::auto_register`
```
Copy file name to clipboardExpand all lines: crates/bevy_reflect/src/lib.rs
+8Lines changed: 8 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -740,6 +740,14 @@ pub mod __macro_exports {
740
740
pubmod auto_register {
741
741
pubusesuper::*;
742
742
743
+
#[cfg(all(
744
+
not(feature = "auto_register_inventory"),
745
+
not(feature = "auto_register_static")
746
+
))]
747
+
compile_error!(
748
+
"Choosing a backend is required for automatic reflect registration. Please enable either the \"auto_register_inventory\" or the \"auto_register_static\" feature."
0 commit comments