Skip to content

Commit 6c88e90

Browse files
Move span_map file to the right folder
1 parent 9eb3be2 commit 6c88e90

5 files changed

Lines changed: 5 additions & 6 deletions

File tree

src/librustdoc/html/highlight.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ use crate::display::Joined as _;
2323
use crate::html::escape::EscapeBodyText;
2424
use crate::html::format::HrefInfo;
2525
use crate::html::macro_expansion::ExpandedCode;
26-
use crate::html::render::span_map::{DUMMY_SP, Span};
27-
use crate::html::render::{Context, LinkFromSrc};
26+
use crate::html::render::Context;
27+
use crate::html::span_map::{DUMMY_SP, LinkFromSrc, Span};
2828

2929
/// This type is needed in case we want to render links on items to allow to go to their definition.
3030
pub(crate) struct HrefContext<'a, 'tcx> {

src/librustdoc/html/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ pub(crate) mod macro_expansion;
88
pub mod markdown;
99
pub(crate) mod render;
1010
pub(crate) mod sources;
11+
pub(crate) mod span_map;
1112
pub(crate) mod static_files;
1213
pub(crate) mod toc;
1314
mod url_parts_builder;

src/librustdoc/html/render/context.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ use tracing::info;
2020

2121
use super::print_item::{full_path, print_item, print_item_path, print_ty_path};
2222
use super::sidebar::{ModuleLike, Sidebar, print_sidebar, sidebar_module_like};
23-
use super::{AllTypes, LinkFromSrc, StylePath, collect_spans_and_sources, scrape_examples_help};
23+
use super::{AllTypes, StylePath, scrape_examples_help};
2424
use crate::clean::types::ExternalLocation;
2525
use crate::clean::utils::has_doc_flag;
2626
use crate::clean::{self, ExternalCrate};
@@ -33,8 +33,8 @@ use crate::formats::item_type::ItemType;
3333
use crate::html::escape::Escape;
3434
use crate::html::macro_expansion::ExpandedCode;
3535
use crate::html::markdown::{self, ErrorCodes, IdMap, plain_text_summary};
36-
use crate::html::render::span_map::Span;
3736
use crate::html::render::write_shared::write_shared;
37+
use crate::html::span_map::{LinkFromSrc, Span, collect_spans_and_sources};
3838
use crate::html::url_parts_builder::UrlPartsBuilder;
3939
use crate::html::{layout, sources, static_files};
4040
use crate::scrape_examples::AllCallLocations;

src/librustdoc/html/render/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ mod ordered_json;
3636
mod print_item;
3737
pub(crate) mod sidebar;
3838
mod sorted_template;
39-
pub(crate) mod span_map;
4039
mod type_layout;
4140
mod write_shared;
4241

@@ -64,7 +63,6 @@ use rustc_span::symbol::{Symbol, sym};
6463
use tracing::{debug, info};
6564

6665
pub(crate) use self::context::*;
67-
pub(crate) use self::span_map::{LinkFromSrc, collect_spans_and_sources};
6866
pub(crate) use self::write_shared::*;
6967
use crate::clean::{self, Defaultness, Item, ItemId, RenderedLink};
7068
use crate::display::{Joined as _, MaybeDisplay as _};

0 commit comments

Comments
 (0)