rollup merge of #24640: steveklabnik/new_unsafe_guide

https://github.com/rust-lang/rust/pull/24631 is related, as it will delete this from the TOC, but I want to keep it here.
This commit is contained in:
Alex Crichton 2015-04-21 15:23:10 -07:00
commit 1ec7ccb53c
3 changed files with 4 additions and 3 deletions

View File

@ -55,6 +55,7 @@
* [Deref coercions](deref-coercions.md)
* [Macros](macros.md)
* [Raw Pointers](raw-pointers.md)
* [`unsafe`](unsafe.md)
* [Nightly Rust](nightly-rust.md)
* [Compiler Plugins](compiler-plugins.md)
* [Inline Assembly](inline-assembly.md)

View File

@ -1,4 +1,4 @@
% Unsafe Code
% Unsafe
Rusts main draw is its powerful static guarantees about behavior. But safety
checks are conservative by nature: there are some programs that are actually
@ -76,7 +76,7 @@ behaviors that are certainly bad, but are expressly _not_ unsafe:
* Integer overflow
Rust cannot prevent all kinds of software problems. Buggy code can and will be
written in Rust. These things arnet great, but they dont qualify as `unsafe`
written in Rust. These things arent great, but they dont qualify as `unsafe`
specifically.
# Unsafe Superpowers

View File

@ -208,7 +208,7 @@ fn main() {
unsafe { f(); }
}
See also http://doc.rust-lang.org/book/unsafe-code.html
See also http://doc.rust-lang.org/book/unsafe.html
"##,
E0152: r##"