Add syntax highlighting support for GtkSourceView / GEdit
librustc: Mark all type implementations public. rs=impl-publicity
librustc: Make methods private if the impl is private
librustc: Enforce cross-crate method privacy
auto merge of #5156 : pcwalton/rust/method-privacy, r=pcwalton

r? @brson
auto merge of #5166 : danniel/rust/incoming, r=brson

I copied and adapted the syntax highlighting rules from Kate, to be used in GEdit and other GtkSourceView based editors.
Fix leaking non-public 'use' statements with glob imports
Fix leaking immediate children and types via glob imports
Fix implicit leaks of imports throughout libraries

Also touch up use of 'pub' and move some tests around so the tested functions
don't have to be 'pub'
auto merge of #5113 : alexcrichton/rust/issue-4366, r=catamorphism

The first two commits are the actual fix going into place, and the last is just dealing with the fallout in the rest of the compiler.

The test added in the first two commits had 0 failures before this patch, and if the glob imports were changed to explicit imports then the errors showed up. Due to this behavior, I figured that the desired behavior was for glob imports to not accidentally leak a lot of non-public imports/functions/types into other modules.

There was quite a lot of fallout, and it all passes `make check` locally, but I doubt that it will pass on all platforms because there's probably some guarded off thing I missed.

I plan on making another patch soon which changes the default level of `unused_imports` to `warn` which will hopefully reduce a lot of the `use` noise throughout. In conjunction with #5104, and a few minor fixes, I think that the default level of `warn` is actually really usable.
Add manual &self/ and &static/ and /&self declarations that
are currently inferred.  New rules are coming that will require
them to be explicit.  All add some explicit self declarations.
Permit either foo/&self or foo<'self>
Update region inference for traits so that a method with
explicit self doesn't incorrectly cause the entire trait to
be tagged as being region-parameterized.
convert FnCtxt methods from @mut self to &self
Convert region parameterization to change defaults and handle
methods correctly
Improve error messages when illegal lifetimes are used
Patch up auto_encode test to avoid unnecessary boxed objects