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

This was a remnant from the export list era.
tests: make lots of main functions public