diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-12-31 20:15:40 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2020-01-01 09:15:18 +0300 |
| commit | 70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae (patch) | |
| tree | ed077cbfc27cfa99565965681f03138285b1cb00 /src/librustdoc/html | |
| parent | 38aa6bdfd705ea0604d7d5dd9fabc5e8f853a4fc (diff) | |
| download | rust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.tar.gz rust-70f1d57048d2c73c8c018d0d65ceb0e2ca5d9dae.zip | |
Rename `syntax_pos` to `rustc_span` in source code
Diffstat (limited to 'src/librustdoc/html')
| -rw-r--r-- | src/librustdoc/html/highlight.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/item_type.rs | 2 | ||||
| -rw-r--r-- | src/librustdoc/html/render.rs | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/src/librustdoc/html/highlight.rs b/src/librustdoc/html/highlight.rs index a2261edffff..d8786a5e10e 100644 --- a/src/librustdoc/html/highlight.rs +++ b/src/librustdoc/html/highlight.rs @@ -12,11 +12,11 @@ use std::io; use std::io::prelude::*; use rustc_parse::lexer; +use rustc_span::{FileName, Span}; use syntax::sess::ParseSess; use syntax::source_map::SourceMap; use syntax::symbol::{kw, sym}; use syntax::token::{self, Token}; -use syntax_pos::{FileName, Span}; /// Highlights `src`, returning the HTML output. pub fn render_with_highlighting( diff --git a/src/librustdoc/html/item_type.rs b/src/librustdoc/html/item_type.rs index 19cf7180eee..4a0f4e5a4c9 100644 --- a/src/librustdoc/html/item_type.rs +++ b/src/librustdoc/html/item_type.rs @@ -4,7 +4,7 @@ use std::fmt; use serde::{Serialize, Serializer}; -use syntax_pos::hygiene::MacroKind; +use rustc_span::hygiene::MacroKind; use crate::clean; diff --git a/src/librustdoc/html/render.rs b/src/librustdoc/html/render.rs index b578e69e60b..2c41e91b01b 100644 --- a/src/librustdoc/html/render.rs +++ b/src/librustdoc/html/render.rs @@ -50,6 +50,7 @@ use rustc::middle::stability; use rustc::util::nodemap::{FxHashMap, FxHashSet}; use rustc_data_structures::flock; use rustc_feature::UnstableFeatures; +use rustc_span::hygiene::MacroKind; use serde::ser::SerializeSeq; use serde::{Serialize, Serializer}; use syntax::ast; @@ -57,7 +58,6 @@ use syntax::edition::Edition; use syntax::print::pprust; use syntax::source_map::FileName; use syntax::symbol::{sym, Symbol}; -use syntax_pos::hygiene::MacroKind; use crate::clean::{self, AttributesExt, Deprecation, GetDefId, SelfTy}; use crate::config::RenderOptions; |
