librustc: Remove all uses of `static` from functions. rs=destatic
auto merge of #5485 : pcwalton/rust/destatic, r=pcwalton