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

Temporary fix for derived code (fixes #78) #94

Merged
merged 3 commits into from
May 24, 2023

Conversation

W95Psp
Copy link
Collaborator

@W95Psp W95Psp commented May 23, 2023

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.

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.
@W95Psp W95Psp marked this pull request as ready for review May 23, 2023 14:06
Copy link
Member

@franziskuskiefer franziskuskiefer left a 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.

@franziskuskiefer
Copy link
Member

bors r+

bors bot added a commit that referenced this pull request May 23, 2023
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>
@bors
Copy link
Contributor

bors bot commented May 23, 2023

Build failed:

@franziskuskiefer
Copy link
Member

@W95Psp looks like something is broken

@W95Psp
Copy link
Collaborator Author

W95Psp commented May 24, 2023

Yeah, some tests are failing because of some "Waiting for lock" messages.. Just fixed that, tests should pass now!

@W95Psp
Copy link
Collaborator Author

W95Psp commented May 24, 2023

bors r+

@bors
Copy link
Contributor

bors bot commented May 24, 2023

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.
For more help, visit the forum.

If you want to switch to GitHub's built-in merge queue, visit their help page.

@bors bors bot merged commit 29584de into main May 24, 2023
@bors bors bot deleted the skip-automatically-derived-items branch May 24, 2023 08:41
W95Psp added a commit that referenced this pull request May 31, 2023
W95Psp added a commit that referenced this pull request May 31, 2023
W95Psp added a commit that referenced this pull request Jun 1, 2023
bors bot added a commit that referenced this pull request Jun 5, 2023
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>
bors bot added a commit that referenced this pull request Jun 6, 2023
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants