We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19c5376 commit 898d2c1Copy full SHA for 898d2c1
compiler/rustc_middle/src/ty/error.rs
@@ -151,12 +151,8 @@ impl<'tcx> TypeError<'tcx> {
151
.into(),
152
RegionsPlaceholderMismatch => "one type is more general than the other".into(),
153
ArgumentSorts(values, _) | Sorts(values) => {
154
- let mut expected = values.expected.sort_string(tcx);
155
- let mut found = values.found.sort_string(tcx);
156
- if expected == found {
157
- expected = values.expected.sort_string(tcx);
158
- found = values.found.sort_string(tcx);
159
- }
+ let expected = values.expected.sort_string(tcx);
+ let found = values.found.sort_string(tcx);
160
report_maybe_different(&expected, &found).into()
161
}
162
Traits(values) => {
0 commit comments