rust/compiler/rustc_metadata/src
bors 468887ef91 Auto merge of #100209 - cjgillot:source-file-index, r=estebank
Lazily decode SourceFile from metadata

Currently, source files from foreign crates are decoded up-front from metadata.
Spans from those crates were matched with the corresponding source using binary search among those files.

This PR changes the strategy by matching spans to files during encoding. This allows to decode source files on-demand, instead of up-front. The on-disk format for spans becomes: `<tag> <position from start of file> <length> <file index> <crate (if foreign file)>`.
2022-08-19 15:31:25 +00:00
..
rmeta Auto merge of #100209 - cjgillot:source-file-index, r=estebank 2022-08-19 15:31:25 +00:00
creader.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
dependency_format.rs Rename debugging_opts to unstable_opts 2022-07-13 17:47:06 -05:00
foreign_modules.rs
fs.rs fall back on the blank path if out_filename is blank 2022-07-02 22:54:37 +09:00
lib.rs Adjust cfgs 2022-08-12 16:28:15 -04:00
locator.rs Fix typo/grammar in locator.rs doc comment 2022-07-23 07:31:20 +02:00
native_libs.rs Add error if link_ordinal used without raw-dylib 2022-08-09 11:02:41 -07:00