automated whitespace fixes
xfail run-pass/auto-encode.rs
auto merge of #7116 : thestinger/rust/whitespace, r=luqmana
Add caches for method and impl metadata

The lookups for these items in external crates currently cause repeated
decoding of the EBML metadata, which is pretty slow. Adding caches to
avoid the repeated decoding reduces the time required for the type
checking of librustc by about 25%.
auto merge of #7144 : dotdash/rust/caches, r=graydon

The lookups for these items in external crates currently cause repeated
decoding of the EBML metadata, which is pretty slow. Adding caches to
avoid the repeated decoding reduces the time required for the type
checking of librustc by about 25%.
Move trans mod items into trans/mod.rs
Move CrateContext into it's own file
Make CrateContext::new() fn.

Move construction of a CrateContext into a static method on
CrateContext.
Remove @-fields from CrateContext

Remove all the explicit @mut-fields from CrateContext, though many
fields are still @-ptrs.
This required changing every single function call that explicitly
took a @CrateContext, so I took advantage and changed as many as I
could get away with to &-ptrs or &mut ptrs.
Fix Merge Fallout
Methodize TypeNames
Change calls for TypeName stuff to methods
Remove instruction counting.

This was somewhat under-used, and the information it produced wasn't
even particularly useful. It was also a major stumbling block in
trying to refactor CrateContext to avoid using @mut.

A replacement system can be implemented later.
Make log_fn_time a method