rust/src/librustc_save_analysis
Corey Farwell dedf9d3593 Rollup merge of #40554 - nrc:rls-data, r=alexcrichton
Use rls-data crate

This basically pulls out a bunch of data structures used by save-analysis for serialization into an external crate, and pulls that crate in using Rustbuild. The RLS can then share these data structures with the compiler which in some cases will allow more efficient communication between the compiler and the RLS (i.e., without serialisation).

Along the way, I have to pull in rls-span, which is the RLS's way of defining spans (more type-safe than the compiler's built-in way). This is basically just to convert from compiler spans to RLS spans.

I also pull in the crates.io version of rustc-serialize, which is a bit annoying, but seems to be the only way to have serialisable data in an external crate. To make this work, all of the save-analysis crate has to use this version too (cc #40527).

Finally I pull in a line from #40347 to make the unstable crate checking stuff working.

There are a lot of changes to save-analysis but they are all mechanical and trivial - changing from using `From` to `Into` (because of orphan rules) being the main thing.

r? @alexcrichton
2017-03-19 20:51:10 -04:00
..
Cargo.toml Move to using 0.1 versions of crates, rather than GH links 2017-03-15 21:21:20 +13:00
csv_dumper.rs Change json dumper (and a few other bits and pieces) to use rls-data rather than its own data structures 2017-03-15 21:21:20 +13:00
data.rs Use out-of-tree rustc serialize 2017-03-15 21:21:20 +13:00
dump_visitor.rs Add rls-span to do some conversions into rls-data. 2017-03-15 21:21:20 +13:00
dump.rs Change json dumper (and a few other bits and pieces) to use rls-data rather than its own data structures 2017-03-15 21:21:20 +13:00
external_data.rs Rollup merge of #40554 - nrc:rls-data, r=alexcrichton 2017-03-19 20:51:10 -04:00
json_api_dumper.rs Move the API json dumper to use rls-data too 2017-03-15 21:21:20 +13:00
json_dumper.rs Move the API json dumper to use rls-data too 2017-03-15 21:21:20 +13:00
lib.rs Rollup merge of #40554 - nrc:rls-data, r=alexcrichton 2017-03-19 20:51:10 -04:00
span_utils.rs Integrate TokenStream. 2017-03-03 02:15:37 +00:00