diff options
| author | bors <bors@rust-lang.org> | 2025-08-24 19:46:17 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-08-24 19:46:17 +0000 |
| commit | 809200ec956983fce4ae178b87dada69f01d0820 (patch) | |
| tree | ff7af177ca1d408d078cc571cb54249ce3a67025 /src/librustdoc/html/render/span_map.rs | |
| parent | 3776358beb5747d938bdefaf47a1c76723e6a372 (diff) | |
| parent | d0913c571cde92c4d0db6b1bac94ac320c0e9d2e (diff) | |
| download | rust-809200ec956983fce4ae178b87dada69f01d0820.tar.gz rust-809200ec956983fce4ae178b87dada69f01d0820.zip | |
Auto merge of #137229 - GuillaumeGomez:expand-macro, r=lolbinarycat
Add support for macro expansion in rustdoc source code pages This is what it looks like:   You can test it [here](https://rustdoc.crud.net/imperio/macro-expansion/src/lib/lib.rs.html). In this case, I also enabled the `--generate-link-to-definition` to show that both options work well together. Note: <del>There is a bug currently in firefox where the line numbers are not displayed correctly if they're inside the "macro expansion" span: https://bugzilla.mozilla.org/show_bug.cgi?id=1949948<del> Found a workaround around this bug. r? `@notriddle`
Diffstat (limited to 'src/librustdoc/html/render/span_map.rs')
| -rw-r--r-- | src/librustdoc/html/render/span_map.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/render/span_map.rs b/src/librustdoc/html/render/span_map.rs index 846d3ad310c..8bc2e0bd957 100644 --- a/src/librustdoc/html/render/span_map.rs +++ b/src/librustdoc/html/render/span_map.rs @@ -35,7 +35,7 @@ pub(crate) enum LinkFromSrc { /// 1. Generate a `span` correspondence map which links an item `span` to its definition `span`. /// 2. Collect the source code files. /// -/// It returns the `krate`, the source code files and the `span` correspondence map. +/// It returns the source code files and the `span` correspondence map. /// /// Note about the `span` correspondence map: the keys are actually `(lo, hi)` of `span`s. We don't /// need the `span` context later on, only their position, so instead of keeping a whole `Span`, we |
