summary refs log tree commit diff
path: root/src/librustc_save_analysis/lib.rs
AgeCommit message (Collapse)AuthorLines
2016-09-20rustc: remove ImplOrTraitItemId and TraitDef's associated_type_names.Eduard Burtescu-10/+4
2016-09-20rustc_metadata: move more RBML tags to auto-serialization.Eduard Burtescu-4/+2
2016-09-20rustc_metadata: go only through rustc_serialize in astencode.Eduard Burtescu-3/+3
2016-09-19save-analysis: better 'parent' infoNick Cameron-6/+9
In particular, this fixes some bugs displaying doc URLs for method calls.
2016-09-09Auto merge of #36331 - petrochenkov:tyadt, r=eddybbors-5/+5
Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt` r? @eddyb
2016-09-09Auto merge of #36324 - nrc:save-docs, r=eddybbors-8/+35
save-analysis bits and pieces
2016-09-08Refactor `TyStruct`/`TyEnum`/`TyUnion` into `TyAdt`Vadim Petrochenkov-5/+5
2016-09-07save-analysis: strip /// or whatever from doc commentsNick Cameron-1/+2
2016-09-07save-analysis: only emit type in the value for variablesNick Cameron-1/+0
2016-09-07save-analysis: tweak the type value for functionsNick Cameron-2/+2
2016-09-07save-analysis: add a `kind` tag to JSON dumpsNick Cameron-1/+1
2016-09-07save-analysis: add docs dataNick Cameron-5/+32
2016-09-04Auto merge of #36203 - petrochenkov:uvsdot, r=nrcbors-6/+7
Replace `_, _` with `..` in patterns This is how https://github.com/rust-lang/rust/issues/33627 looks in action. Looks especially nice in leftmost/rightmost positions `(first, ..)`/`(.., last)`. I haven't touched libsyntax intentionally because the feature is still unstable.
2016-09-04Auto merge of #36132 - nrc:save-std, r=@eddybbors-5/+22
Add --Zsave-analysis-api This is a save-analysis variation which can be used with libraries distributed without their source (e.g., libstd). It will allow IDEs and other tools to get info about types and create URLs to docs and source, without the unnecessary clutter of internal-only save-analysis info. I'm sure we'll iterate somewhat on the design, but this is a first draft.
2016-09-04Replace `_, _` with `..`Vadim Petrochenkov-3/+3
2016-09-04Replace `_, _, _` with `..`Vadim Petrochenkov-3/+4
2016-09-03Some better support for unions through the compilerVadim Petrochenkov-2/+3
2016-09-01save-analysis: add parent info to api dumpsNick Cameron-0/+6
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/+11
2016-09-01JsonApiDumperNick Cameron-1/+3
2016-09-01save-analsysis: add save-analysis-api CLI flagNick Cameron-1/+3
2016-08-17rustc: remove SelfSpace from ParamSpace.Eduard Burtescu-1/+1
2016-08-17rustc: reduce Substs and Generics to a simple immutable API.Eduard Burtescu-2/+1
2016-08-13Remove obsolete divergence related stuffAndrew Cann-1/+0
Replace FnOutput with Ty Replace FnConverging(ty) with ty Purge FnDiverging, FunctionRetTy::NoReturn and FunctionRetTy::None
2016-07-03prefer `if let` to match with `None => {}` arm in some placesZack M. Davis-6/+4
This is a spiritual succesor to #34268/8531d581, in which we replaced a number of matches of None to the unit value with `if let` conditionals where it was judged that this made for clearer/simpler code (as would be recommended by Manishearth/rust-clippy's `single_match` lint). The same rationale applies to matches of None to the empty block.
2016-06-26Rollup merge of #33943 - jseyfried:libsyntax_cleanup, r=nrcJeffrey Seyfried-1/+1
Miscellaneous low priority cleanup in `libsyntax`.
2016-06-25Rollup merge of #34403 - jonathandturner:move_liberror, r=alexcrichtonJeffrey Seyfried-1/+3
This PR refactors the 'errors' part of libsyntax into its own crate (librustc_errors). This is the first part of a few refactorings to simplify error reporting and potentially support more output formats (like a standardized JSON output and possibly an --explain mode that can work with the user's code), though this PR stands on its own and doesn't assume further changes. As part of separating out the errors crate, I have also refactored the code position portion of codemap into its own crate (libsyntax_pos). While it's helpful to have the common code positions in a separate crate for the new errors crate, this may also enable further simplifications in the future.
2016-06-23Move errors from libsyntax to its own crateJonathan Turner-1/+3
2016-06-20Merge PatKind::QPath into PatKind::Path in ASTVadim Petrochenkov-2/+1
2016-06-14Remove the type parameter from `syntax::visit::Visitor`Jeffrey Seyfried-1/+1
2016-06-11save-analysis: some refinements to JSON dataNick Cameron-0/+5
Split variable and function kinds to give more information. Give children for methods, structs, enums, and traits.
2016-06-10Introduce TyCtxt::expect_def/expect_resolution helpers and use them where ↵Vadim Petrochenkov-11/+3
possible
2016-05-29Auto merge of #33859 - nrc:save-field-sub, r=pnkfelixbors-3/+9
save-analysis: be a bit more defensive with field sub-expressions Prevents an ice with `(...).f` since the sub-expression is in the AST but not the HIR. We could actually do better in this specific case, but it doesn't seem worth it.
2016-05-27Auto merge of #33800 - nrc:save-fn-name, r=eddybbors-3/+2
save-analysis: use a function's short name
2016-05-26Implement `..` in tuple (struct) patternsVadim Petrochenkov-1/+1
2016-05-25save-analysis: be a bit more defensive with field sub-expressionsNick Cameron-3/+9
Prevents an ice with `(...).f` since the sub-expression is in the AST but not the HIR. We could actually do better in this specific case, but it doesn't seem worth it.
2016-05-23save-analysis: use a function's short nameNick Cameron-3/+2
2016-05-11save-analysis: give better text info in value fieldsNick Cameron-9/+46
2016-05-11save-analysis: attempt number 2 at a JSON versionNick Cameron-0/+3
2016-05-11rustc: Split 'tcx into 'gcx and 'tcx for InferCtxt and its users.Eduard Burtescu-4/+4
2016-05-11rustc: Replace &'a TyCtxt<'tcx> with a TyCtxt<'a, 'tcx> wrapper.Eduard Burtescu-4/+4
2016-05-03save-analysis: use a decoupled representation for dumped dataAdolfo Ochagavía-11/+11
Closes #33348
2016-05-01Avoid using the lowering context in `librustc_save_analysis`Jeffrey Seyfried-13/+7
2016-04-28Review changes and satisfy make tidyNick Cameron-1/+1
2016-04-26save-analysis-json: thread through -z optionNick Cameron-10/+36
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: implement JSON dumpsNick Cameron-0/+11
2016-04-20debugging, misc fixesNick Cameron-5/+6
2016-04-06Rollup merge of #32570 - eddyb:tis-but-a-front, r=nikomatsakisManish Goregaokar-14/+12
r? @nikomatsakis Conflicts: src/librustc_save_analysis/lib.rs src/libsyntax/ast_util.rs
2016-04-06rustc: retire hir::map's paths.Eduard Burtescu-6/+6
2016-04-06Move span into `StructField`Vadim Petrochenkov-3/+3