Add help for intra-link lint
This commit is contained in:
parent
8c43c93e6d
commit
2e343f384f
3 changed files with 25 additions and 3 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue