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

Move unsafe implementations to be in one place. #5104

Merged
merged 1 commit into from
Jun 24, 2024

Conversation

younies
Copy link
Member

@younies younies commented Jun 21, 2024

No description provided.

@younies younies requested a review from sffc June 21, 2024 20:26
@unicode-org unicode-org deleted a comment from CLAassistant Jun 21, 2024
@younies younies marked this pull request as ready for review June 21, 2024 20:37
@younies younies requested a review from zbraniecki as a code owner June 21, 2024 20:37
@younies younies changed the title Move the unsafe implementation to one place. Move unsafe implementations to be in one place. Jun 21, 2024
@younies younies removed the request for review from zbraniecki June 21, 2024 20:38
@younies younies force-pushed the dev-remove-unneeded2 branch from 966782d to bcbbf27 Compare June 21, 2024 21:11
@unicode-org unicode-org deleted a comment from CLAassistant Jun 21, 2024
/// };
///
/// assert_writeable_eq!(borrowed_pattern.interpolate([5]), "5 days");
/// ```
unsafe impl VarULE for Pattern<SinglePlaceholder, str> {
Copy link
Member Author

Choose a reason for hiding this comment

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

@sffc , in my opinion, this should be

unsafe impl<B> VarULE for Pattern<B, B::Store>

Copy link
Member Author

Choose a reason for hiding this comment

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

it seems it needs more thinking, lets generalize it in another PR

@younies younies merged commit 125ef71 into unicode-org:main Jun 24, 2024
28 checks passed
@younies younies deleted the dev-remove-unneeded2 branch June 25, 2024 10:02
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.

2 participants