Get spans for a couple more region types, add some optimizations, and extend test
This commit is contained in:
parent
00e314d5ed
commit
cececca7c7
4 changed files with 126 additions and 37 deletions
|
@ -61,7 +61,7 @@ impl<'tcx> NiceRegionError<'_, 'tcx> {
|
|||
);
|
||||
}
|
||||
(Some(sub_span), Some(sup_span), _, _) => {
|
||||
err.span_note(sub_span, format!("the lifetime defined here, ..."));
|
||||
err.span_note(sub_span, format!("the lifetime defined here..."));
|
||||
err.span_note(
|
||||
sup_span,
|
||||
format!("...must outlive the lifetime defined here"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue