Some struct visibility fixes
auto merge of #9506 : sfackler/rust/visibility, r=alexcrichton