Fix --local-rust-root option on Windows
auto merge of #10584 : klutzy/rust/local-rust-root, r=alexcrichton

Fixes #8756.
remove segmented stacks from the manual
auto merge of #10587 : thestinger/rust/stack, r=pcwalton
`std::ptr::read_ptr` now takes `*T` instead of `*mut T`

Closes #10579
auto merge of #10595 : hatahet/rust/master, r=thestinger

Closes #10579
Process ffi generics in rustdoc

This prevents an assertion from being tripped because the generics weren't
categorized.

Closes #10597
auto merge of #10598 : alexcrichton/rust/rustdoc, r=thestinger

This prevents an assertion from being tripped because the generics weren't
categorized.

Closes #10597
add lint for `unsafe` blocks
tutorial: alternatives to ownership

This replaces the old section on managed pointers because the syntax is
going to be removed and it's currently feature gated so the examples
don't work out-of-the-box. Dynamic mutability coverage can be added
after the `Mut<T>` work has landed.
auto merge of #10589 : thestinger/rust/doc, r=pcwalton



This replaces the old section on managed pointers because the syntax is
going to be removed and it's currently feature gated so the examples
don't work out-of-the-box. Dynamic mutability coverage can be added
after the `Mut<T>` work has landed.
auto merge of #10599 : thestinger/rust/unsafe, r=cmr

This is just meant to be for containing usage of `unsafe`, much like `heap_memory`.
std::rand: move TaskRng off @mut.

Replace with some unsafe code by storing a pointer into TLS-owned heap
data.
auto merge of #10588 : huonw/rust/un@mutilate-task_rng, r=alexcrichton

Replace with some unsafe code by storing a pointer into TLS-owned heap
data.
test: test that the `unsafe_block` lint picks up `unsafe` blocks in
macros.
Add more benchmark tests to vec.rs

New benchmark tests in vec.rs:
`push`, `starts_with_same_vector`, `starts_with_single_element`,
`starts_with_diff_one_element_end`, `ends_with_same_vector`,
`ends_with_single_element`, `ends_with_diff_one_element_beginning` and
`contains_last_element`
auto merge of #10582 : g3xzh/rust/master, r=cmr

More new benchmark tests. some of them are benchmarking `starts_with` and `ends_with`.
Let me know if I am missing something.
Thanks in advance.
mention `Gc` in the managed box feature gate
minor rewording in the tutorial's `Rc` coverage
syntax: add a visit_ident method to the Visitor.