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

Rename *T to *const T #15208

Merged
merged 2 commits into from
Jun 28, 2014
Merged

Rename *T to *const T #15208

merged 2 commits into from
Jun 28, 2014

Conversation

alexcrichton
Copy link
Member

This change registers new snapshots, allowing *T to be removed from the language. This is a large breaking change, and it is recommended that if compiler errors are seen that any FFI calls are audited to determine whether they should be actually taking *mut T.

This change starts denying `*T` in the parser. All code using `*T` should ensure
that the FFI call does indeed take `const T*` on the other side before renaming
the type to `*const T`.

Otherwise, all code can rename `*T` to `*const T`.

[breaking-change]
@alexcrichton
Copy link
Member Author

cc #7362, I believe this closes that issue, but I will analyze after this lands

bors added a commit that referenced this pull request Jun 27, 2014
This change registers new snapshots, allowing `*T` to be removed from the language. This is a large breaking change, and it is recommended that if compiler errors are seen that any FFI calls are audited to determine whether they should be actually taking `*mut T`.
bors added a commit that referenced this pull request Jun 28, 2014
This change registers new snapshots, allowing `*T` to be removed from the language. This is a large breaking change, and it is recommended that if compiler errors are seen that any FFI calls are audited to determine whether they should be actually taking `*mut T`.
@bors bors closed this Jun 28, 2014
@bors bors merged commit 0dfc90a into rust-lang:master Jun 28, 2014
@alexcrichton alexcrichton deleted the snapshots branch June 30, 2014 14:36
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