librustc: Remove all uses of `static` from functions. rs=destatic