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

Make Array::as_slice unsafe #1083

Merged
merged 1 commit into from
Mar 27, 2023
Merged

Conversation

thomcc
Copy link
Contributor

@thomcc thomcc commented Mar 27, 2023

I happened to stumble across this, and it seems kind of bad. Making it unsafe would at least stop it from being usable in plrust, although IDK if that's currently possible anyway.

@thomcc
Copy link
Contributor Author

thomcc commented Mar 27, 2023

Note: this is explained in #627

@workingjubilee
Copy link
Member

Oh sure. I was about 1 step from implementing the replacement API that would allow removing this wholesale, last I looked at this, but in case I don't, merging this in the meantime is fine.

@workingjubilee workingjubilee merged commit 066e503 into develop Mar 27, 2023
@thomcc thomcc deleted the thomcc/array-as-slice-unsafe branch March 28, 2023 01:41
workingjubilee pushed a commit to workingjubilee/pgrx that referenced this pull request Apr 4, 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.

2 participants