about summary refs log tree commit diff
path: root/src/librustc_save_analysis
AgeCommit message (Collapse)AuthorLines
2016-05-13save-analysis: make DefIds prettierNick Cameron-25/+42
2016-05-11save-analysis: give better text info in value fieldsNick Cameron-31/+108
2016-05-11save-analysis: attempt number 2 at a JSON versionNick Cameron-61/+423
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-6/+6
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-31/+31
2016-05-09Rollup merge of #33370 - aochagavia:dump, r=nrcManish Goregaokar-810/+746
save-analysis: use a decoupled representation for dumped data Closes #33348 This will probably break any tool relying on the csv backend of save_analysis, for the following reasons: 1. Dumped spans don't contain extents anymore (`Dump` uses `SpanData` now instead of internal `Span`s). In case we still want to dump extents we could add them to `SpanData`. 1. `DefId`s are no longer dumped as a pair of `(ref_id, ref_crate)`. Instead, they are dumped as a single `Id`. @nrc You said something about storing the id in a `u64`, but you didn't explain why. I kept using `u32` in this branch but I can change it if you prefer that. r? @nrc By the way, the fact that this breaks tools relying on CSV may be a good occasion to start dumping CSV in a different way (i.e. using the serializer like in the JSON backend).
2016-05-06Use crate/index pair for def idsNick Cameron-179/+201
2016-05-03save-analysis: use a decoupled representation for dumped dataAdolfo OchagavĂ­a-838/+752
Closes #33348
2016-05-03Remove unused trait imports flagged by lintSeo Sanghyeon-2/+0
2016-05-01Avoid using the lowering context in `librustc_save_analysis`Jeffrey Seyfried-17/+9
2016-04-28Fix #33213, a bug in which glob imports are not included in save-analysis dataJeffrey Seyfried-2/+2
2016-04-28Review changes and satisfy make tidyNick Cameron-51/+51
2016-04-26save-analysis-json: lower def idsNick Cameron-62/+63
2016-04-26save-analysis-json: thread through -z optionNick Cameron-12/+57
In fact, we make JSOn the default and add an option for save-analysis-csv for the legacy behaviour. We also rename some bits and pieces `dxr` -> `save-analysis`
2016-04-25save-analysis-json: introduce a lowering stepNick Cameron-9/+607
...in which we make the spans nice.
2016-04-25save-analysis: implement JSON dumpsNick Cameron-68/+143
2016-04-25save-analysis: remove dump spans stuffNick Cameron-217/+94
2016-04-25Rollup merge of #33041 - petrochenkov:path, r=nrc,ManishearthManish Goregaokar-2/+2
Paths are mostly parsed without taking whitespaces into account, e.g. `std :: vec :: Vec :: new ()` parses successfully, however, there are some special cases involving keywords `super`, `self` and `Self`. For example, `self::` is considered a path start only if there are no spaces between `self` and `::`. These restrictions probably made sense when `self` and friends weren't keywords, but now they are unnecessary. The first two commits remove this special treatment of whitespaces by removing `token::IdentStyle` entirely and therefore fix https://github.com/rust-lang/rust/issues/14109. This change also affects naked `self` and `super` (which are not tightly followed by `::`, obviously) they can now be parsed as paths, however they are still not resolved correctly in imports (cc @jseyfried, see `compile-fail/use-keyword.rs`), so https://github.com/rust-lang/rust/issues/29036 is not completely fixed. The third commit also makes `super`, `self`, `Self` and `static` keywords nominally (before this they acted as keywords for all purposes) and removes most of remaining \"special idents\". The last commit (before tests) contains some small improvements - some qualified paths with type parameters are parsed correctly, `parse_path` is not used for parsing single identifiers, imports are sanity checked for absence of type parameters - such type parameters can be generated by syntax extensions or by macros when https://github.com/rust-lang/rust/issues/10415 is fixed (~~soon!~~already!). This patch changes some pretty basic things in `libsyntax`, like `token::Token` and the keyword list, so it's a plugin-[breaking-change]. r? @eddyb
2016-04-24syntax: Make static/super/self/Self keywords + special ident cleanupVadim Petrochenkov-2/+2
2016-04-24thread tighter span for closures aroundNiko Matsakis-1/+1
Track the span corresponding to the `|...|` part of the closure.
2016-04-20debugging, misc fixesNick Cameron-20/+20
2016-04-06Rollup merge of #32570 - eddyb:tis-but-a-front, r=nikomatsakisManish Goregaokar-24/+21
r? @nikomatsakis Conflicts: src/librustc_save_analysis/lib.rs src/libsyntax/ast_util.rs
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-10/+10
2016-04-06Move span into `StructField`Vadim Petrochenkov-5/+5
2016-04-06Get rid of ast::StructFieldKindVadim Petrochenkov-17/+16
2016-04-06rustc: move middle::{def,def_id,pat_util} to hir.Eduard Burtescu-6/+6
2016-04-06syntax: dismantle ast_util.Eduard Burtescu-2/+1
2016-04-06rustc: move rustc_front to rustc::hir.Eduard Burtescu-6/+4
2016-03-31librustc_save_analysis: remove duplicate macro defBenjamin Herr-12/+0
2016-03-31librustc_save_analysis: use bug!(), span_bug!()Benjamin Herr-71/+63
2016-03-27rustc_trans: move save to librustc_save_analysis.Eduard Burtescu-0/+3623