Skip to content

Commit 23b2883

Browse files
committed
give precedence to try_report_named_anon_conflict method
1 parent a01aa95 commit 23b2883

File tree

1 file changed

+2
-2
lines changed
  • src/librustc/infer/error_reporting/nice_region_error

1 file changed

+2
-2
lines changed

src/librustc/infer/error_reporting/nice_region_error/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ impl<'cx, 'gcx, 'tcx> NiceRegionError<'cx, 'gcx, 'tcx> {
5757
}
5858

5959
pub fn try_report(&self) -> Option<ErrorReported> {
60-
self.try_report_anon_anon_conflict()
61-
.or_else(|| self.try_report_named_anon_conflict())
60+
self.try_report_named_anon_conflict()
61+
.or_else(|| self.try_report_anon_anon_conflict())
6262
}
6363
}

0 commit comments

Comments
 (0)