rustc::middle::trans::reachable: remove some unneeded code

This was a remnant from the export list era.
tests: make lots of main functions public
auto merge of #6945 : Blei/rust/remove-export-all, r=pcwalton

This was a remnant from the export list era.