diff options
| author | bors <bors@rust-lang.org> | 2015-03-04 14:47:51 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-03-04 14:47:51 +0000 | 
| commit | 3b3bb0e682c2d252e9f62dd9df5cff9552af91ad (patch) | |
| tree | 32f1cf1ffe136e20b558935271eab570a36c25fc /src/libsyntax/parse/parser.rs | |
| parent | bdf6e4fcf5ed8b8fe3c281040414e4f6a6afb8d6 (diff) | |
| parent | 2f8865556bd6cae123b3db4ceaa0c7977dacea8d (diff) | |
| download | rust-3b3bb0e682c2d252e9f62dd9df5cff9552af91ad.tar.gz rust-3b3bb0e682c2d252e9f62dd9df5cff9552af91ad.zip | |
Auto merge of #22235 - michaelwoerister:cross-crate-spans, r=michaelwoerister
This allows to create proper debuginfo line information for items inlined from other crates (e.g. instantiations of generics). Only the codemap's 'metadata' is stored in a crate's metadata. That is, just filename, positions of line-beginnings, etc. but not the actual source code itself.
Crate metadata size is increased by this change because spans in the encoded ASTs take up space now:
```
                BEFORE    AFTER
libcore         36 MiB    39.6 MiB    +10%
libsyntax       51.1 MiB  60.5 MiB    +18.4%
libcollections  11.2 MiB  12.8 MiB    +14.3%
```
This only affects binaries containing metadata (rlibs and dylibs), executables should not be affected in size. 
Fixes #19228 and probably #22226.
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
0 files changed, 0 insertions, 0 deletions
