-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
TRPL: unsafe -> raw pointers #24631
TRPL: unsafe -> raw pointers #24631
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
println!("raw points at {}", points_at); | ||
``` | ||
|
||
For more operations on raw pointers, see [ther API documentation][rawapi]. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ther -> their
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice catch
1b4f25c
to
1150fb0
Compare
Many unsafe features are now in the unstable section, so this section is really just about raw pointers now. That also makes sense for its place in the TOC. This addresses part of rust-lang#12905.
``` | ||
|
||
## Raw pointers | ||
% Raw Pointers |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Was this file intended for deletion?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it effectively got moved to the other one. I'm working on a new, general 'unsafe' guide now, was just gonna send a different PR.
r=me if unsafe-code.md should be deleted, and also r=me if it shouldn't :) |
@bors: r=alexcrichton rollup |
📌 Commit 1150fb0 has been approved by |
% Raw Pointers | ||
|
||
Rust has a number of different smart pointer types in its standard library, but | ||
there are two types that are extra-special. Much of Rust’s safety comes from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which two? &
and &mut
? or *const
and *mut
? It's seems to me that the raw pointer types are the least special (at least when compared to C/C++/other languages).
Also, I wouldn't call the raw pointer types "smart pointers".
…ichton Many unsafe features are now in the unstable section, so this section is really just about raw pointers now. That also makes sense for its place in the TOC. This addresses part of rust-lang#12905.
rust-lang#24631 is related, as it will delete this from the TOC, but I want to keep it here.
Many unsafe features are now in the unstable section, so this section is
really just about raw pointers now. That also makes sense for its place
in the TOC.
This addresses part of #12905.