Add help for intra-link lint

This commit is contained in:
Guillaume Gomez 2018-06-09 17:30:22 +02:00
parent 8c43c93e6d
commit 2e343f384f
3 changed files with 25 additions and 3 deletions

View file

@ -1311,10 +1311,12 @@ fn resolution_failure(
diag
} else {
cx.tcx.struct_span_lint_node(lint::builtin::INTRA_LINK_RESOLUTION_FAILURE,
NodeId::new(0),
sp,
&msg)
NodeId::new(0),
sp,
&msg)
};
diag.help("to escape `[` and `]` characters, either put them into \"`[]`\" or \
use HTML values `[` and `]`");
diag.emit();
}