Make visible types public in rustc
auto merge of #12662 : sfackler/rust/unexported-type, r=cmr