librustc: Add missing import. rs=burningtree
`std::net::tcp` docs: Use current syntax and types

Doesn't touch non-comment lines. This changes various type_names to TypeNames
and fixes the example for `tcp::accept` that was still using the old
`match` syntax and `{|args| ...}` closures.
Contributing.md: remove spurious verb
Rename core::private to core::unstable. #4743
docs/rust.md: Mention unit-like structs along with other struct types
doc/rust.md: Demonstrate the `f::<T>()` syntax more often

The "Generic functions" subsection mentions that generic functions are
instantiated based on context, so let's also mention right away (with a
link to the #paths section) that an explicit form is available.

This also adds an example to the function call expression section that
explicitly instantiates a generic function.
Avoid calling to_vec() unnecessarily in parser.

Also, rename the OptVec-to-vector conversion method to
opt_vec::take_vec() and convert from a method into a fn
because I fear strange bugs.
Register FreeBSD snapshot
core: Move core::rt to core::unstable::lang
mk: mingw32 fix
mk: Cross-compile fixes
Merge remote branch 'nmatsakis/parser-perf-problem' into incoming
auto merge of #5190 : brson/rust/snap, r=brson
Fix some struct-tuple def prettyprint issues
- Removed space between struct name and parentheses
- Fixed indentation of the rest of the file (missing end)
- Don't print parentheses for structs with no fields
- Added test
auto merge of #5165 : brson/rust/unstable, r=brson

r?

This probably isn't controversial, but I want somebody else to sign off on it.
Remove REC, change related tests/docs
Merge remote-tracking branch 'remotes/origin/incoming' into incoming
auto merge of #5185 : ben0x539/rust/net-tcp-docs, r=brson

This changes various type_names to TypeNames and fixes the example for `tcp::accept` that was still using the old `match` syntax and `{|args| ...}` closures.

The `accept` example was fairly outdated. I was just going to stay away from all the IO things until the scheduler revamp lands, but `accept` is probably one of the obvious starting points for networking stuff for a learner, and I don't want to get in the way of anyone's enthusiasm.

Doesn't touch non-comment lines, so I hope I will get away without learning about unit tests. It doesn't seem like the test system is set up to extract tests from doc comments right now.
Allow constant c-like enum to integral/float cast
auto merge of #5186 : ben0x539/rust/contributing, r=brson

I'm wary of editing the offical-looking things like the contribution policy, but I hope fixing typos/the sentence structure is okay.