diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-08-02 17:44:04 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2021-08-05 23:08:29 +0200 |
| commit | dfe4fec783c657ccbcba183fe2cadbc7c1db8525 (patch) | |
| tree | c6a50c9dac6895072387e5029000f447bdcd924f /src/librustdoc/html/render/context.rs | |
| parent | 5cf300d695c4ac6e4bdab8fe5c48de6b05b2cd96 (diff) | |
| download | rust-dfe4fec783c657ccbcba183fe2cadbc7c1db8525.tar.gz rust-dfe4fec783c657ccbcba183fe2cadbc7c1db8525.zip | |
Remove LightSpan and use Span directly
Diffstat (limited to 'src/librustdoc/html/render/context.rs')
| -rw-r--r-- | src/librustdoc/html/render/context.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/render/context.rs b/src/librustdoc/html/render/context.rs index 36ec2cf3f7a..6ce0828e159 100644 --- a/src/librustdoc/html/render/context.rs +++ b/src/librustdoc/html/render/context.rs @@ -18,8 +18,8 @@ use super::cache::{build_index, ExternalLocation}; use super::print_item::{full_path, item_path, print_item}; use super::write_shared::write_shared; use super::{ - collect_spans_and_sources, print_sidebar, settings, AllTypes, LightSpan, LinkFromSrc, NameDoc, - StylePath, BASIC_KEYWORDS, + collect_spans_and_sources, print_sidebar, settings, AllTypes, LinkFromSrc, NameDoc, StylePath, + BASIC_KEYWORDS, }; use crate::clean; @@ -131,7 +131,7 @@ crate struct SharedContext<'tcx> { /// Correspondance map used to link types used in the source code pages to allow to click on /// links to jump to the type's definition. - crate span_correspondance_map: FxHashMap<LightSpan, LinkFromSrc>, + crate span_correspondance_map: FxHashMap<rustc_span::Span, LinkFromSrc>, } impl SharedContext<'_> { |
