summary refs log tree commit diff
path: root/src/librustc_save_analysis/external_data.rs
AgeCommit message (Collapse)AuthorLines
2017-03-19Rollup merge of #40554 - nrc:rls-data, r=alexcrichtonCorey Farwell-93/+66
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-15Add rls-span to do some conversions into rls-data.Nick Cameron-6/+5
And fix some warnings and borrow errors
2017-03-15Use out-of-tree rustc serializeNick Cameron-32/+25
And remove a few data structures in favour of rls-data ones
2017-03-15Change json dumper (and a few other bits and pieces) to use rls-data rather ↵Nick Cameron-64/+45
than its own data structures
2017-03-14Refactor `Attribute` to use `Path` and `TokenStream` instead of `MetaItem`.Jeffrey Seyfried-3/+1
2017-03-10Move remove_docs_from_attrs into lowering stepJonas Bushart-18/+20
2017-03-10Store attributes as stringsJonas Bushart-74/+11
Remove the AST structure
2017-03-10Export attributes in save-analysis dataJonas Bushart-1/+117
Some annotations like the "test" annotations might be of interest for other projects, especially rls. Export all attributes in a new attributes item.
2017-01-26rustc: rename TyCtxt's `map` field to `hir`.Eduard-Mihai Burtescu-40/+40
2016-12-22signature info for other items (mods, fns, methods, etc.)Nick Cameron-1/+17
2016-12-22field signaturesNick Cameron-0/+2
2016-12-22save-analysis: add `Signature` info to structsNick Cameron-1/+30
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-3/+6
2016-09-19save-analysis: better 'parent' infoNick Cameron-7/+7
In particular, this fixes some bugs displaying doc URLs for method calls.
2016-09-07save-analysis: add docs dataNick Cameron-1/+23
2016-09-01save-analysis: add parent info to api dumpsNick Cameron-1/+13
The parent id is used for constructing rustdoc URLs by clients
2016-09-01Thread visibility info through save-analysis and filter save-analysis-api on it.Nick Cameron-4/+24
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+2
2016-06-16save-analysis: add a decl_id for methodsNick Cameron-0/+2
This is non-null if the method is in a (non-inherent) impl and in that case will be the id for the method declaration in the implemented trait.
2016-06-11save-analysis: some refinements to JSON dataNick Cameron-4/+14
Split variable and function kinds to give more information. Give children for methods, structs, enums, and traits.
2016-05-11save-analysis: attempt number 2 at a JSON versionNick Cameron-7/+21
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-25/+25
2016-05-06Use crate/index pair for def idsNick Cameron-123/+101
2016-05-03save-analysis: use a decoupled representation for dumped dataAdolfo Ochagavía-0/+640
Closes #33348