Still print help even if there's no span
This commit is contained in:
parent
2dad90d8b5
commit
f05e9da493
1 changed files with 2 additions and 0 deletions
|
@ -787,6 +787,8 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
|
||||||
diag.note(¬e);
|
diag.note(¬e);
|
||||||
if let Some(sp) = sp {
|
if let Some(sp) = sp {
|
||||||
diag.span_suggestion(sp, &help_msg, suggestion, Applicability::MaybeIncorrect);
|
diag.span_suggestion(sp, &help_msg, suggestion, Applicability::MaybeIncorrect);
|
||||||
|
} else {
|
||||||
|
diag.help(&format!("{}: {}", help_msg, suggestion));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue