rustdoc: use unicode-aware checks for redundant explicit link fastpath

Fixes #115064
This commit is contained in:
Michael Howell 2023-08-21 12:05:45 -07:00
parent fe5f591257
commit 3df9b4d65d
3 changed files with 22 additions and 14 deletions

View 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;