We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c27948d commit 3a7918aCopy full SHA for 3a7918a
src/librustdoc/html/highlight.rs
@@ -7,20 +7,18 @@
7
8
use crate::clean::PrimitiveType;
9
use crate::html::escape::Escape;
10
-use crate::html::render::Context;
+use crate::html::render::{Context, LinkFromSrc};
11
12
use std::collections::VecDeque;
13
use std::fmt::{Display, Write};
14
15
use rustc_data_structures::fx::FxHashMap;
16
-use rustc_lexer::Cursor;
17
-use rustc_lexer::{LiteralKind, TokenKind};
+use rustc_lexer::{Cursor, LiteralKind, TokenKind};
18
use rustc_span::edition::Edition;
19
use rustc_span::symbol::Symbol;
20
use rustc_span::{BytePos, Span, DUMMY_SP};
21
22
use super::format::{self, Buffer};
23
-use super::render::LinkFromSrc;
24
25
/// This type is needed in case we want to render links on items to allow to go to their definition.
26
pub(crate) struct HrefContext<'a, 'b, 'c> {
0 commit comments