librustc: tidy cleanup
Convert sub tutorials into Guides #10838

Ensure configure creates doc/guides directory

Fix configure makefile and tests

Remove old guides dir and configure option, convert testing to guide

Remove ignored files

Fix submodule issue

prepend dir in makefile so that bor knows how to build the docs

S to uppercase
auto merge of #10900 : yichoi/rust/mac_android_cross, r=alexcrichton

this patch should be followed by https://github.com/alexcrichton/libuv/pull/2
auto merge of #11106 : alan-andrade/rust/convert_tutorials_to_guides, r=cmr

* Moved every the tutorial-*.md into its own directory `/doc/guides/`
* Makefile is aware
Guarantee that native tasks wait for children

There was a scheduling race where a child may not increment the global task
count before the parent exits, and the parent would then think that there are no
more tasks left.
doc: update reference to new vector size syntax
Don't wait for a full buffer when reading TCP

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328
auto merge of #11315 : alexcrichton/rust/issue-11309, r=huonw

There was a scheduling race where a child may not increment the global task
count before the parent exits, and the parent would then think that there are no
more tasks left.

Closes #11039
auto merge of #11118 : jhasse/rust/patch-rustlibdir, r=alexcrichton

...stlib. Fixes #3319
auto merge of #11321 : huonw/rust/treemap-mut, r=alexcrichton

This requires a single `*mut` pointer to implement; I've justified its existence & correctness in the code.

Also, converts the mutable and immutable iterators to share code with some macro ~~madness~~ manipulation.
Disowned the Visitor.
auto merge of #11161 : eddyb/rust/de-at-visitor, r=huonw

The primary user of `@T`/`P<T>` references from `Visitor` was `ast_map`, which in turn had two users (phase 3 in rustc and a step in loading items from metadata).
Both of them have been rewritten to use `ast_map` as a folder (this might speed up the compilation time of stage2 rustc by 100-200ms just because a fold + a visit are merged together).
auto merge of #11327 : nielsle/rust/rustpkg_argparse, r=alexcrichton

Rearrange some code in rustpkg:

* Move command line argument parsing to  parse_args.rs
* Introduce an enum to descibe commands such as Build, Install, and Clean.
* Move sysroot from Context to BuildContext, to make parse_args  more modular.

This is my first pull request, so please tell me if there is anything I need to do.
auto merge of #11332 : sfackler/rust/de-at-se, r=huonw

This is necessary for #11151 to make sure dtors run before the libraries
are unloaded.
auto merge of #11333 : cmr/rust/triage2, r=alexcrichton
Don't attempt duplicate outputs

This ends up causing weird errors like those seen in #11346

Closes #11346
Register new snapshots
Fix formatting of some code blocks in pdf docs

Code blocks apparently need to be surrounded by whitespace to be output
correctly when generating pdfs
auto merge of #11334 : alexcrichton/rust/fix-native-tcp, r=pcwalton

libnative erroneously would attempt to fill the entire buffer in a call to
`read` before returning, when rather it should return immediately because
there's not guaranteed to be any data that will ever be received again.

Close #11328
auto merge of #11335 : rlane/rust/fix-vector-doc, r=alexcrichton