Rollup merge of #152317 - cuiweixie:sup_trace, r=jackh726

fix: sup_trace to sub_trace

This looks like a copy-past here from the line above.
This commit is contained in:
Jonathan Brouwer 2026-02-09 23:37:46 +01:00 committed by GitHub
commit 3199309f05
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1020,7 +1020,7 @@ impl<'a, 'tcx> TypeErrCtxt<'a, 'tcx> {
&& let Some((sup_expected, sup_found)) =
self.values_str(sup_trace.values, &sup_trace.cause, err.long_ty_path())
&& let Some((sub_expected, sub_found)) =
self.values_str(sub_trace.values, &sup_trace.cause, err.long_ty_path())
self.values_str(sub_trace.values, &sub_trace.cause, err.long_ty_path())
&& sub_expected == sup_expected
&& sub_found == sup_found
{