-
Notifications
You must be signed in to change notification settings - Fork 21
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
Temporary fix for derive
d code (fixes #78)
#94
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! This gets us much further along already with extracting code.
bors r+ |
94: Temporary fix for `derive`d code (fixes #78) r=franziskuskiefer a=W95Psp We want to skip derived implementations for `PartialEq`, `Eq`, `Clone`, `Debug`. This patch filters out every item that was automatically derived. This is a too coarse filter, we need to rework that. Co-authored-by: Lucas Franceschino <lucas.franceschino@inria.fr> Co-authored-by: Franziskus Kiefer <franziskuskiefer@gmail.com>
Build failed: |
@W95Psp looks like something is broken |
Yeah, some tests are failing because of some "Waiting for lock" messages.. Just fixed that, tests should pass now! |
bors r+ |
Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
106: Add support for attributes & expn_data on items (fixes #49, fixes #88) r=franziskuskiefer a=W95Psp This also makes #45 trivial to implement ~This is draft because I removed the quick & dirty filter implemented in #94, thus I now need to restore the functionality.~ - ~[ ] when we see an `impl` for a `Clone` derived by `core::clone::Clone`, replace it with an identity impl~ - ~[ ] when we see an `impl` for a `Debug` derived by `core::fmt::macros::Debug`, replace it with a dummy impl (e.g. a constant string)~ I restored a filter similar to what I did in #94: we skip every automatically_dervied items. Issue #108 keeps track of the progress on writing a better filter, so that this PR is smaller. Co-authored-by: Lucas Franceschino <lucas.franceschino@inria.fr>
106: Add support for attributes & expn_data on items (fixes #49, fixes #88) r=W95Psp a=W95Psp This also makes #45 trivial to implement ~This is draft because I removed the quick & dirty filter implemented in #94, thus I now need to restore the functionality.~ - ~[ ] when we see an `impl` for a `Clone` derived by `core::clone::Clone`, replace it with an identity impl~ - ~[ ] when we see an `impl` for a `Debug` derived by `core::fmt::macros::Debug`, replace it with a dummy impl (e.g. a constant string)~ I restored a filter similar to what I did in #94: we skip every automatically_dervied items. Issue #108 keeps track of the progress on writing a better filter, so that this PR is smaller. Co-authored-by: Lucas Franceschino <lucas.franceschino@inria.fr>
We want to skip derived implementations for
PartialEq
,Eq
,Clone
,Debug
. This patch filters out every item that was automatically derived. This is a too coarse filter, we need to rework that.