Still print help even if there's no span
This commit is contained in:
parent
2dad90d8b5
commit
f05e9da493
@ -787,6 +787,8 @@ impl<'a, 'tcx> DocFolder for LinkCollector<'a, 'tcx> {
|
||||
diag.note(¬e);
|
||||
if let Some(sp) = sp {
|
||||
diag.span_suggestion(sp, &help_msg, suggestion, Applicability::MaybeIncorrect);
|
||||
} else {
|
||||
diag.help(&format!("{}: {}", help_msg, suggestion));
|
||||
}
|
||||
});
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user