Skip to content
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

The syntax highlighter used for the HTML source code display does not account for the "logical and" operator. #484

Closed
slightlyoutofphase opened this issue Nov 23, 2019 · 3 comments
Labels
A-builds Area: Building the documentation for a crate C-bug Category: This is a bug

Comments

@slightlyoutofphase
Copy link

slightlyoutofphase commented Nov 23, 2019

That is, &&. This is the case in both dark and light mode, it seems (it only ever highlights the first &.)

Some source from a crate of mine, with the bug visible:
https://docs.rs/staticvec/0.4.4/src/staticvec/lib.rs.html#384

@jyn514
Copy link
Member

jyn514 commented Dec 31, 2019

@slightlyoutofphase this page is generated by rustdoc, not by docs.rs. Do you have the same problem when running cargo doc locally? (and sorry for the very delayed response)

@jyn514 jyn514 added C-bug Category: This is a bug A-builds Area: Building the documentation for a crate and removed C-bug Category: This is a bug labels Jul 14, 2020
@matklad
Copy link
Member

matklad commented Aug 27, 2020

I believe this was fixed a while ago in rustc, looks correctly now: https://docs.rs/staticvec/0.10.2/src/staticvec/lib.rs.html#964. I think that version is just cached output of older rustc?

@jyn514
Copy link
Member

jyn514 commented Aug 27, 2020

Closing as duplicate of #464

@jyn514 jyn514 closed this as completed Aug 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-builds Area: Building the documentation for a crate C-bug Category: This is a bug
Projects
None yet
Development

No branches or pull requests

3 participants