-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rustdoc: use unicode-aware checks for redundant explicit link fastpath #115070
rustdoc: use unicode-aware checks for redundant explicit link fastpath #115070
Conversation
r? @jsha (rustbot has picked a reviewer for you, use r? to override) |
@@ -98,13 +98,8 @@ fn check_redundant_explicit_link<'md>( | |||
|
|||
let explicit_link = dest.to_string(); | |||
let display_link = link_data.resolvable_link.clone()?; | |||
let explicit_len = explicit_link.len(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same logic in collect_infra_links.rs should be replaced with new logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good call. I've figured out how to trigger that code, fixed it, and added a test case:
/// […………………………][Broken3]
pub struct Broken4 {}
/// [Broken3][…………………………]
pub struct Broken5 {}
223a492
to
0164c06
Compare
This comment has been minimized.
This comment has been minimized.
0164c06
to
3df9b4d
Compare
This should also fix #115062, right? |
Yes, it will. |
Nice thanks! @bors r=GuillaumeGomez,ChAoSUnItY |
☀️ Test successful - checks-actions |
Finished benchmarking commit (c6f5495): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 634.642s -> 635.573s (0.15%) |
Nominated for beta by @notriddle and @GuillaumeGomez |
Beta backport approved @rustbot label +beta-accepted |
[beta] backports - Contents of reachable statics is reachable rust-lang#115114 - Revert "Suggest using `Arc` on `!Send`/`!Sync` types" rust-lang#115311 - Stop emitting non-power-of-two vectors in (non-portable-SIMD) codegen rust-lang#115236 - Do not forget to pass DWARF fragment information to LLVM. rust-lang#115139 - rustdoc: use unicode-aware checks for redundant explicit link fastpath rust-lang#115070 r? cuviper
Fixes #115064
Fixes #115062
Fixes #115116