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

Add Feature::c_feature #192

Merged
merged 1 commit into from
Jul 18, 2021
Merged

Conversation

lnicola
Copy link
Member

@lnicola lnicola commented Jun 10, 2021

  • I agree to follow the project's code of conduct.
  • I added an entry to CHANGES.md if knowledge of this change could be valuable to users.

@lnicola lnicola force-pushed the feature-c-feature branch from 694224a to 488d3d7 Compare June 10, 2021 14:57
@lnicola lnicola changed the title Add Feature::c_feature Add Feature::c_feature Jun 10, 2021
@lnicola lnicola force-pushed the feature-c-feature branch from 488d3d7 to a199be0 Compare July 13, 2021 16:30
@lnicola
Copy link
Member Author

lnicola commented Jul 13, 2021

r? @jdroenner

@lnicola
Copy link
Member Author

lnicola commented Jul 17, 2021

r? anyone

@jdroenner
Copy link
Member

we could think about the pointer exposure in general. maybe such a method should be unsafe?

@lnicola
Copy link
Member Author

lnicola commented Jul 17, 2021

I wanted to do a follow-up PR for that. I don't think they need to be unsafe. In rust you, the place where you dereference a pointer is unsafe, not where you create it.

So if the feature is valid, there's no reason for this method to be unsafe. And if it's not valid, it was created by unsafe code.

@lnicola lnicola force-pushed the feature-c-feature branch from a199be0 to f1ab944 Compare July 18, 2021 06:22
@lnicola
Copy link
Member Author

lnicola commented Jul 18, 2021

Added unsafe, so it can be merged before deciding on all of the others.

@jdroenner jdroenner merged commit f56d3f9 into georust:master Jul 18, 2021
@lnicola lnicola deleted the feature-c-feature branch July 19, 2021 06:38
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