Add 'ty_error_with_guaranteed' and 'const_error_with_guaranteed' Part of #103874
For more information about how rustc works, see the rustc dev guide.