Skip to content

rustdoc creates highlighted source in a directory that contains the absolute path to the source #11524

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

Closed
SiegeLord opened this issue Jan 14, 2014 · 1 comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@SiegeLord
Copy link
Contributor

E.g. if the crate root is located at /home/user/lib.rs then doing rustdoc lib.rs will put the highlighted source at doc/lib/home/user/lib.rs.html. This wasn't always the case (I estimate a few weeks ago it used relative paths). This is a problem as this can reveal more information than the user may wish to share with the rest of the world.

@alexcrichton
Copy link
Member

Fixed by 8be1e34

flip1995 pushed a commit to flip1995/rust that referenced this issue Dec 26, 2024
…3836)

fix rust-lang#11524

In a `no_std` environment, we can use `core::cmp::Reverse` instead of
`std::cmp::Reverse`.

----

changelog: [`unnecessary_sort_by`]: correct suggestion in `no_std`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants