diff options
| author | Arlo Siemsen <arsiem@microsoft.com> | 2020-04-05 01:43:44 -0700 |
|---|---|---|
| committer | Arlo Siemsen <arsiem@microsoft.com> | 2020-04-05 01:43:44 -0700 |
| commit | 4cdceda5a355ab5c4732b425b4449d9707084fdc (patch) | |
| tree | e47937f3da985524e165de159cfc38968a13ae4f /src/librustdoc/html/render.rs | |
| parent | 853c4774e26ea97b45fe74de9a6f68e526784323 (diff) | |
| download | rust-4cdceda5a355ab5c4732b425b4449d9707084fdc.tar.gz rust-4cdceda5a355ab5c4732b425b4449d9707084fdc.zip | |
Fix performance regression in debuginfo file_metadata.
Finding the `SourceFile` associated with a `FileName` called `get_source_file` on the `SourceMap`, which does a linear search through all files in the `SourceMap`. This resolves the issue by passing the SourceFile in from the caller (which already had it available).
Diffstat (limited to 'src/librustdoc/html/render.rs')
0 files changed, 0 insertions, 0 deletions
