Do not ICE on ty::Error as an error must already have been reported fixes #83253
For more information about how rustc works, see the rustc dev guide.