librustc: Forbid access to cross-crate private static methods
auto merge of #5457 : pcwalton/rust/xcpsm, r=pcwalton

r? @catamorphism