Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Require unsafe #120

Merged
merged 3 commits into from
Feb 17, 2020
Merged

Require unsafe #120

merged 3 commits into from
Feb 17, 2020

Conversation

rylev
Copy link
Contributor

@rylev rylev commented Feb 17, 2020

As a partial solution to #97.

Hopefully the new docs add some explanation as to why. This requires all COM interface methods to be marked unsafe. The short and sweet reason for this is that it is always possible that a COM interface implementation can do something that will violate Rust's safety rules but still be a valid COM interface. Because of this, we require the caller of every COM interface method to verify that calling the method does not violate Rust's safety rules.

@snf snf merged commit 111213c into master Feb 17, 2020
@rylev rylev deleted the require-unsafe branch July 2, 2020 15:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants