librustc: Respect no_mangle attribute on statics.
librustc: Unify name mangling for functions and statics.
auto merge of #8070 : luqmana/rust/nom, r=alexcrichton

Fixes #5972.