about summary refs log tree commit diff
path: root/src/test/parse-fail/circular_modules_main.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-03-04 14:47:51 +0000
committerbors <bors@rust-lang.org>2015-03-04 14:47:51 +0000
commit3b3bb0e682c2d252e9f62dd9df5cff9552af91ad (patch)
tree32f1cf1ffe136e20b558935271eab570a36c25fc /src/test/parse-fail/circular_modules_main.rs
parentbdf6e4fcf5ed8b8fe3c281040414e4f6a6afb8d6 (diff)
parent2f8865556bd6cae123b3db4ceaa0c7977dacea8d (diff)
downloadrust-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/test/parse-fail/circular_modules_main.rs')
0 files changed, 0 insertions, 0 deletions