Move the function to time passes to util
Time type checking passes separately
Switch CoherenceInfo from oldmap
Switch impls_seen from oldmap
auto merge of #5470 : sanxiyn/rust/remove-oldmap-2, r=sanxiyn

Referencing #4986.