Skip to content

Commit

Permalink
Rollup merge of #102818 - rust-lang:clean-up-highlight-impots, r=Urgau
Browse files Browse the repository at this point in the history
Clean up rustdoc highlight.rs imports a bit

r? `@Dylan-DPC`
  • Loading branch information
notriddle committed Oct 9, 2022
2 parents c58886d + 3a7918a commit 16a1eea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/librustdoc/html/highlight.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,18 @@

use crate::clean::PrimitiveType;
use crate::html::escape::Escape;
use crate::html::render::Context;
use crate::html::render::{Context, LinkFromSrc};

use std::collections::VecDeque;
use std::fmt::{Display, Write};

use rustc_data_structures::fx::FxHashMap;
use rustc_lexer::Cursor;
use rustc_lexer::{LiteralKind, TokenKind};
use rustc_lexer::{Cursor, LiteralKind, TokenKind};
use rustc_span::edition::Edition;
use rustc_span::symbol::Symbol;
use rustc_span::{BytePos, Span, DUMMY_SP};

use super::format::{self, Buffer};
use super::render::LinkFromSrc;

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

0 comments on commit 16a1eea

Please sign in to comment.