-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.
Description
Location
- https://docs.rs/rustdoc-types/0.39.0/rustdoc_types/struct.Span.html#structfield.begin
- https://docs.rs/rustdoc-types/0.39.0/rustdoc_types/struct.Span.html#structfield.end
Summary
echo "pub mod bbb {}" > aaa.rs;
RUSTC_BOOTSTRAP=1 rustdoc aaa.rs -Zunstable-options -wjson -o- |
jq '.index | map(select(.name == "bbb"))[0].span';
rm aaa.rs
outputs
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsA-rustdoc-jsonArea: Rustdoc JSON backendArea: Rustdoc JSON backendT-rustdocRelevant to the rustdoc team, which will review and decide on the PR/issue.Relevant to the rustdoc team, which will review and decide on the PR/issue.