Closed as not planned
Description
Bevy version
main
System information
- Rust 1.75
- Windows 11
AdapterInfo { name: "NVIDIA GeForce GTX 1650", vendor: 4318, device: 8081, device_type: DiscreteGpu, driver: "NVIDIA", driver_info: "551.23", backend: Vulkan }
What you did
I tried to run an example.
What went wrong
It crashed.
Additional information
Trace:
error[E0277]: the trait bound `render_asset::_::InternalBitFlags: color::_::_serde::Serialize` is not satisfied
--> crates\bevy_render\src\render_asset.rs:70:14
|
53 | / bitflags::bitflags! {
54 | | /// Defines where the asset will be used.
55 | | ///
56 | | /// If an asset is set to the `RENDER_WORLD` but not the `MAIN_WORLD`, the asset will be
... |
70 | | #[derive(Serialize, TypePath, Deserialize, Hash, Clone, Copy, PartialEq, Eq, Debug)]
| | ^^^^^^^^^ the trait `color::_::_serde::Serialize` is not implemented for `render_asset::_::InternalBitFlags`
... |
74 | | }
75 | | }
| |_- required by a bound introduced by this call
|
= help: the following other types implement trait `color::_::_serde::Serialize`:
bool
char
isize
i8
i16
i32
i64
i128
and 256 others
note: required by a bound in `serialize_newtype_struct`
--> C:\Users\fazil\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.195\src\ser\mod.rs:900:12
|
894 | fn serialize_newtype_struct<T: ?Sized>(
| ------------------------ required by a bound in this associated function
...
900 | T: Serialize;
| ^^^^^^^^^ required by this bound in `Serializer::serialize_newtype_struct`
= note: this error originates in the derive macro `Serialize` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `render_asset::_::InternalBitFlags: Deserialize<'_>` is not satisfied
--> crates\bevy_render\src\render_asset.rs:53:1
|
53 | / bitflags::bitflags! {
54 | | /// Defines where the asset will be used.
55 | | ///
56 | | /// If an asset is set to the `RENDER_WORLD` but not the `MAIN_WORLD`, the asset will be
... |
74 | | }
75 | | }
| |_^ the trait `Deserialize<'_>` is not implemented for `render_asset::_::InternalBitFlags`
|
= help: the following other types implement trait `Deserialize<'de>`:
bool
char
isize
i8
i16
i32
i64
i128
and 238 others
= note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags::bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
error[E0277]: the trait bound `render_asset::_::InternalBitFlags: Deserialize<'_>` is not satisfied
--> crates\bevy_render\src\render_asset.rs:53:1
|
53 | / bitflags::bitflags! {
54 | | /// Defines where the asset will be used.
55 | | ///
56 | | /// If an asset is set to the `RENDER_WORLD` but not the `MAIN_WORLD`, the asset will be
... |
74 | | }
75 | | }
| |_^ the trait `Deserialize<'_>` is not implemented for `render_asset::_::InternalBitFlags`
|
= help: the following other types implement trait `Deserialize<'de>`:
bool
char
isize
i8
i16
i32
i64
i128
and 238 others
note: required by a bound in `next_element`
--> C:\Users\fazil\.cargo\registry\src\index.crates.io-6f17d22bba15001f\serde-1.0.195\src\de\mod.rs:1726:12
|
1724 | fn next_element<T>(&mut self) -> Result<Option<T>, Self::Error>
| ------------ required by a bound in this associated function
1725 | where
1726 | T: Deserialize<'de>,
| ^^^^^^^^^^^^^^^^ required by this bound in `SeqAccess::next_element`
= note: this error originates in the macro `__declare_public_bitflags` which comes from the expansion of the macro `bitflags::bitflags` (in Nightly builds, run with -Z macro-backtrace for more info)
For more information about this error, try `rustc --explain E0277`.
error: could not compile `bevy_render` (lib) due to 3 previous errors
warning: build failed, waiting for other jobs to finish...