1
Fork 0

Move CachingSourceMapView to libsyntax_pos.

This commit is contained in:
Camille GILLOT 2019-11-23 14:17:37 +01:00
parent ce301075c0
commit ea0c354758
3 changed files with 5 additions and 4 deletions

View file

@ -1,12 +1,11 @@
//! ICH - Incremental Compilation Hash
crate use rustc_data_structures::fingerprint::Fingerprint;
pub use self::caching_source_map_view::CachingSourceMapView;
pub use syntax_pos::CachingSourceMapView;
pub use self::hcx::{StableHashingContextProvider, StableHashingContext, NodeIdHashingMode,
hash_stable_trait_impls};
use syntax::symbol::{Symbol, sym};
mod caching_source_map_view;
mod hcx;
mod impls_hir;

View file

@ -1,6 +1,6 @@
use rustc_data_structures::sync::Lrc;
use syntax::source_map::SourceMap;
use syntax_pos::{BytePos, SourceFile};
use crate::source_map::SourceMap;
use crate::{BytePos, SourceFile};
#[derive(Clone)]
struct CacheEntry {

View file

@ -18,6 +18,8 @@ use rustc_serialize::{Encodable, Decodable, Encoder, Decoder};
use rustc_macros::HashStable_Generic;
pub mod source_map;
mod caching_source_map_view;
pub use self::caching_source_map_view::CachingSourceMapView;
pub mod edition;
use edition::Edition;