1
Fork 0

give precedence to try_report_named_anon_conflict method

This commit is contained in:
Niko Matsakis 2017-12-12 09:05:54 -05:00
parent de563082c8
commit 94e7072d0b

View file

@ -57,7 +57,7 @@ impl<'cx, 'gcx, 'tcx> NiceRegionError<'cx, 'gcx, 'tcx> {
}
pub fn try_report(&self) -> Option<ErrorReported> {
self.try_report_anon_anon_conflict()
.or_else(|| self.try_report_named_anon_conflict())
self.try_report_named_anon_conflict()
.or_else(|| self.try_report_anon_anon_conflict())
}
}