-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Add a documentation remapping path scope for rustdoc usage
#151589
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 comment has been minimized.
This comment has been minimized.
67a2f37 to
dd84a4f
Compare
|
There are two questions this unstable scope brings is it's relationship with the stable scopes:
It should be noted that those two questions are mostly theoretical ( cc @davidtwco |
|
It should be noted that |
Reflecting back on this question, I think it needs to be included, as we say that We also document clearly document that new scopes may be added in the future, so people shouldn't expect
As for this question, I don't think it should, but we can also leave as it unresolved, it won't change a thing for users doing |
|
Nice, thanks! @bors r+ rollup |
…aumeGomez Add a `documentation` remapping path scope for rustdoc usage This PR adds a new remapping path scope for rustdoc usage: `documentation`, instead of rustdoc abusing the other scopes for it's usage. Like remapping paths in rustdoc, this scope is unstable. (rustdoc doesn't even have yet an equivalent to [rustc `--remap-path-scope`](https://doc.rust-lang.org/nightly/rustc/remap-source-paths.html#--remap-path-scope)). I also took the opportunity to add a bit of documentation in rustdoc book.
Rollup of 6 pull requests Successful merges: - #151611 (Improve is_ascii performance on x86_64 with explicit SSE2 intrinsics) - #150705 (Add missing mut to pin.rs docs) - #151294 (compiletest: add implied `needs-target-std` for `codegen` mode tests unless annotated with `#![no_std]`/`#![no_core]`) - #151589 (Add a `documentation` remapping path scope for rustdoc usage) - #151639 (Fix broken WASIp1 reference link) - #151645 (Update `sysinfo` version to `0.38.0`)
Rollup merge of #151589 - Urgau:documentation-scope, r=GuillaumeGomez Add a `documentation` remapping path scope for rustdoc usage This PR adds a new remapping path scope for rustdoc usage: `documentation`, instead of rustdoc abusing the other scopes for it's usage. Like remapping paths in rustdoc, this scope is unstable. (rustdoc doesn't even have yet an equivalent to [rustc `--remap-path-scope`](https://doc.rust-lang.org/nightly/rustc/remap-source-paths.html#--remap-path-scope)). I also took the opportunity to add a bit of documentation in rustdoc book.
Rollup of 6 pull requests Successful merges: - rust-lang/rust#151611 (Improve is_ascii performance on x86_64 with explicit SSE2 intrinsics) - rust-lang/rust#150705 (Add missing mut to pin.rs docs) - rust-lang/rust#151294 (compiletest: add implied `needs-target-std` for `codegen` mode tests unless annotated with `#![no_std]`/`#![no_core]`) - rust-lang/rust#151589 (Add a `documentation` remapping path scope for rustdoc usage) - rust-lang/rust#151639 (Fix broken WASIp1 reference link) - rust-lang/rust#151645 (Update `sysinfo` version to `0.38.0`)
This PR adds a new remapping path scope for rustdoc usage:
documentation, instead of rustdoc abusing the other scopes for it's usage.Like remapping paths in rustdoc, this scope is unstable. (rustdoc doesn't even have yet an equivalent to rustc
--remap-path-scope).I also took the opportunity to add a bit of documentation in rustdoc book.
r? @GuillaumeGomez