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.
rt: Comment out an assert in rust_kernel. #4711
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'
core: Remove unwrap_shared_mutable_state. #4436
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.
core: Address XXX, make static constants for strings used when stringifying floats
auto merge of #5176 : brson/rust/unwrap_shared_mutable_state, r=nikomatsakis

r?

This fixes the current [random failures](http://buildbot.rust-lang.org/builders/auto-linux/builds/291/steps/test/logs/stdio) on the bots and closes #4436 by removing `unwrap_shared_mutable_state` and the code that depends on it. The result is that ARC-like things will not be unwrappable. This feature is complex and is not used outside of test cases.

Note that there is not consensus to remove it.

(second commit)
Remove legacy object creation mode, and convert remaining uses of it
Register snapshots
auto merge of #5177 : catamorphism/rust/register-snapshots, r=catamorphism

Note that this throws FreeBSD under the bus. Hopefully we'll pull it back out again soon.
Remove code that was awaiting a snapshot

* Disallow structural records everywhere
* Remove all #[cfg(stage0)] stuff
* Remove the last deprecated modes in libcore
* Un-xfail a test
auto merge of #5147 : nikomatsakis/rust/remove-legacy-trait-table, r=nikomatsakis

r? @pcwalton
testsuite: Re-xfail record-trailing-comma

It was xfailed before the other commits in this pull request,
so no big deal. I'll look into it later.
auto merge of #5180 : catamorphism/rust/post-snapshot, r=catamorphism

* Disallow structural records everywhere
* Remove all #[cfg(stage0)] stuff
* Remove the last deprecated modes in libcore
* Un-xfail a test
auto merge of #5162 : brson/rust/fixmes, r=brson
mk: mingw32 flags added
Merge remote-tracking branch 'remotes/origin/incoming' into incoming
Merge remote branch 'sevrak/issue-5164' into incoming