diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2017-11-24 14:00:33 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2017-12-01 13:48:19 +0100 |
| commit | 45439945c9cb1122c882cefbe0e38c3bb6f20514 (patch) | |
| tree | 32f823eec65f8b4de4f12e49eafbd41c55f51e4b /src/libsyntax | |
| parent | 409e39285d2189eb8bb656a93074473f9f186cc5 (diff) | |
| download | rust-45439945c9cb1122c882cefbe0e38c3bb6f20514.tar.gz rust-45439945c9cb1122c882cefbe0e38c3bb6f20514.zip | |
incr.comp.: Store Spans as (file,line,col,length) in incr.comp. cache.
The previous method ran into problems because ICH would treat Spans as (file,line,col) but the cache contained byte offsets and its possible for the latter to change while the former stayed stable.
Diffstat (limited to 'src/libsyntax')
| -rw-r--r-- | src/libsyntax/codemap.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/codemap.rs b/src/libsyntax/codemap.rs index 3464db2a811..3aac5334a38 100644 --- a/src/libsyntax/codemap.rs +++ b/src/libsyntax/codemap.rs @@ -105,7 +105,7 @@ impl FileLoader for RealFileLoader { // This is a FileMap identifier that is used to correlate FileMaps between // subsequent compilation sessions (which is something we need to do during // incremental compilation). -#[derive(Copy, Clone, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable)] +#[derive(Copy, Clone, PartialEq, Eq, Hash, RustcEncodable, RustcDecodable, Debug)] pub struct StableFilemapId(u128); impl StableFilemapId { |
