rustdoc: use unicode-aware checks for redundant explicit link fastpath
Fixes #115064
This commit is contained in:
parent
fe5f591257
commit
3df9b4d65d
3 changed files with 22 additions and 14 deletions
18
tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs
Normal file
18
tests/rustdoc-ui/lints/redundant_explicit_links-utf8.rs
Normal file
|
@ -0,0 +1,18 @@
|
|||
// check-pass
|
||||
|
||||
/// [`…foo`] [`…bar`] [`Err`]
|
||||
pub struct Broken {}
|
||||
|
||||
/// [`…`] [`…`] [`Err`]
|
||||
pub struct Broken2 {}
|
||||
|
||||
/// [`…`][…] [`…`][…] [`Err`]
|
||||
pub struct Broken3 {}
|
||||
|
||||
/// […………………………][Broken3]
|
||||
pub struct Broken4 {}
|
||||
|
||||
/// [Broken3][…………………………]
|
||||
pub struct Broken5 {}
|
||||
|
||||
pub struct Err;
|
Loading…
Add table
Add a link
Reference in a new issue