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

Remove support for deprecated _parent field #613

Merged
merged 1 commit into from
Jul 25, 2022
Merged

Remove support for deprecated _parent field #613

merged 1 commit into from
Jul 25, 2022

Conversation

Kijewski
Copy link
Collaborator

The support for the magic _parent field is deprecated since v0.8.0
or issue #180. It's bothersome to keep this feature alive, when no-one
should be using it for 3 years.

@djc
Copy link
Collaborator

djc commented Jan 25, 2022

Sounds good, but this should probably wait until we do another semver-incompatible release.

@DamnWidget
Copy link

You should also probably refactor all the test cases where _parent is being used

@michaelmelanson
Copy link

What should we be using instead?

@djc
Copy link
Collaborator

djc commented May 9, 2022

@michaelmelanson what's your use case, and what have you tried that doesn't work?

The support for the magic `_parent` field is deprecated since v0.8.0
or issue #180. It's bothersome to keep this feature alive, when no-one
should be using it for 3 years.
@Kijewski
Copy link
Collaborator Author

Instead of removing the inheritance test entirely, I made it use ops::Deref.

Copy link
Collaborator

@djc djc left a comment

Choose a reason for hiding this comment

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

Nice!

@djc djc merged commit 16a37f4 into rinja-rs:main Jul 25, 2022
@Kijewski Kijewski deleted the pr-remove-parent branch July 25, 2022 17:36
@djc djc mentioned this pull request Feb 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants