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

Reference wrapper changes #1292

Merged
merged 7 commits into from
Jun 15, 2023
Merged

Reference wrapper changes #1292

merged 7 commits into from
Jun 15, 2023

Conversation

adetaylor
Copy link
Collaborator

The primary change here is that the type Target within Deref of a CppRef<T> is no longer a &T but instead &*const T because method dispatch works just as well, and it reduces the "risk" of Rust references being deemed OK.

It turns out that arbitrary_self_types' method enumeration works even if
Deref::Target isn't T, but is instead *const T. We never want a &T to exist,
but &*const T is fine, so switch to that.
@adetaylor adetaylor merged commit 1bfbf9d into main Jun 15, 2023
19 checks passed
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.

None yet

1 participant