Remove rtdebug_! and make rtdebug! work properly.

It now actually does logging, and is compiled out when `--cfg rtdebug` is not
given to the libstd build, which it isn't by default. This makes the rt
benchmarks 18-50% faster.
Remove in-tree test binary.

I presume this was accidentally committed.
Allow disabling optimizations in tests only
Cleanup librustpkg a little bit.

Mostly I did simple transformations from imperative style loops to
more functional iterator based transformations.
Don't use unkillable in UnsafeArc dtor when there's no unwrapper. Close #8382.
Reorganise Select traits to not expose internal runtime types. Close #5160. Pending #8215.
Make cell with_ref/with_mut_ref use finally. Close #7975.
Fix select() in light of the deschedule...and then race. Close #8347.
Clean up transitionary glue in task/spawn.rs. Don't hold kill-little-lock for O(n) time, cf #3100, and optimize out several unneeded clone()s.
rt::task: Make current_stack_segment public

Servo needs to tell SpiderMonkey about the stack bounds.
register snapshots
fix build with the new snapshot compiler
rustc: Give a hint when a static method call has fewer than expected type parameters

In this case, it's likely to be that the user forgot the `self` type, so
say so.

Closes #4096
auto merge of #8419 : cmr/rust/fix-rtdebug, r=brson

It now actually does logging, and is compiled out when `--cfg rtdebug` is not
given to the libstd build, which it isn't by default. This makes the rt
benchmarks 18-50% faster.
auto merge of #8450 : alexcrichton/rust/nopt-changes, r=graydon

Since the new runtime landed, the *-nopt builders have increased cycle time by roughly an hour. I have a feeling that this is because the entire runtime is in rust and it's not being optimized at all. In that past with an optimized C++ runtime it looks like things ran faster.

This adds the ability to disable optimizations in tests only, not for the entire compiler. This means that the entire compiler and associated libraries will be built with optimizations, but the tests themselves would be built and run without optimizations.

This isn't quite as good of a guarantee as disabling optimizations everywhere, but hopefully it'll improve cycle time for the *-nopt builds to move the queue along faster.
auto merge of #8476 : thestinger/rust/snapshot, r=brson
std: Re-optimize tls access on local allocation path

I did this once but acciddentally undid it in a later patch.
Implement formatting arguments for strings and integers

Closes #1651
Define integer formats for all widths

Closes #1653
Correct the padding on integer types for formatting