Skip to content

rustc: Start accepting *const T #14952

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

Merged
merged 1 commit into from
Jun 24, 2014

Conversation

alexcrichton
Copy link
Member

This does not yet change the compiler and libraries from *T to *const T as
it will require a snapshot to do so.

cc #7362


Note that the corresponding RFC, rust-lang/rfcs#68, has not yet been accepted. It was discussed at the last meeting and decided to be accepted, however. I figured I'd get started on the preliminary work for the RFC that will be required regardless.

This does not yet change the compiler and libraries from `*T` to `*const T` as
it will require a snapshot to do so.

cc rust-lang#7362
bors added a commit that referenced this pull request Jun 24, 2014
This does not yet change the compiler and libraries from `*T` to `*const T` as
it will require a snapshot to do so.

cc #7362

---

Note that the corresponding RFC, rust-lang/rfcs#68, has not yet been accepted. It was [discussed at the last meeting](https://github.com/rust-lang/rust/wiki/Meeting-weekly-2014-06-10#rfc-pr-68-unsafe-pointers-rename-t-to-const-t) and decided to be accepted, however. I figured I'd get started on the preliminary work for the RFC that will be required regardless.
@bors bors closed this Jun 24, 2014
@bors bors merged commit 3324257 into rust-lang:master Jun 24, 2014
@alexcrichton alexcrichton deleted the const-unsafe-pointers branch June 24, 2014 14:18
bors added a commit to rust-lang-ci/rust that referenced this pull request Jun 5, 2023
…ative, r=HKalbasi

fix: assignment operators are right associative

Fixes rust-lang#14944

Assignment operators, be they simple or complex, are right associative in Rust ([reference]). We need to consider that fact when computing [binding power][bp] of infix operators.

The changes in `0072_destructuring_assignment.{rs,rast}` are unexpected, but I'm pretty sure it's a typo and fixed the `.rs` file accordingly.

[reference]: https://doc.rust-lang.org/reference/expressions.html#expression-precedence
[bp]: https://matklad.github.io/2020/04/13/simple-but-powerful-pratt-parsing.html
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.

3 participants