-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Metadata decoding of more than one attribute like mutable and non_owned broken #7017
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
Labels
A-frontend
Area: Compiler frontend (errors, parsing and HIR)
Comments
Nominating for the production ready milestone. |
Should be fixable with the following patch:
|
Merged
bill-myers
added a commit
to bill-myers/rust
that referenced
this issue
Jun 9, 2013
We were just looking at the last because we were overwriting ret.
bill-myers
added a commit
to bill-myers/rust
that referenced
this issue
Jun 9, 2013
bors
added a commit
that referenced
this issue
Jun 9, 2013
Minimally fixes #7017, we were overwriting the result and thus ignoring attributes before the last. csearch::get_item_attrs and decoder::get_item_attrs should probably also be changed to each_item_attrs using the for protocol, but that's just a minor performance/style issue.
Fixed by #7018. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It seems the decoding of [mutable] and [non_owned] is broken: specifically it seems they are ignored when applied on a struct in an external module, when another attribute follows.
In particular, it seems that when more than one attribute is present, only the last attribute survives encode+decode, and the others are somehow lost.
The text was updated successfully, but these errors were encountered: