Add lint for unused lifetimes

A step towards  #12805.
I didn't dare to touch these lifetimes since they are lang items. Are they needed?