-
Notifications
You must be signed in to change notification settings - Fork 13.3k
rustdoc: use better highlighting for *const, *mut, and &mut #90278
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
Conversation
This generates more consistent HTML for these RefKeyWord combinations. Before:  After: 
(rust-highfive has picked a reviewer for you, use r? to override) |
Hmm, I wonder if there's a way to do this consistently for all keywords instead of special casing const/mut and pointers. Could rustdoc maybe combine all adjacent keywords into the same span? That would shrink the HTML for things like |
The |
Oh, I didn't notice the color difference. This seems fine then. |
Thanks! @bors: r=jyn541,GuillaumeGomez |
📌 Commit 3a79370 has been approved by |
⌛ Testing commit 3a79370 with merge f57ee2905238da57edf2c5aea2e7e5115ac4a78d... |
💔 Test failed - checks-actions |
The job Click to see the possible cause of the failure (guessed by this bot)
|
This is a spurrious error, right? I found a similar error on another PR, and it merged after a retry. |
@bors retry |
…askrgr Rollup of 3 pull requests Successful merges: - rust-lang#90154 (rustdoc: Remove `GetDefId`) - rust-lang#90232 (rustdoc: Use TTF based font instead of OTF for CJK glyphs to improve readability) - rust-lang#90278 (rustdoc: use better highlighting for *const, *mut, and &mut) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
This generates more consistent HTML for these RefKeyWord combinations.
Before:
After: