Skip to content

Upgrade 0.7 to 0.8: deriving Default on enums is experimental #5520

@aprchen

Description

@aprchen

Bevy version

cargo.toml

[package]
name = "tetris"
version = "0.1.0"
edition = "2021"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
bevy = "0.8.0"
rand = "0.8.5"

[profile.dev.package."*"]
opt-level = 3

[Optional] Relevant system information

➜ ~ cargo --version
cargo 1.61.0 (a028ae42f 2022-04-29)

OS: macos, Apple M1

What you did

Upgrade 0.7 to 0.8

What went wrong

If it's not clear, break this out into:

  • what were you expecting?
    Compilation complete
  • what actually happened?
✗ cargo run                         
   Compiling bevy_reflect_derive v0.8.0
   Compiling bevy_render_macros v0.8.0
   Compiling bevy_encase_derive v0.8.0
   Compiling taffy v0.1.0
   Compiling hashbrown v0.12.3
   Compiling smallvec v1.9.0
   Compiling glam v0.21.2
   Compiling uuid v1.1.2
error[E0658]: deriving `Default` on enums is experimental
  --> /Users/cf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_reflect_derive-0.8.0/src/container_attributes.rs:27:17
   |
27 | #[derive(Clone, Default)]
   |                 ^^^^^^^
   |
   = note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
   = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: deriving `Default` on enums is experimental
  --> /Users/cf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_reflect_derive-0.8.0/src/field_attributes.rs:25:10
   |
25 | #[derive(Default)]
   |          ^^^^^^^
   |
   = note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
   = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: deriving `Default` on enums is experimental
   --> /Users/cf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render_macros-0.8.0/src/as_bind_group.rs:485:10
    |
485 | #[derive(Default)]
    |          ^^^^^^^
    |
    = note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: deriving `Default` on enums is experimental
   --> /Users/cf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render_macros-0.8.0/src/as_bind_group.rs:589:10
    |
589 | #[derive(Default)]
    |          ^^^^^^^
    |
    = note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

error[E0658]: deriving `Default` on enums is experimental
   --> /Users/cf/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_render_macros-0.8.0/src/as_bind_group.rs:790:10
    |
790 | #[derive(Default)]
    |          ^^^^^^^
    |
    = note: see issue #86985 <https://github.com/rust-lang/rust/issues/86985> for more information
    = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info)

For more information about this error, try `rustc --explain E0658`.
error: could not compile `bevy_render_macros` due to 3 previous errors
warning: build failed, waiting for other jobs to finish...
error: could not compile `bevy_reflect_derive` due to 2 previous errors

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-BugAn unexpected or incorrect behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions