-
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
Prevent <>
links to be interpreted for intra-doc links
#96187
Prevent <>
links to be interpreted for intra-doc links
#96187
Conversation
I don't think it should have a noticeable impact on perf but better check it: @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 69bff8d9a6f729ec81d3e4284f17127d26e5655d with merge 60e35f84a244c676ef8161f5fc53872259f8dbb3... |
☀️ Try build successful - checks-actions |
Queued 60e35f84a244c676ef8161f5fc53872259f8dbb3 with parent 0516711, future comparison URL. |
Finished benchmarking commit (60e35f84a244c676ef8161f5fc53872259f8dbb3): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Footnotes |
I didn't expect a regression that big... |
4222a13
to
1040c58
Compare
Let's try with the condition in the @bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 1040c582189442b34dd910e3cf560844ae53c76f with merge fd6020410eb7165c95aa6aa41447d02ee8d48051... |
The regressions are not in rustdoc, looks like random fluctuations. |
☀️ Try build successful - checks-actions |
Queued fd6020410eb7165c95aa6aa41447d02ee8d48051 with parent 8305398, future comparison URL. |
Finished benchmarking commit (fd6020410eb7165c95aa6aa41447d02ee8d48051): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Footnotes |
No change. Well, let's go then... @bors r=notriddle |
📌 Commit 1040c582189442b34dd910e3cf560844ae53c76f has been approved by |
src/librustdoc/html/markdown.rs
Outdated
/// This function returns the list of links that could be potentially intra-doc links. | ||
/// | ||
/// To be noted, only `[]` links are included, `<>` links are always excluded. | ||
crate fn potential_intra_doc_markdown_links(md: &str) -> Vec<MarkdownLink> { |
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.
crate fn potential_intra_doc_markdown_links(md: &str) -> Vec<MarkdownLink> { | |
crate fn intra_doc_markdown_links(md: &str) -> Vec<MarkdownLink> { |
With #96135 preprocessing is done as a part of this function and all the returned links are indeed intra doc links.
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.
I'll keep the kind
pattern matching but I'll remove the other changes.
☔ The latest upstream changes (presumably #96135) made this pull request unmergeable. Please resolve the merge conflicts. |
1040c58
to
33aee10
Compare
This comment has been minimized.
This comment has been minimized.
33aee10
to
f988f86
Compare
@bors r=notriddle |
📌 Commit f988f86 has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (879aff3): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
As discussed in this thread. As mentioned, the intra-doc RFC states that
<>
links shouldn't be potential intra-doc links: https://rust-lang.github.io/rfcs/1946-intra-rustdoc-links.html#no-autolinks-style.I renamed
markdown_links
intopotential_intra_doc_markdown_links
to make it more obvious what it's doing.cc @petrochenkov
r? @notriddle