Skip to content
New issue

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

bevy_derive: Fix #[deref] breaking other attributes #9551

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

MrGVSV
Copy link
Member

@MrGVSV MrGVSV commented Aug 23, 2023

Objective

Fixes #9550

Solution

Removes a check that asserts that all attribute metas are path-only, rather than just the #[deref] attribute itself.


Changelog

  • Fixes an issue where deriving Deref with #[deref] on a field causes other attributes to sometimes result in a compile error

@MrGVSV MrGVSV added C-Bug An unexpected or incorrect behavior A-Utils Utility functions and types labels Aug 23, 2023
Copy link
Member

@mockersf mockersf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the changed message in missing_deref somehow doesn't happen in CI: #8962

Co-authored-by: François <mockersf@gmail.com>
@hymm hymm added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 24, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Aug 28, 2023
Merged via the queue into bevyengine:main with commit b7d6887 Aug 28, 2023
@MrGVSV MrGVSV deleted the deref-fix-9550 branch August 29, 2023 06:28
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

Fixes bevyengine#9550

## Solution

Removes a check that asserts that _all_ attribute metas are path-only,
rather than just the `#[deref]` attribute itself.

---

## Changelog

- Fixes an issue where deriving `Deref` with `#[deref]` on a field
causes other attributes to sometimes result in a compile error

---------

Co-authored-by: François <mockersf@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Utils Utility functions and types C-Bug An unexpected or incorrect behavior S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

#[deref] fails when properties have other attributes or doc comments: "unexpected token in attribute"
4 participants