Visibility fixes
auto merge of #9559 : sfackler/rust/more-visibility, r=alexcrichton