Add .insert() and .insert_char() methods to ~str.
Change rmake and doc-test to support TESTNAME

Closes #11288
Closes #11222
std: adjust requested stack size for thread-local storage.

If there is a lot of data in thread-local storage some implementations
of pthreads (e.g. glibc) fail if you don't request a stack large enough
-- by adjusting for the minimum size we guarantee that our stacks are
always large enough. Issue #6233.
extra: Remove condition from semver
Fix android device detection when connected to a remote emulator (in this case device name contains ':').
Use $(CFG_ADB) for all adb invocations.
Restore Writer.write_char, see #10861.
etc: licenseck: don't hardcode a specific year
Don't allow single-variant enums to be dereferenced. #6246

I'm not sure if this was even intentional at this point.
auto merge of #11284 : huonw/rust/issue-6233, r=alexcrichton

If there is a lot of data in thread-local storage some implementations
of pthreads (e.g. glibc) fail if you don't request a stack large enough
-- by adjusting for the minimum size we guarantee that our stacks are
always large enough. Issue #6233.
Don't allow newtype structs to be dereferenced. #6246
rustc: Add error about obsolete struct deref
doc: Fix tutorial for struct deref
doc: Fix an inexplicable error in a tutorial example

This code was wrong but apparently worked before removing struct
deref. I don't know why.
auto merge of #11188 : brson/rust/noderef, r=brson

This removes the feature where newtype structs can be dereferenced like pointers, and likewise where certain enums can be dereferenced (which I imagine nobody realized still existed). This ad-hoc behavior is to be replaced by a more general overloadable dereference trait in the future.

I've been nursing this patch for two months and think it's about rebased up to master.

@nikomatsakis this makes a bunch of your type checking code noticeably uglier.
auto merge of #11290 : alexcrichton/rust/testname, r=brson

Closes #11288
Closes #11222
Condition EH ABI on target_arch, not target_os.
More precise unwinder private data size specification.
auto merge of #11307 : vadimcn/rust/test-adb, r=brson

Fix android device detection when connected to a remote emulator (in this case device name contains ':').
Use $(CFG_ADB) for all adb invocations.
auto merge of #11310 : Dretch/rust/write_char, r=alexcrichton
auto merge of #11314 : adridu59/rust/patch-license, r=brson

- don't check for an hardcoded copyright claim year, check the 2 surrounding strings instead
- logic: if either the `//` or `#`-style copyright patterns are found, don't invalidate
- cleanup hardcoded content and streamline the few files with different line breaks

r? @brson
Stop padding metadata

This is causing maybe_get_doc to fail when called at the top level of
the metadata and doesn't appear to be needed anymore.